From: Lukas Stockmann LAX9303, automotive version of LAN9303, does return 0x9E04 insted of 0x9303. Add this as a new LAX9303_CHIP_ID. Signed-off-by: Lukas Stockmann Signed-off-by: Alexander Sverdlin --- drivers/net/dsa/lan9303-core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/dsa/lan9303-core.c b/drivers/net/dsa/lan9303-core.c index 8eeb8953ff24e..17189bda07c8b 100644 --- a/drivers/net/dsa/lan9303-core.c +++ b/drivers/net/dsa/lan9303-core.c @@ -27,6 +27,7 @@ */ #define LAN9303_CHIP_REV 0x14 # define LAN9303_CHIP_ID 0x9303 +# define LAX9303_CHIP_ID 0x9E04 # define LAN9352_CHIP_ID 0x9352 # define LAN9353_CHIP_ID 0x9353 # define LAN9354_CHIP_ID 0x9354 @@ -903,7 +904,8 @@ static int lan9303_check_device(struct lan9303 *chip) } if (((reg >> 16) != LAN9303_CHIP_ID) && - ((reg >> 16) != LAN9354_CHIP_ID)) { + ((reg >> 16) != LAN9354_CHIP_ID) && + ((reg >> 16) != LAX9303_CHIP_ID)) { dev_err(chip->dev, "unexpected device found: LAN%4.4X\n", reg >> 16); return -ENODEV; -- 2.56.1