diff options
author | Alexander Sverdlin <alexander.sverdlin@nokia.com> | 2015-06-12 14:40:37 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-03 09:29:01 -0700 |
commit | f7c70cbf6bfff389b8d4448c801997a6181327dc (patch) | |
tree | 406876ea488f6a6a151f7bc974e28a31436b2c1a /drivers/i2c | |
parent | 790d203b212fe6c73564bfc1258d7993692f9fc6 (diff) | |
download | lwn-f7c70cbf6bfff389b8d4448c801997a6181327dc.tar.gz lwn-f7c70cbf6bfff389b8d4448c801997a6181327dc.zip |
i2c: mux: Use __i2c_transfer() instead of calling parent's master_xfer()
commit e766f338a74200b8104b1165776b19f56e252834 upstream.
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>
Fixes: b7f625840267b1 ("i2c: add quirk checks to core")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/i2c-mux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-mux.c b/drivers/i2c/i2c-mux.c index 06cc1ff088f1..98dd5d4cf39e 100644 --- a/drivers/i2c/i2c-mux.c +++ b/drivers/i2c/i2c-mux.c @@ -51,7 +51,7 @@ static int i2c_mux_master_xfer(struct i2c_adapter *adap, ret = priv->select(parent, priv->mux_priv, priv->chan_id); if (ret >= 0) - ret = parent->algo->master_xfer(parent, msgs, num); + ret = __i2c_transfer(parent, msgs, num); if (priv->deselect) priv->deselect(parent, priv->mux_priv, priv->chan_id); |