123456789101112131415161718192021222324252627282930 |
- From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
- Date: Tue, 15 Feb 2022 08:27:35 +0100
- Subject: [PATCH] i2c: brcmstb: fix support for DSL and CM variants
- MIME-Version: 1.0
- Content-Type: text/plain; charset=UTF-8
- Content-Transfer-Encoding: 8bit
- 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")
- Cc: Kamal Dasu <[email protected]>
- Signed-off-by: Rafał Miłecki <[email protected]>
- Acked-by: Florian Fainelli <[email protected]>
- ---
- drivers/i2c/busses/i2c-brcmstb.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
- --- a/drivers/i2c/busses/i2c-brcmstb.c
- +++ b/drivers/i2c/busses/i2c-brcmstb.c
- @@ -674,7 +674,7 @@ static int brcmstb_i2c_probe(struct plat
-
- /* 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);
|