i2c: omap: Add the master_xfer_atomic hook
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 3 Apr 2019 12:40:13 +0000 (14:40 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 16 Apr 2019 11:08:13 +0000 (13:08 +0200)
commit89f845a6dcd38a2b83b995cb6a8c7ef3e5abfd3a
tree7021d32250c116a783736d7bbce490ae81326c47
parent77c1e1e062b639c98ce093f607637ac027936d04
i2c: omap: Add the master_xfer_atomic hook

Add the master_xfer_atomic hook to enable i2c transactions in irq
disabled contexts like the poweroff case.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Keerthy <j-keerthy@ti.com>
[wsa: simplified code a little: 'timeout = !ret']
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-omap.c