diff mbox

[RFC] i2c: use parent adapter quirks in mux

Message ID 557AD36C.6080805@nokia.com
State Accepted
Headers show

Commit Message

Alexander A Sverdlin June 12, 2015, 12:41 p.m. UTC
Inherit parent adapter quirks in MUX in case the devices on the multiplexed
buses are interested in the adapter limitations.

Signed-off-by: Łukasz Gemborowski <lukasz.gemborowski@nokia.com>
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
---
 drivers/i2c/i2c-mux.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Wolfram Sang June 17, 2015, 12:36 p.m. UTC | #1
On Fri, Jun 12, 2015 at 02:41:16PM +0200, Alexander Sverdlin wrote:
> Inherit parent adapter quirks in MUX in case the devices on the multiplexed
> buses are interested in the adapter limitations.
> 
> Signed-off-by: Łukasz Gemborowski <lukasz.gemborowski@nokia.com>
> Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>

Applied to for-next with stable added, thanks!
diff mbox

Patch

diff --git a/drivers/i2c/i2c-mux.c b/drivers/i2c/i2c-mux.c
index 4bcefdb..6997493 100644
--- a/drivers/i2c/i2c-mux.c
+++ b/drivers/i2c/i2c-mux.c
@@ -141,6 +141,7 @@  struct i2c_adapter *i2c_add_mux_adapter(struct i2c_adapter *parent,
 	priv->adap.dev.parent = &parent->dev;
 	priv->adap.retries = parent->retries;
 	priv->adap.timeout = parent->timeout;
+	priv->adap.quirks = parent->quirks;

 	/* Sanity check on class */
 	if (i2c_mux_parent_classes(parent) & class)