180-i2c-brcmstb-fix-support-for-DSL-and-CM-variants.patch 1.1 KB

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