]> asedeno.scripts.mit.edu Git - linux.git/commit
i2c: zx2967: use core helper to mark adapter suspended
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 19 Dec 2018 16:48:21 +0000 (17:48 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 8 Jan 2019 20:02:49 +0000 (21:02 +0100)
commit5601df355b63a8ddac21b2dfc3433d941a994c32
tree624e7486a416ed5e57a2529d54443803b06cb5e7
parentf2e0d28cba1e049ccf8aa11fc30c3d7fb9ab8278
i2c: zx2967: use core helper to mark adapter suspended

Rejecting transfers should be handled by the core. Also, this will
ensure proper locking which was forgotten in this open coded version
and make sure resume mark is set after enabling clocks (not before).

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-zx2967.c