diff mbox series

Add support for the IMST USB-Stick for Smart Meter device to the cp210x driver.

Message ID 20240105110029.80421-1-leonard.dallmayr@mailbox.org (mailing list archive)
State New
Headers show
Series Add support for the IMST USB-Stick for Smart Meter device to the cp210x driver. | expand

Commit Message

Leonard Dallmayr Jan. 5, 2024, 10:59 a.m. UTC
From: Leonard Dallmayr <leonard.dallmayr@mailbox.org>

The device IMST USB-Stick for Smart Meter is a rebranded iM871A-USB Wireless M-Bus USB-adapter. It is used to measure smart meters for electricity, 
heating, water, etc.

Signed-off-by: Leonard Dallmayr <leonard.dallmayr@mailbox.org>
---
 drivers/usb/serial/cp210x.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Johan Hovold Jan. 5, 2024, 11:44 a.m. UTC | #1
On Fri, Jan 05, 2024 at 11:59:16AM +0100, leonard.dallmayr@mailbox.org wrote:
> From: Leonard Dallmayr <leonard.dallmayr@mailbox.org>
> 
> The device IMST USB-Stick for Smart Meter is a rebranded iM871A-USB Wireless M-Bus USB-adapter. It is used to measure smart meters for electricity, 
> heating, water, etc.

Please wrap you commit message at 72 chars or so and also use a more
succinct commit summary (Subject) including the common prefix ("USB:
serial: cp210x: ").
 
> Signed-off-by: Leonard Dallmayr <leonard.dallmayr@mailbox.org>
> ---
>  drivers/usb/serial/cp210x.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c
> index 1e61fe043171..099cde4974a3 100644
> --- a/drivers/usb/serial/cp210x.c
> +++ b/drivers/usb/serial/cp210x.c
> @@ -146,6 +146,7 @@ static const struct usb_device_id id_table[] = {
>  	{ USB_DEVICE(0x10C4, 0x85F8) }, /* Virtenio Preon32 */
>  	{ USB_DEVICE(0x10C4, 0x8664) }, /* AC-Services CAN-IF */
>  	{ USB_DEVICE(0x10C4, 0x8665) }, /* AC-Services OBD-IF */
> +	{ USB_DEVICE(0x10C4, 0x87ed) }, /* IMST USB-Stick for Smart Meter */

Use uppercase hex as the other entries in this file do.

>  	{ USB_DEVICE(0x10C4, 0x8856) },	/* CEL EM357 ZigBee USB Stick - LR */
>  	{ USB_DEVICE(0x10C4, 0x8857) },	/* CEL EM357 ZigBee USB Stick */
>  	{ USB_DEVICE(0x10C4, 0x88A4) }, /* MMB Networks ZigBee USB Device */

Johan
diff mbox series

Patch

diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c
index 1e61fe043171..099cde4974a3 100644
--- a/drivers/usb/serial/cp210x.c
+++ b/drivers/usb/serial/cp210x.c
@@ -146,6 +146,7 @@  static const struct usb_device_id id_table[] = {
 	{ USB_DEVICE(0x10C4, 0x85F8) }, /* Virtenio Preon32 */
 	{ USB_DEVICE(0x10C4, 0x8664) }, /* AC-Services CAN-IF */
 	{ USB_DEVICE(0x10C4, 0x8665) }, /* AC-Services OBD-IF */
+	{ USB_DEVICE(0x10C4, 0x87ed) }, /* IMST USB-Stick for Smart Meter */
 	{ USB_DEVICE(0x10C4, 0x8856) },	/* CEL EM357 ZigBee USB Stick - LR */
 	{ USB_DEVICE(0x10C4, 0x8857) },	/* CEL EM357 ZigBee USB Stick */
 	{ USB_DEVICE(0x10C4, 0x88A4) }, /* MMB Networks ZigBee USB Device */