]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c: omap: resize fifos before each message
authorFelipe Balbi <balbi@ti.com>
Wed, 12 Sep 2012 10:58:10 +0000 (16:28 +0530)
committerWolfram Sang <w.sang@pengutronix.de>
Wed, 12 Sep 2012 13:03:34 +0000 (15:03 +0200)
commitdd74548ddece4b9d68e5528287a272fa552c81d0
tree311ad1b64bc252f65fb8956f7a19ae38f302143c
parent4a7ec4eda58269a507501f240955d99312fdfd5f
i2c: omap: resize fifos before each message

This patch will try to avoid the usage of
draining feature by reconfiguring the FIFO
the start condition of each message based
on the message's size.

By doing that, we will be better utilizing
the FIFO when doing big transfers.

While at that also drop the now unneeded
check for dev->buf_len as we always know
the amount of data to be transmitted.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-omap.c