Re: [PATCH 15/18] dmaengine/amba-pl08x: Pass flow controllerinformation with slave channel data

From: Russell King - ARM Linux
Date: Fri Jul 29 2011 - 07:11:12 EST


Apart from my initial question in this thread...

On Fri, Jul 29, 2011 at 04:19:25PM +0530, Viresh Kumar wrote:
> + if (plchan->cd->fc)
> + tmp = plchan->cd->fc;
> + else
> + tmp = (direction == DMA_TO_DEVICE) ? PL080_FLOW_MEM2PER :
> + PL080_FLOW_PER2MEM;
> +
> + txd->ccfg |= tmp << PL080_CONFIG_FLOW_CONTROL_SHIFT;
> +

Please, no, don't go back to encoding the flow mask into the platform
data. Instead use 'fc' as an indication of who should be the flow
controller, and hav ethis select the flow control based on both
'fc' and the direction.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/