OSDN Git Service

i2c: mux: Use __i2c_transfer() instead of calling parent's master_xfer()
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Fri, 12 Jun 2015 12:40:37 +0000 (14:40 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 17 Jun 2015 12:35:37 +0000 (14:35 +0200)
commite766f338a74200b8104b1165776b19f56e252834
tree8cd498c1478128f9d322ecd42ee2d66174732c3f
parentdc362d50ba94eaf2b1f11eecd81eb1d040d2d6e6
i2c: mux: Use __i2c_transfer() instead of calling parent's master_xfer()

Newly introduced quirks infrastructure doesn't work for the devices behind
MUXes because MUX's master_xfer() calls parent's master_xfer() directly
without checking the quirks. Instead of duplicating check code in MUX just
call __i2c_transfer() instead. This has a side effect on tracing (messages
will appear on both MUX bus and parent bus), but maybe that's not bad at
the end.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Tested-by: Ɓukasz Gemborowski <lukasz.gemborowski@nokia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
Fixes: b7f625840267b1 ("i2c: add quirk checks to core")
drivers/i2c/i2c-mux.c