Skip to contentSkip to conversation

i2c: brcmstb: fix support for DSL and CM variants

PATCH Applied Rafał Miłecki 3 participants 3 messages Feb 15, 2022 – Feb 18, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: brcmstb: fix support for DSL and CM variants

From: Rafał Miłecki <[email protected]>

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]>
---
 drivers/i2c/busses/i2c-brcmstb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-brcmstb.c +1 -1
index 490ee3962645..b00f35c0b066 100644
@@ -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);
Signature · 1 line
2.34.1
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Rafał Miłecki

From: Rafał Miłecki <[email protected]>

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]>
Signature · 1 line
Florian
Applied
#2 lore raw
In reply to Rafał Miłecki
Quoted 9 lines · Rafał Miłecki

From: Rafał Miłecki <[email protected]>

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]>

Applied to for-current, thanks!