]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: do not enable fall back to Host Notify by default
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 5 Jan 2017 04:57:22 +0000 (20:57 -0800)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 12 Jan 2017 19:06:15 +0000 (20:06 +0100)
commita69e67329bee646aae4cab66b629b3b01cb79826
tree90c079b378ecb58eaa9dac6341ae9c776bc97019
parent92831bd962799bb985c9c645dc7e1ed82958ff43
i2c: do not enable fall back to Host Notify by default

Falling back unconditionally to HostNotify as primary client's interrupt
breaks some drivers which alter their functionality depending on whether
interrupt is present or not, so let's introduce a board flag telling I2C
core explicitly if we want wired interrupt or HostNotify-based one:
I2C_CLIENT_HOST_NOTIFY.

For DT-based systems we introduce "host-notify" property that we convert
to I2C_CLIENT_HOST_NOTIFY board flag.

Tested-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Documentation/devicetree/bindings/i2c/i2c.txt
drivers/i2c/i2c-core.c
include/linux/i2c.h