[net-next] net: smsc95xx: add support for SYS TEC USB-SPEmodule1

Message ID 20240214132507.28072-1-andre.werner@systec-electronic.com
State New
Headers
Series [net-next] net: smsc95xx: add support for SYS TEC USB-SPEmodule1 |

Commit Message

Andre Werner Feb. 14, 2024, 1:25 p.m. UTC
  This patch adds support for the SYS TEC USB-SPEmodule1 10Base-T1L
ethernet device to the existing smsc95xx driver by adding the new
USB VID/PID pair.

Signed-off-by: Andre Werner <andre.werner@systec-electronic.com>
---
 drivers/net/usb/smsc95xx.c | 5 +++++
 1 file changed, 5 insertions(+)
  

Comments

Alexander Stein Feb. 15, 2024, 7:50 a.m. UTC | #1
Hi Andre,

Am Mittwoch, 14. Februar 2024, 14:25:07 CET schrieb Andre Werner:
> This patch adds support for the SYS TEC USB-SPEmodule1 10Base-T1L
> ethernet device to the existing smsc95xx driver by adding the new
> USB VID/PID pair.
> 
> Signed-off-by: Andre Werner <andre.werner@systec-electronic.com>
> ---
>  drivers/net/usb/smsc95xx.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c
> index a530f20ee257..bb4e62a93d96 100644
> --- a/drivers/net/usb/smsc95xx.c
> +++ b/drivers/net/usb/smsc95xx.c
> @@ -2109,6 +2109,11 @@ static const struct usb_device_id products[] = {
>  		USB_DEVICE(0x184F, 0x0051),
>  		.driver_info = (unsigned long)&smsc95xx_info,
>  	},
> +	{
> +		/* SYSTEC USB-SPEmodule1 10BASE-T1L Ethernet Device */
> +		USB_DEVICE(0x0878, 0x1400),
> +		.driver_info = (unsigned long)&smsc95xx_info,
> +	},

IMHO entries should be sorted by USB Vendor ID. So this goes before 
Microchip's EVB-LAN8670-USB.

Best regards,
Alexander

>  	{ },		/* END */
>  };
>  MODULE_DEVICE_TABLE(usb, products);
  

Patch

diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c
index a530f20ee257..bb4e62a93d96 100644
--- a/drivers/net/usb/smsc95xx.c
+++ b/drivers/net/usb/smsc95xx.c
@@ -2109,6 +2109,11 @@  static const struct usb_device_id products[] = {
 		USB_DEVICE(0x184F, 0x0051),
 		.driver_info = (unsigned long)&smsc95xx_info,
 	},
+	{
+		/* SYSTEC USB-SPEmodule1 10BASE-T1L Ethernet Device */
+		USB_DEVICE(0x0878, 0x1400),
+		.driver_info = (unsigned long)&smsc95xx_info,
+	},
 	{ },		/* END */
 };
 MODULE_DEVICE_TABLE(usb, products);