diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2022-02-15 08:27:35 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-02-23 12:03:22 +0100 |
commit | c2df4c62a1898bd38bbb2c7521da9e4ad0ec7f8a (patch) | |
tree | 14b47d1bd2aaf296f692ac378df715011d15d39e | |
parent | ec7d87b64e784912fd835d264c9f093437af88d3 (diff) | |
download | linux-stable-c2df4c62a1898bd38bbb2c7521da9e4ad0ec7f8a.tar.gz linux-stable-c2df4c62a1898bd38bbb2c7521da9e4ad0ec7f8a.tar.bz2 linux-stable-c2df4c62a1898bd38bbb2c7521da9e4ad0ec7f8a.zip |
i2c: brcmstb: fix support for DSL and CM variants
commit 834cea3a252ed4847db076a769ad9efe06afe2d5 upstream.
DSL and CM (Cable Modem) support 8 B max transfer size and have a custom
DT binding for that reason. This driver was checking for a wrong
"compatible" however which resulted in an incorrect setup.
Fixes: e2e5a2c61837 ("i2c: brcmstb: Adding support for CM and DSL SoCs")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/i2c/busses/i2c-brcmstb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-brcmstb.c b/drivers/i2c/busses/i2c-brcmstb.c index 490ee3962645..b00f35c0b066 100644 --- a/drivers/i2c/busses/i2c-brcmstb.c +++ b/drivers/i2c/busses/i2c-brcmstb.c @@ -673,7 +673,7 @@ static int brcmstb_i2c_probe(struct platform_device *pdev) /* set the data in/out register size for compatible SoCs */ if (of_device_is_compatible(dev->device->of_node, - "brcmstb,brcmper-i2c")) + "brcm,brcmper-i2c")) dev->data_regsz = sizeof(u8); else dev->data_regsz = sizeof(u32); |