]> www.infradead.org Git - linux-platform-drivers-x86.git/commitdiff
net: dsa: microchip: enable ksz9893 via i2c in the ksz9477 driver
authorHelmut Grohne <helmut.grohne@intenta.de>
Wed, 1 Jul 2020 11:22:20 +0000 (13:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jul 2020 00:48:47 +0000 (17:48 -0700)
The KSZ9893 3-Port Gigabit Ethernet Switch can be controlled via SPI,
I²C or MDIO (very limited and not supported by this driver). While there
is already a compatible entry for the SPI bus, it was missing for I²C.

Signed-off-by: Helmut Grohne <helmut.grohne@intenta.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz9477_i2c.c

index 7d050fab08892123c1a255b92a0acea680c1383f..7951f52d860d36812067a96923175ed31b6ca846 100644 (file)
@@ -79,6 +79,7 @@ MODULE_DEVICE_TABLE(i2c, ksz9477_i2c_id);
 static const struct of_device_id ksz9477_dt_ids[] = {
        { .compatible = "microchip,ksz9477" },
        { .compatible = "microchip,ksz9897" },
+       { .compatible = "microchip,ksz9893" },
        { .compatible = "microchip,ksz9567" },
        {},
 };