i2c-cht-wc: Add locking to interrupt / smbus_xfer functions
authorHans de Goede <hdegoede@redhat.com>
Mon, 14 Aug 2017 20:17:24 +0000 (22:17 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 17 Aug 2017 19:53:02 +0000 (21:53 +0200)
commita5a46bd008b5a87f726859c90ab25a69e6cf9473
treeced5cd1af9e65b29ee9774cdd6b33e95b56b60e3
parent75fdc51832492d183f477442e406fc745546307c
i2c-cht-wc: Add locking to interrupt / smbus_xfer functions

Although unlikely without locking the smbux_xfer function may miss
the nack flag and further fixes in this patch-set add some more
complex constructions which need protection.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-cht-wc.c