i2c: omap: drop the lock hard irq context
commit126a66caec4a00b8d66dbc3174b0efa905cf68c3
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 4 Apr 2016 13:55:23 +0000 (4 16:55 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 24 Apr 2016 20:33:09 +0000 (24 22:33 +0200)
tree322ace0f7d425b5e4c663e6bfbced4b9969ba48d
parentafc34be05331962c2326c24bd0b47baff193b659
i2c: omap: drop the lock hard irq context

The lock is taken while reading two registers. On RT the first lock is
taken in hard irq where it might sleep and in the threaded irq.
The threaded irq runs in oneshot mode so the hard irq does not run until
the thread the completes so there is no reason to grab the lock.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
[grygorii.strashko@ti.com: drop locking from isr completely and remove
lock field from struct omap_i2c_dev]
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-omap.c