Commit f19b7e0d authored by Guennadi Liakhovetski's avatar Guennadi Liakhovetski Committed by Vinod Koul

usb: renesas_usbhs: prepare for conversion to the shdma base library

Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarVinod Koul <vinod.koul@linux.intel.com>
parent 6f3de8bf
...@@ -994,7 +994,7 @@ static bool usbhsf_dma_filter(struct dma_chan *chan, void *param) ...@@ -994,7 +994,7 @@ static bool usbhsf_dma_filter(struct dma_chan *chan, void *param)
* *
* usbhs doesn't recognize id = 0 as valid DMA * usbhs doesn't recognize id = 0 as valid DMA
*/ */
if (0 == slave->slave_id) if (0 == slave->shdma_slave.slave_id)
return false; return false;
chan->private = slave; chan->private = slave;
...@@ -1173,8 +1173,8 @@ int usbhs_fifo_probe(struct usbhs_priv *priv) ...@@ -1173,8 +1173,8 @@ int usbhs_fifo_probe(struct usbhs_priv *priv)
fifo->port = D0FIFO; fifo->port = D0FIFO;
fifo->sel = D0FIFOSEL; fifo->sel = D0FIFOSEL;
fifo->ctr = D0FIFOCTR; fifo->ctr = D0FIFOCTR;
fifo->tx_slave.slave_id = usbhs_get_dparam(priv, d0_tx_id); fifo->tx_slave.shdma_slave.slave_id = usbhs_get_dparam(priv, d0_tx_id);
fifo->rx_slave.slave_id = usbhs_get_dparam(priv, d0_rx_id); fifo->rx_slave.shdma_slave.slave_id = usbhs_get_dparam(priv, d0_rx_id);
/* D1FIFO */ /* D1FIFO */
fifo = usbhsf_get_d1fifo(priv); fifo = usbhsf_get_d1fifo(priv);
...@@ -1182,8 +1182,8 @@ int usbhs_fifo_probe(struct usbhs_priv *priv) ...@@ -1182,8 +1182,8 @@ int usbhs_fifo_probe(struct usbhs_priv *priv)
fifo->port = D1FIFO; fifo->port = D1FIFO;
fifo->sel = D1FIFOSEL; fifo->sel = D1FIFOSEL;
fifo->ctr = D1FIFOCTR; fifo->ctr = D1FIFOCTR;
fifo->tx_slave.slave_id = usbhs_get_dparam(priv, d1_tx_id); fifo->tx_slave.shdma_slave.slave_id = usbhs_get_dparam(priv, d1_tx_id);
fifo->rx_slave.slave_id = usbhs_get_dparam(priv, d1_rx_id); fifo->rx_slave.shdma_slave.slave_id = usbhs_get_dparam(priv, d1_rx_id);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment