提交 834cea3a 编写于 作者: R Rafał Miłecki 提交者: Wolfram Sang

i2c: brcmstb: fix support for DSL and CM variants

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: e2e5a2c6 ("i2c: brcmstb: Adding support for CM and DSL SoCs")
Signed-off-by: NRafał Miłecki <rafal@milecki.pl>
Acked-by: NFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: NWolfram Sang <wsa@kernel.org>
上级 5de71797
...@@ -673,7 +673,7 @@ static int brcmstb_i2c_probe(struct platform_device *pdev) ...@@ -673,7 +673,7 @@ static int brcmstb_i2c_probe(struct platform_device *pdev)
/* set the data in/out register size for compatible SoCs */ /* set the data in/out register size for compatible SoCs */
if (of_device_is_compatible(dev->device->of_node, if (of_device_is_compatible(dev->device->of_node,
"brcmstb,brcmper-i2c")) "brcm,brcmper-i2c"))
dev->data_regsz = sizeof(u8); dev->data_regsz = sizeof(u8);
else else
dev->data_regsz = sizeof(u32); dev->data_regsz = sizeof(u32);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册