net: dsa: microchip: enable module autoprobe
PATCH v2 1/1 net: dsa: microchip: enable module autoprobe
From: Razvan Stefanescu <[email protected]>
This matches /sys/devices/.../spi1.0/modalias content.
---
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
Quoted 21 lines · Codrin Ciubotariu
From: Razvan Stefanescu <[email protected]>
This matches
/sys/devices/.../spi1.0/modaliascontent.Signed-off-by Razvan Stefanescu <[email protected]>Signed-off-by Codrin Ciubotariu <[email protected]>---
Changes in v2:
- added alias for all the variants of this driverdrivers/net/dsa/microchip/ksz9477_spi.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/net/dsa/microchip/ksz9477_spi.c +0
-0@@ -101,6 +101,12 @@ static struct spi_driver ksz9477_spi_driver = {module_spi_driver (ksz9477_spi_driver);
drivers/net/dsa/microchip/ksz9477_spi.c static struct spi_driver ksz9477_spi_driver = { · line 112
Quoted 10 lines
drivers/net/dsa/microchip/ksz9477_spi.c +6
-0+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" );
Hi Codrin
You might want to consider adding a Fixes tag?
Andrew
Quoted 35 lines · Andrew Lunn
Quoted 21 lines · Codrin Ciubotariu
From: Razvan Stefanescu <[email protected]>
This matches
/sys/devices/.../spi1.0/modaliascontent.Signed-off-by Razvan Stefanescu <[email protected]>Signed-off-by Codrin Ciubotariu <[email protected]>---
Changes in v2:
- added alias for all the variants of this driverdrivers/net/dsa/microchip/ksz9477_spi.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/net/dsa/microchip/ksz9477_spi.c +0
-0@@ -101,6 +101,12 @@ static struct spi_driver ksz9477_spi_driver = {module_spi_driver (ksz9477_spi_driver);drivers/net/dsa/microchip/ksz9477_spi.c static struct spi_driver ksz9477_spi_driver = { · line 112
Quoted 10 lines
drivers/net/dsa/microchip/ksz9477_spi.c +6
-0+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" );Hi Codrin
Quoted 1 line
You might want to consider adding a Fixes tag?
Hi Andrew,
I thought about it, but I wasn't sure this patch is a fix. And now that it includes aliases for all the variants, it might be tricky to add a Fixes tag since not all the variants were added at the same time. But I can split it into multiple patches, each with its Fixes, if you want me to.
Quoted 5 lines
Reviewed-by Andrew Lunn <[email protected]>Andrew
Thanks and best regards,
Codrin
David Miller
maintainerFrom: <[email protected]>
Date: Fri, 7 Feb 2020 14:21:32 +0000
Quoted 4 lines
I thought about it, but I wasn't sure this patch is a fix. And now that it includes aliases for all the variants, it might be tricky to add a Fixes tag since not all the variants were added at the same time. But I can split it into multiple patches, each with its Fixes, if you want me to.
You can put multiple Fixes: tags into a single patch and that would work for this situation.
Please do that.
Thank you.