提交 1c706038 编写于 作者: R Rafał Miłecki 提交者: Zheng Zengkai

i2c: brcmstb: fix support for DSL and CM variants

stable inclusion
from stable-v5.10.102
commit f333c1916fd6b55900029bf8f918cc00009e2111
bugzilla: https://gitee.com/openeuler/kernel/issues/I567K6

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f333c1916fd6b55900029bf8f918cc00009e2111

--------------------------------

commit 834cea3a 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: 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>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NYu Liao <liaoyu15@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 00031300
...@@ -674,7 +674,7 @@ static int brcmstb_i2c_probe(struct platform_device *pdev) ...@@ -674,7 +674,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.
先完成此消息的编辑!
想要评论请 注册