Thread (4 messages) flat view 4 messages, 2 authors, 2012-11-01
STALE5051d

[PATCH] i2c: mxs: remove broken PIOQUEUE support

From: Wolfram Sang <hidden>
Date: 2012-11-01 16:08:28
Also in: linux-i2c

On Thu, Nov 01, 2012 at 03:28:17PM +0100, Marek Vasut wrote:
Dear Wolfram Sang,
quoted
This I2C master can do DMA and PIOQUEUE (PIO with FIFO). Originally,
only PIOQEUE
PIOQUEUE ;-)
Yup, right!
quoted
was supported, then DMA support was added. The original
intention was to keep PIOQUEUE since it has less overhead what is nice
for small transfers. However, runtime switching between PIOQEUE and DMA
depending on the transfer size never worked despite a lot of trying.
Since PIOQUEUE mode itself was flaky (polling at places where interrupts
failed to work) and the implementation also imposed a size limit for
transfers, it is best to remove the support altogether which makes the
driver a lot cleaner and more robust. If somebody really wants less
overhead, plain PIO mode could still be implemented with the addidtional
advantage that this mode is also available on MX23, too.
Yes, looks to be the way to go.

Reviewed-by: Marek Vasut <marex@denx.de>
Thanks.

BTW have you tried combining all i2c-messages (msgs[]) of the transfer
into one DMA chain? That would reduce overhead, too, no?

Regards,

   Wolfram

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121101/eaefaebd/attachment.sig>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help