Skip to contentSkip to conversation

USB: serial: pl2303: add new PID to support PL256X (TYPE_MP)

PATCH Superseded Charles Yeh 3 participants 5 messages Mar 25 – May 22

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 USB: serial: pl2303: add new PID to support PL256X (TYPE_MP)

Add support for the PL256X (TYPE_MP) device by adding its PID. Also fix an unused variable warning in pl2303_update_reg() reported by the kernel test robot.

---
v2:
- Remove unused 'struct device *dev' variable in pl2303_update_reg() to fix build warning.

---
 drivers/usb/serial/pl2303.c | 1 -
 1 file changed, 1 deletion(-)
drivers/usb/serial/pl2303.c +0 -1
index e5bbda1d63b3..67b78d2fcc92 100644
@@ -347,7 +347,6 @@ static int pl2303_vendor_write(struct usb_serial *serial, u16 value, u16 index)
 static int pl2303_update_reg(struct usb_serial *serial, u8 reg, u8 mask, u8 val)
 {
 	struct pl2303_serial_private *spriv = usb_get_serial_data(serial);
-	struct device *dev = &serial->interface->dev;
 	int ret = 0;
 	u8 *buf;
 
Signature · 1 line
2.51.0
maintainer
#1 lore raw
Quoted 30 lines · Charles Yeh

Add support for the PL256X (TYPE_MP) device by adding its PID. Also fix an unused variable warning in pl2303_update_reg() reported by the kernel test robot.

---
v2:
- Remove unused 'struct device *dev' variable in pl2303_update_reg() to fix build warning.

---
 drivers/usb/serial/pl2303.c | 1 -
 1 file changed, 1 deletion(-)
drivers/usb/serial/pl2303.c +0 -1
index e5bbda1d63b3..67b78d2fcc92 100644
@@ -347,7 +347,6 @@ static int pl2303_vendor_write(struct usb_serial *serial, u16 value, u16 index)
 static int pl2303_update_reg(struct usb_serial *serial, u8 reg, u8 mask, u8 val)
 {
 	struct pl2303_serial_private *spriv = usb_get_serial_data(serial);
-	struct device *dev = &serial->interface->dev;
 	int ret = 0;
 	u8 *buf;
 
Signature · 1 line
2.51.0

Please don't add a bug and then fix it up in a later patch, just redo the original patch and send it as a v2 as the documentation describes how to do.

thanks,

greg k-h

#2 lore raw
Quoted 2 lines

just redo the original patch and send it as a v2 as the documentation describes how to do.

Thanks for the guidance.
I have updated the original patch and submitted it as v2 as requested.

Thanks,
Charles.

#3 lore raw

Hi Sir,

I am just following up on this v2 patch.
Please let me know if you have any comments or if there is anything else I need to update.

Thank you for your time.

Charles

Charles Yeh <[email protected]> 於 2026年3月27日週五 上午10:29寫道:

Quoted 9 lines
Quoted 3 lines

just redo the original patch and send it as a v2 as the documentation describes how to do.

Thanks for the guidance.
I have updated the original patch and submitted it as v2 as requested.

Thanks,
Charles.

maintainer
#4 lore raw
Quoted 3 lines · Charles Yeh

I am just following up on this v2 patch.
Please let me know if you have any comments or if there is anything else I need to update.

I started reviewing it last week but got side-tracked. It's still in my queue.

Johan