netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: dsa: microchip: enable module autoprobe
@ 2020-02-06 15:08 Codrin Ciubotariu
  2020-02-06 15:34 ` Andrew Lunn
  0 siblings, 1 reply; 3+ messages in thread
From: Codrin Ciubotariu @ 2020-02-06 15:08 UTC (permalink / raw)
  To: netdev, linux-kernel
  Cc: woojung.huh, UNGLinuxDriver, andrew, vivien.didelot, f.fainelli,
	davem, Razvan Stefanescu, Codrin Ciubotariu

From: Razvan Stefanescu <razvan.stefanescu@microchip.com>

This matches /sys/devices/.../spi1.0/modalias content.

Signed-off-by: Razvan Stefanescu <razvan.stefanescu@microchip.com>
Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
---
 drivers/net/dsa/microchip/ksz9477_spi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/dsa/microchip/ksz9477_spi.c b/drivers/net/dsa/microchip/ksz9477_spi.c
index c5f64959a184..248b69c74b45 100644
--- a/drivers/net/dsa/microchip/ksz9477_spi.c
+++ b/drivers/net/dsa/microchip/ksz9477_spi.c
@@ -101,6 +101,7 @@ static struct spi_driver ksz9477_spi_driver = {
 
 module_spi_driver(ksz9477_spi_driver);
 
+MODULE_ALIAS("spi:ksz8563");
 MODULE_AUTHOR("Woojung Huh <Woojung.Huh@microchip.com>");
 MODULE_DESCRIPTION("Microchip KSZ9477 Series Switch SPI access Driver");
 MODULE_LICENSE("GPL");
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] net: dsa: microchip: enable module autoprobe
  2020-02-06 15:08 [PATCH] net: dsa: microchip: enable module autoprobe Codrin Ciubotariu
@ 2020-02-06 15:34 ` Andrew Lunn
  2020-02-06 15:55   ` Codrin.Ciubotariu
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 2020-02-06 15:34 UTC (permalink / raw)
  To: Codrin Ciubotariu
  Cc: netdev, linux-kernel, woojung.huh, UNGLinuxDriver, vivien.didelot,
	f.fainelli, davem, Razvan Stefanescu

On Thu, Feb 06, 2020 at 05:08:37PM +0200, Codrin Ciubotariu wrote:
> From: Razvan Stefanescu <razvan.stefanescu@microchip.com>
> 
> This matches /sys/devices/.../spi1.0/modalias content.
> 
> Signed-off-by: Razvan Stefanescu <razvan.stefanescu@microchip.com>
> Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
> ---
>  drivers/net/dsa/microchip/ksz9477_spi.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/dsa/microchip/ksz9477_spi.c b/drivers/net/dsa/microchip/ksz9477_spi.c
> index c5f64959a184..248b69c74b45 100644
> --- a/drivers/net/dsa/microchip/ksz9477_spi.c
> +++ b/drivers/net/dsa/microchip/ksz9477_spi.c
> @@ -101,6 +101,7 @@ static struct spi_driver ksz9477_spi_driver = {
>  
>  module_spi_driver(ksz9477_spi_driver);
>  
> +MODULE_ALIAS("spi:ksz8563");

Is this sufficient for all the different variants this driver
supports?

	Andrew

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] net: dsa: microchip: enable module autoprobe
  2020-02-06 15:34 ` Andrew Lunn
@ 2020-02-06 15:55   ` Codrin.Ciubotariu
  0 siblings, 0 replies; 3+ messages in thread
From: Codrin.Ciubotariu @ 2020-02-06 15:55 UTC (permalink / raw)
  To: andrew
  Cc: netdev, linux-kernel, Woojung.Huh, UNGLinuxDriver, vivien.didelot,
	f.fainelli, davem, razvan.stefanescu

On 06.02.2020 17:34, Andrew Lunn wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> On Thu, Feb 06, 2020 at 05:08:37PM +0200, Codrin Ciubotariu wrote:
>> From: Razvan Stefanescu <razvan.stefanescu@microchip.com>
>>
>> This matches /sys/devices/.../spi1.0/modalias content.
>>
>> Signed-off-by: Razvan Stefanescu <razvan.stefanescu@microchip.com>
>> Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
>> ---
>>   drivers/net/dsa/microchip/ksz9477_spi.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/net/dsa/microchip/ksz9477_spi.c b/drivers/net/dsa/microchip/ksz9477_spi.c
>> index c5f64959a184..248b69c74b45 100644
>> --- a/drivers/net/dsa/microchip/ksz9477_spi.c
>> +++ b/drivers/net/dsa/microchip/ksz9477_spi.c
>> @@ -101,6 +101,7 @@ static struct spi_driver ksz9477_spi_driver = {
>>
>>   module_spi_driver(ksz9477_spi_driver);
>>
>> +MODULE_ALIAS("spi:ksz8563");
> 
> Is this sufficient for all the different variants this driver
> supports?

Probably not. All the available variants seem to be those from the 
compatible list. I can make aliases for all of them, if it's ok for 
everyone.

Best regards,
Codrin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-06 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-06 15:08 [PATCH] net: dsa: microchip: enable module autoprobe Codrin Ciubotariu
2020-02-06 15:34 ` Andrew Lunn
2020-02-06 15:55   ` Codrin.Ciubotariu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).