Skip to contentSkip to conversation

net: dsa: microchip: enable module autoprobe

PATCH Superseded Codrin Ciubotariu 3 participants 4 messages Feb 7, 2020

Subsystems (4)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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
index c5f64959a184..1142768969c2 100644
@@ -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
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 21 lines · Codrin Ciubotariu

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 +0 -0
index c5f64959a184..1142768969c2 100644
@@ -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

#2 lore raw
Quoted 35 lines · Andrew Lunn
Quoted 21 lines · Codrin Ciubotariu

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 +0 -0
index c5f64959a184..1142768969c2 100644
@@ -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

Andrew

Thanks and best regards,
Codrin

maintainer
#3 lore raw

From: <[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.