aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/amba-pl08x.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-05-16 06:05:09 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-07-01 09:15:43 -0400
commit95442b223405dae313e3e273765cc1c905d67717 (patch)
treefa379d8dc5b41e6cbe850a429efabc57063fda15 /drivers/dma/amba-pl08x.c
parented91c13d29d1542fddbb053015d62781faca93e1 (diff)
dmaengine: PL08x: get rid of device_fc in struct pl08x_dma_chan
As we now store the dma_slave_config in pl08x_dma_chan, we don't need to store this separately. Use the one in dma_slave_config directly. Acked-by: Linus Walleij <linus.walleij@linaro.org> Tested-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/dma/amba-pl08x.c')
-rw-r--r--drivers/dma/amba-pl08x.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index 31447dbe23a6..7eb0e8ef6a57 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -226,9 +226,6 @@ enum pl08x_dma_chan_state {
226 * @host: a pointer to the host (internal use) 226 * @host: a pointer to the host (internal use)
227 * @state: whether the channel is idle, paused, running etc 227 * @state: whether the channel is idle, paused, running etc
228 * @slave: whether this channel is a device (slave) or for memcpy 228 * @slave: whether this channel is a device (slave) or for memcpy
229 * @device_fc: Flow Controller Settings for ccfg register. Only valid for slave
230 * channels. Fill with 'true' if peripheral should be flow controller. Direction
231 * will be selected at Runtime.
232 * @waiting: a TX descriptor on this channel which is waiting for a physical 229 * @waiting: a TX descriptor on this channel which is waiting for a physical
233 * channel to become available 230 * channel to become available
234 */ 231 */
@@ -249,7 +246,6 @@ struct pl08x_dma_chan {
249 struct pl08x_driver_data *host; 246 struct pl08x_driver_data *host;
250 enum pl08x_dma_chan_state state; 247 enum pl08x_dma_chan_state state;
251 bool slave; 248 bool slave;
252 bool device_fc;
253 struct pl08x_txd *waiting; 249 struct pl08x_txd *waiting;
254}; 250};
255 251
@@ -1261,8 +1257,6 @@ static int dma_set_runtime_config(struct dma_chan *chan,
1261 cctl |= burst << PL080_CONTROL_SB_SIZE_SHIFT; 1257 cctl |= burst << PL080_CONTROL_SB_SIZE_SHIFT;
1262 cctl |= burst << PL080_CONTROL_DB_SIZE_SHIFT; 1258 cctl |= burst << PL080_CONTROL_DB_SIZE_SHIFT;
1263 1259
1264 plchan->device_fc = config->device_fc;
1265
1266 if (plchan->runtime_direction == DMA_DEV_TO_MEM) { 1260 if (plchan->runtime_direction == DMA_DEV_TO_MEM) {
1267 plchan->src_cctl = pl08x_cctl(cctl) | PL080_CONTROL_DST_INCR | 1261 plchan->src_cctl = pl08x_cctl(cctl) | PL080_CONTROL_DST_INCR |
1268 pl08x_select_bus(plchan->cd->periph_buses, 1262 pl08x_select_bus(plchan->cd->periph_buses,
@@ -1492,7 +1486,7 @@ static struct dma_async_tx_descriptor *pl08x_prep_slave_sg(
1492 return NULL; 1486 return NULL;
1493 } 1487 }
1494 1488
1495 if (plchan->device_fc) 1489 if (plchan->cfg.device_fc)
1496 tmp = (direction == DMA_MEM_TO_DEV) ? PL080_FLOW_MEM2PER_PER : 1490 tmp = (direction == DMA_MEM_TO_DEV) ? PL080_FLOW_MEM2PER_PER :
1497 PL080_FLOW_PER2MEM_PER; 1491 PL080_FLOW_PER2MEM_PER;
1498 else 1492 else