net: dsa: microchip: enable module autoprobe
PATCH v3 1/1 net: dsa: microchip: enable module autoprobe
From: Razvan Stefanescu <[email protected]>
This matches /sys/devices/.../spi1.0/modalias content.
Fixes 9b2d9f05cddf ("net: dsa: microchip: add ksz9567 to ksz9477 driver")
Fixes d9033ae95cf4 ("net: dsa: microchip: add KSZ8563 compatibility string")
Fixes 8c29bebb1f8a ("net: dsa: microchip: add KSZ9893 switch support")
Fixes 45316818371d ("net: dsa: add support for ksz9897 ethernet switch")
Fixes b987e98e50ab ("dsa: add DSA switch driver for Microchip KSZ9477")
Signed-off-by Razvan Stefanescu <[email protected]>
Signed-off-by Codrin Ciubotariu <[email protected]>
Reviewed-by Andrew Lunn <[email protected]>
---
Perhaps it is worth mentioning that the original file with the driver was renamed in:74a7194f15b3 ("net: dsa: microchip: rename ksz_spi.c to ksz9477_spi.c")
Changes in v3:
- added multiple 'Fixes' tags;
- add 'Reviewed-by' tag from Andrew;
Changes in v2:
- added alias for all the variants of this driver
drivers/net/dsa/microchip/ksz9477_spi.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/net/dsa/microchip/ksz9477_spi.c +6 -0
@@ -101,6 +101,12 @@ static struct spi_driver ksz9477_spi_driver = {module_spi_driver (ksz9477_spi_driver); +MODULE_ALIAS ("spi:ksz9477" ); +MODULE_ALIAS ("spi:ksz9897" ); +MODULE_ALIAS ("spi:ksz9893" ); +MODULE_ALIAS ("spi:ksz9563" ); +MODULE_ALIAS ("spi:ksz8563" ); +MODULE_ALIAS ("spi:ksz9567" );MODULE_AUTHOR ("Woojung Huh <[email protected]>" );MODULE_DESCRIPTION ("Microchip KSZ9477 Series Switch SPI access Driver" );MODULE_LICENSE ("GPL" );
Signature · 1 line
2.20.1
David Miller
maintainerFrom: Codrin Ciubotariu <[email protected]>
Date: Fri, 7 Feb 2020 17:44:04 +0200
Quoted 4 lines
From: Razvan Stefanescu <[email protected]>
This matches
/sys/devices/.../spi1.0/modaliascontent.
Quoted 8 lines
Fixes 9b2d9f05cddf ("net: dsa: microchip: add ksz9567 to ksz9477 driver")Fixes d9033ae95cf4 ("net: dsa: microchip: add KSZ8563 compatibility string")Fixes 8c29bebb1f8a ("net: dsa: microchip: add KSZ9893 switch support")Fixes 45316818371d ("net: dsa: add support for ksz9897 ethernet switch")Fixes b987e98e50ab ("dsa: add DSA switch driver for Microchip KSZ9477")Signed-off-by Razvan Stefanescu <[email protected]>Signed-off-by Codrin Ciubotariu <[email protected]>Reviewed-by Andrew Lunn <[email protected]>
Applied and queued up for -stable, thank you.