linux/drivers/net/dsa/microchip
Ahmad Fatoum 118e95ce5f net: dsa: microchip: fix probe of I2C-connected KSZ8563
[ Upstream commit 360fdc999d ]

Starting with commit eee16b1471 ("net: dsa: microchip: perform the
compatibility check for dev probed"), the KSZ switch driver now bails
out if it thinks the DT compatible doesn't match the actual chip ID
read back from the hardware:

  ksz9477-switch 1-005f: Device tree specifies chip KSZ9893 but found
  KSZ8563, please fix it!

For the KSZ8563, which used ksz_switch_chips[KSZ9893], this was fine
at first, because it indeed shares the same chip id as the KSZ9893.

Commit b449080956 ("net: dsa: microchip: add separate struct
ksz_chip_data for KSZ8563 chip") started differentiating KSZ9893
compatible chips by consulting the 0x1F register. The resulting breakage
was fixed for the SPI driver in the same commit by introducing the
appropriate ksz_switch_chips[KSZ8563], but not for the I2C driver.

Fix this for I2C-connected KSZ8563 now to get it probing again.

Fixes: b449080956 ("net: dsa: microchip: add separate struct ksz_chip_data for KSZ8563 chip").
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Acked-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20230120110933.1151054-1-a.fatoum@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-01 08:34:45 +01:00
..
Kconfig net: dsa: microchip: add DSA support for microchip LAN937x 2022-07-02 16:34:05 +01:00
ksz_common.c net: dsa: microchip: remove IRQF_TRIGGER_FALLING in request_threaded_irq 2022-12-31 13:32:56 +01:00
ksz_common.h net: dsa: microchip: use common irq routines for girq and pirq 2022-09-26 12:42:01 -07:00
ksz_spi.c net: dsa: microchip: remove unnecessary set_drvdata() 2022-09-22 19:30:36 -07:00
ksz8.h net: dsa: microchip: allow to pass return values for PHY read/write accesses 2022-08-31 09:41:19 +01:00
ksz8795_reg.h net: dsa: microchip: ksz8795: use common xmii function 2022-07-27 09:39:17 +01:00
ksz8795.c net: dsa: microchip: remove unused port phy variable 2022-08-31 09:41:23 +01:00
ksz8863_smi.c net: dsa: microchip: remove unnecessary set_drvdata() 2022-09-22 19:30:36 -07:00
ksz9477_i2c.c net: dsa: microchip: fix probe of I2C-connected KSZ8563 2023-02-01 08:34:45 +01:00
ksz9477_reg.h net: dsa: microchip: add the support for set_ageing_time 2022-09-16 21:51:47 +01:00
ksz9477.c net: dsa: microchip: ksz9477: port map correction in ALU table entry register 2023-02-01 08:34:26 +01:00
ksz9477.h net: dsa: microchip: add the support for set_ageing_time 2022-09-16 21:51:47 +01:00
lan937x_main.c net: dsa: microchip: move interrupt handling logic from lan937x to ksz_common 2022-09-26 12:41:57 -07:00
lan937x_reg.h net: dsa: microchip: add the support for set_ageing_time 2022-09-16 21:51:47 +01:00
lan937x.h net: dsa: microchip: add the support for set_ageing_time 2022-09-16 21:51:47 +01:00
Makefile net: dsa: microchip: add DSA support for microchip LAN937x 2022-07-02 16:34:05 +01:00