]> 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)
commit930bb6cfe229f34f4593af968903e5aebbf460c6
tree90c079b378ecb58eaa9dac6341ae9c776bc97019
parentd644cda545f7525dc9a21dee40cc766f8a87217e
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