1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
2 Date: Tue, 15 Feb 2022 08:27:35 +0100
3 Subject: [PATCH] i2c: brcmstb: fix support for DSL and CM variants
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
8 DSL and CM (Cable Modem) support 8 B max transfer size and have a custom
9 DT binding for that reason. This driver was checking for a wrong
10 "compatible" however which resulted in an incorrect setup.
12 Fixes: e2e5a2c61837 ("i2c: brcmstb: Adding support for CM and DSL SoCs")
13 Cc: Kamal Dasu <kdasu.kdev@gmail.com>
14 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
15 Acked-by: Florian Fainelli <f.fainelli@gmail.com>
17 drivers/i2c/busses/i2c-brcmstb.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
20 --- a/drivers/i2c/busses/i2c-brcmstb.c
21 +++ b/drivers/i2c/busses/i2c-brcmstb.c
22 @@ -640,7 +640,7 @@ static int brcmstb_i2c_probe(struct plat
24 /* set the data in/out register size for compatible SoCs */
25 if (of_device_is_compatible(dev->device->of_node,
26 - "brcmstb,brcmper-i2c"))
27 + "brcm,brcmper-i2c"))
28 dev->data_regsz = sizeof(u8);
30 dev->data_regsz = sizeof(u32);