microchip: lan865x: Fix LAN8651 autoloading
authorStefan Wahren <wahrenst@gmx.net>
Wed, 27 Aug 2025 11:53:41 +0000 (13:53 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Aug 2025 02:42:07 +0000 (19:42 -0700)
Add missing IDs for LAN8651 devices, which are also defined in the
DT bindings.

Fixes: 5cd2340cb6a3 ("microchip: lan865x: add driver support for Microchip's LAN865X MAC-PHY")
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Cc: stable@kernel.org
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250827115341.34608-4-wahrenst@gmx.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/lan865x/lan865x.c

index 9d94c8fb8b9112a93b61bc13a9a4d442705410ff..79b800d2b72c28174464579344ce072ad9cfb735 100644 (file)
@@ -425,12 +425,14 @@ static void lan865x_remove(struct spi_device *spi)
 
 static const struct spi_device_id lan865x_ids[] = {
        { .name = "lan8650" },
+       { .name = "lan8651" },
        {},
 };
 MODULE_DEVICE_TABLE(spi, lan865x_ids);
 
 static const struct of_device_id lan865x_dt_ids[] = {
        { .compatible = "microchip,lan8650" },
+       { .compatible = "microchip,lan8651" },
        { /* Sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, lan865x_dt_ids);