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)
commit331c34255293cd02d395b7097008b509ba89e60e
tree90c079b378ecb58eaa9dac6341ae9c776bc97019
parent30f939feaeee23e21391cfc7b484f012eb189c3c
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