linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] USB: serial: pl2303: Add IBM device IDs
@ 2022-03-01 22:44 Eddie James
  2022-03-03  8:25 ` Johan Hovold
  0 siblings, 1 reply; 11+ messages in thread
From: Eddie James @ 2022-03-01 22:44 UTC (permalink / raw)
  To: linux-usb; +Cc: linux-kernel, johan, gregkh, Eddie James, Joel Stanley

IBM manufactures a PL2303 device for UPS communications. Add the vendor
and product IDs so that the PL2303 driver binds to the device.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Eddie James <eajames@linux.ibm.com>
---
Changes since v1:
 - Fix commit message Signed-off-by ordering.

 drivers/usb/serial/pl2303.c | 1 +
 drivers/usb/serial/pl2303.h | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c
index a70fd86f735c..e2ef761ed39c 100644
--- a/drivers/usb/serial/pl2303.c
+++ b/drivers/usb/serial/pl2303.c
@@ -116,6 +116,7 @@ static const struct usb_device_id id_table[] = {
 	{ USB_DEVICE(ADLINK_VENDOR_ID, ADLINK_ND6530GC_PRODUCT_ID) },
 	{ USB_DEVICE(SMART_VENDOR_ID, SMART_PRODUCT_ID) },
 	{ USB_DEVICE(AT_VENDOR_ID, AT_VTKIT3_PRODUCT_ID) },
+	{ USB_DEVICE(IBM_VENDOR_ID, IBM_PRODUCT_ID) },
 	{ }					/* Terminating entry */
 };
 
diff --git a/drivers/usb/serial/pl2303.h b/drivers/usb/serial/pl2303.h
index 6097ee8fccb2..c5406452b774 100644
--- a/drivers/usb/serial/pl2303.h
+++ b/drivers/usb/serial/pl2303.h
@@ -35,6 +35,9 @@
 #define ATEN_PRODUCT_UC232B	0x2022
 #define ATEN_PRODUCT_ID2	0x2118
 
+#define IBM_VENDOR_ID		0x04b3
+#define IBM_PRODUCT_ID		0x4016
+
 #define IODATA_VENDOR_ID	0x04bb
 #define IODATA_PRODUCT_ID	0x0a03
 #define IODATA_PRODUCT_ID_RSAQ5	0x0a0e
-- 
2.27.0


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

* Re: [PATCH v2] USB: serial: pl2303: Add IBM device IDs
  2022-03-01 22:44 [PATCH v2] USB: serial: pl2303: Add IBM device IDs Eddie James
@ 2022-03-03  8:25 ` Johan Hovold
  2022-03-03  8:52   ` Joel Stanley
  0 siblings, 1 reply; 11+ messages in thread
From: Johan Hovold @ 2022-03-03  8:25 UTC (permalink / raw)
  To: Eddie James; +Cc: linux-usb, linux-kernel, gregkh, Joel Stanley

On Tue, Mar 01, 2022 at 04:44:46PM -0600, Eddie James wrote:
> IBM manufactures a PL2303 device for UPS communications. Add the vendor
> and product IDs so that the PL2303 driver binds to the device.
> 
> Signed-off-by: Joel Stanley <joel@jms.id.au>
> Signed-off-by: Eddie James <eajames@linux.ibm.com>
> ---
> Changes since v1:
>  - Fix commit message Signed-off-by ordering.

Almost there. You're still missing a Co-developed-by tag, a From line,
or both.

Please take another look at the documentation I pointed to.

Johan

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

* Re: [PATCH v2] USB: serial: pl2303: Add IBM device IDs
  2022-03-03  8:25 ` Johan Hovold
@ 2022-03-03  8:52   ` Joel Stanley
  2022-03-03  9:15     ` Johan Hovold
  0 siblings, 1 reply; 11+ messages in thread
From: Joel Stanley @ 2022-03-03  8:52 UTC (permalink / raw)
  To: Johan Hovold; +Cc: Eddie James, linux-usb, Linux Kernel Mailing List, Greg KH

On Thu, 3 Mar 2022 at 08:25, Johan Hovold <johan@kernel.org> wrote:
>
> On Tue, Mar 01, 2022 at 04:44:46PM -0600, Eddie James wrote:
> > IBM manufactures a PL2303 device for UPS communications. Add the vendor
> > and product IDs so that the PL2303 driver binds to the device.
> >
> > Signed-off-by: Joel Stanley <joel@jms.id.au>
> > Signed-off-by: Eddie James <eajames@linux.ibm.com>
> > ---
> > Changes since v1:
> >  - Fix commit message Signed-off-by ordering.
>
> Almost there. You're still missing a Co-developed-by tag, a From line,
> or both.

It's neither. This patch was applied to a tree by myself, and I asked
Eddie to send it to mainline for merging.

Given it's come through me, and now has been sent to you, I think the
chain of s-o-b is appropriate.

Cheers,

Joel


>
> Please take another look at the documentation I pointed to.
>
> Johan

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

* Re: [PATCH v2] USB: serial: pl2303: Add IBM device IDs
  2022-03-03  8:52   ` Joel Stanley
@ 2022-03-03  9:15     ` Johan Hovold
  2022-03-03  9:24       ` Joel Stanley
  0 siblings, 1 reply; 11+ messages in thread
From: Johan Hovold @ 2022-03-03  9:15 UTC (permalink / raw)
  To: Joel Stanley; +Cc: Eddie James, linux-usb, Linux Kernel Mailing List, Greg KH

On Thu, Mar 03, 2022 at 08:52:29AM +0000, Joel Stanley wrote:
> On Thu, 3 Mar 2022 at 08:25, Johan Hovold <johan@kernel.org> wrote:
> >
> > On Tue, Mar 01, 2022 at 04:44:46PM -0600, Eddie James wrote:
> > > IBM manufactures a PL2303 device for UPS communications. Add the vendor
> > > and product IDs so that the PL2303 driver binds to the device.
> > >
> > > Signed-off-by: Joel Stanley <joel@jms.id.au>
> > > Signed-off-by: Eddie James <eajames@linux.ibm.com>
> > > ---
> > > Changes since v1:
> > >  - Fix commit message Signed-off-by ordering.
> >
> > Almost there. You're still missing a Co-developed-by tag, a From line,
> > or both.
> 
> It's neither. This patch was applied to a tree by myself, and I asked
> Eddie to send it to mainline for merging.

Then you are missing a From line. As the patch looks like know, Eddie is
considered the author and not you.

> Given it's come through me, and now has been sent to you, I think the
> chain of s-o-b is appropriate.

So the chain of SoB is correct, but the authorship is not.

You can use git-format-patch and git-send-email to avoid this kind of
problems, but just manually inserting a From line in the body of the
mail works too.

Johan

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

* Re: [PATCH v2] USB: serial: pl2303: Add IBM device IDs
  2022-03-03  9:15     ` Johan Hovold
@ 2022-03-03  9:24       ` Joel Stanley
  2022-03-03  9:44         ` Johan Hovold
  0 siblings, 1 reply; 11+ messages in thread
From: Joel Stanley @ 2022-03-03  9:24 UTC (permalink / raw)
  To: Johan Hovold; +Cc: Eddie James, linux-usb, Linux Kernel Mailing List, Greg KH

On Thu, 3 Mar 2022 at 09:15, Johan Hovold <johan@kernel.org> wrote:
>
> On Thu, Mar 03, 2022 at 08:52:29AM +0000, Joel Stanley wrote:
> > On Thu, 3 Mar 2022 at 08:25, Johan Hovold <johan@kernel.org> wrote:
> > >
> > > On Tue, Mar 01, 2022 at 04:44:46PM -0600, Eddie James wrote:
> > > > IBM manufactures a PL2303 device for UPS communications. Add the vendor
> > > > and product IDs so that the PL2303 driver binds to the device.
> > > >
> > > > Signed-off-by: Joel Stanley <joel@jms.id.au>
> > > > Signed-off-by: Eddie James <eajames@linux.ibm.com>
> > > > ---
> > > > Changes since v1:
> > > >  - Fix commit message Signed-off-by ordering.
> > >
> > > Almost there. You're still missing a Co-developed-by tag, a From line,
> > > or both.
> >
> > It's neither. This patch was applied to a tree by myself, and I asked
> > Eddie to send it to mainline for merging.
>
> Then you are missing a From line. As the patch looks like know, Eddie is
> considered the author and not you.

You are incorrect. Eddie is the author.

>
> > Given it's come through me, and now has been sent to you, I think the
> > chain of s-o-b is appropriate.
>
> So the chain of SoB is correct, but the authorship is not.
>
> You can use git-format-patch and git-send-email to avoid this kind of
> problems, but just manually inserting a From line in the body of the
> mail works too.
>
> Johan

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

* Re: [PATCH v2] USB: serial: pl2303: Add IBM device IDs
  2022-03-03  9:24       ` Joel Stanley
@ 2022-03-03  9:44         ` Johan Hovold
  2022-03-03  9:46           ` Joel Stanley
  0 siblings, 1 reply; 11+ messages in thread
From: Johan Hovold @ 2022-03-03  9:44 UTC (permalink / raw)
  To: Joel Stanley; +Cc: Eddie James, linux-usb, Linux Kernel Mailing List, Greg KH

On Thu, Mar 03, 2022 at 09:24:51AM +0000, Joel Stanley wrote:
> On Thu, 3 Mar 2022 at 09:15, Johan Hovold <johan@kernel.org> wrote:
> >
> > On Thu, Mar 03, 2022 at 08:52:29AM +0000, Joel Stanley wrote:
> > > On Thu, 3 Mar 2022 at 08:25, Johan Hovold <johan@kernel.org> wrote:
> > > >
> > > > On Tue, Mar 01, 2022 at 04:44:46PM -0600, Eddie James wrote:
> > > > > IBM manufactures a PL2303 device for UPS communications. Add the vendor
> > > > > and product IDs so that the PL2303 driver binds to the device.
> > > > >
> > > > > Signed-off-by: Joel Stanley <joel@jms.id.au>
> > > > > Signed-off-by: Eddie James <eajames@linux.ibm.com>
> > > > > ---
> > > > > Changes since v1:
> > > > >  - Fix commit message Signed-off-by ordering.
> > > >
> > > > Almost there. You're still missing a Co-developed-by tag, a From line,
> > > > or both.
> > >
> > > It's neither. This patch was applied to a tree by myself, and I asked
> > > Eddie to send it to mainline for merging.
> >
> > Then you are missing a From line. As the patch looks like know, Eddie is
> > considered the author and not you.
> 
> You are incorrect. Eddie is the author.

Then what is your SoB doing there in the first place? If Eddie is the
sole author as well as the submitter, and you didn't touch the patch in
between, then your SoB does not belong in the chain. 

If you applied Eddie's patch to your shared tree and Eddie generated a
patch from there, then the chain should be:

	SoB: E
	SoB: J
	SoB: E

but this is starting to look a bit ridiculous.

Johan

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

* Re: [PATCH v2] USB: serial: pl2303: Add IBM device IDs
  2022-03-03  9:44         ` Johan Hovold
@ 2022-03-03  9:46           ` Joel Stanley
  2022-03-03 10:13             ` Johan Hovold
  0 siblings, 1 reply; 11+ messages in thread
From: Joel Stanley @ 2022-03-03  9:46 UTC (permalink / raw)
  To: Johan Hovold; +Cc: Eddie James, linux-usb, Linux Kernel Mailing List, Greg KH

On Thu, 3 Mar 2022 at 09:44, Johan Hovold <johan@kernel.org> wrote:
>
> On Thu, Mar 03, 2022 at 09:24:51AM +0000, Joel Stanley wrote:
> > On Thu, 3 Mar 2022 at 09:15, Johan Hovold <johan@kernel.org> wrote:
> > >
> > > On Thu, Mar 03, 2022 at 08:52:29AM +0000, Joel Stanley wrote:
> > > > On Thu, 3 Mar 2022 at 08:25, Johan Hovold <johan@kernel.org> wrote:
> > > > >
> > > > > On Tue, Mar 01, 2022 at 04:44:46PM -0600, Eddie James wrote:
> > > > > > IBM manufactures a PL2303 device for UPS communications. Add the vendor
> > > > > > and product IDs so that the PL2303 driver binds to the device.
> > > > > >
> > > > > > Signed-off-by: Joel Stanley <joel@jms.id.au>
> > > > > > Signed-off-by: Eddie James <eajames@linux.ibm.com>
> > > > > > ---
> > > > > > Changes since v1:
> > > > > >  - Fix commit message Signed-off-by ordering.
> > > > >
> > > > > Almost there. You're still missing a Co-developed-by tag, a From line,
> > > > > or both.
> > > >
> > > > It's neither. This patch was applied to a tree by myself, and I asked
> > > > Eddie to send it to mainline for merging.
> > >
> > > Then you are missing a From line. As the patch looks like know, Eddie is
> > > considered the author and not you.
> >
> > You are incorrect. Eddie is the author.
>
> Then what is your SoB doing there in the first place? If Eddie is the
> sole author as well as the submitter, and you didn't touch the patch in
> between, then your SoB does not belong in the chain.
>
> If you applied Eddie's patch to your shared tree and Eddie generated a
> patch from there, then the chain should be:
>
>         SoB: E
>         SoB: J
>         SoB: E
>
> but this is starting to look a bit ridiculous.

I agree. I would appreciate it if you applied the patch, with or
without my sob in whatever order you deem fit.

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

* Re: [PATCH v2] USB: serial: pl2303: Add IBM device IDs
  2022-03-03  9:46           ` Joel Stanley
@ 2022-03-03 10:13             ` Johan Hovold
  2022-03-03 21:48               ` Eddie James
  0 siblings, 1 reply; 11+ messages in thread
From: Johan Hovold @ 2022-03-03 10:13 UTC (permalink / raw)
  To: Joel Stanley; +Cc: Eddie James, linux-usb, Linux Kernel Mailing List, Greg KH

On Thu, Mar 03, 2022 at 09:46:05AM +0000, Joel Stanley wrote:
> On Thu, 3 Mar 2022 at 09:44, Johan Hovold <johan@kernel.org> wrote:
> >
> > On Thu, Mar 03, 2022 at 09:24:51AM +0000, Joel Stanley wrote:
> > > On Thu, 3 Mar 2022 at 09:15, Johan Hovold <johan@kernel.org> wrote:
> > > >
> > > > On Thu, Mar 03, 2022 at 08:52:29AM +0000, Joel Stanley wrote:
> > > > > On Thu, 3 Mar 2022 at 08:25, Johan Hovold <johan@kernel.org> wrote:
> > > > > >
> > > > > > On Tue, Mar 01, 2022 at 04:44:46PM -0600, Eddie James wrote:
> > > > > > > IBM manufactures a PL2303 device for UPS communications. Add the vendor
> > > > > > > and product IDs so that the PL2303 driver binds to the device.
> > > > > > >
> > > > > > > Signed-off-by: Joel Stanley <joel@jms.id.au>
> > > > > > > Signed-off-by: Eddie James <eajames@linux.ibm.com>
> > > > > > > ---
> > > > > > > Changes since v1:
> > > > > > >  - Fix commit message Signed-off-by ordering.
> > > > > >
> > > > > > Almost there. You're still missing a Co-developed-by tag, a From line,
> > > > > > or both.
> > > > >
> > > > > It's neither. This patch was applied to a tree by myself, and I asked
> > > > > Eddie to send it to mainline for merging.
> > > >
> > > > Then you are missing a From line. As the patch looks like know, Eddie is
> > > > considered the author and not you.
> > >
> > > You are incorrect. Eddie is the author.
> >
> > Then what is your SoB doing there in the first place? If Eddie is the
> > sole author as well as the submitter, and you didn't touch the patch in
> > between, then your SoB does not belong in the chain.
> >
> > If you applied Eddie's patch to your shared tree and Eddie generated a
> > patch from there, then the chain should be:
> >
> >         SoB: E
> >         SoB: J
> >         SoB: E
> >
> > but this is starting to look a bit ridiculous.
> 
> I agree. I would appreciate it if you applied the patch, with or
> without my sob in whatever order you deem fit.

Ok, I'll assume what you intended was E-J-E but that perhaps
git-format-patch swallowed the last SoB. Thanks for clarifying.

I was going to apply to the patch, but I see now that you didn't provide
any details about the product apart from it being a UPS and that's not
reflected in the define name.

Do you have a pointer to device (family) in question?

Johan

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

* Re: [PATCH v2] USB: serial: pl2303: Add IBM device IDs
  2022-03-03 10:13             ` Johan Hovold
@ 2022-03-03 21:48               ` Eddie James
  2022-03-04  8:48                 ` Johan Hovold
  2022-03-11  9:37                 ` Johan Hovold
  0 siblings, 2 replies; 11+ messages in thread
From: Eddie James @ 2022-03-03 21:48 UTC (permalink / raw)
  To: Johan Hovold, Joel Stanley; +Cc: linux-usb, Linux Kernel Mailing List, Greg KH


On 3/3/22 04:13, Johan Hovold wrote:
> On Thu, Mar 03, 2022 at 09:46:05AM +0000, Joel Stanley wrote:
>> On Thu, 3 Mar 2022 at 09:44, Johan Hovold <johan@kernel.org> wrote:
>>> On Thu, Mar 03, 2022 at 09:24:51AM +0000, Joel Stanley wrote:
>>>> On Thu, 3 Mar 2022 at 09:15, Johan Hovold <johan@kernel.org> wrote:
>>>>> On Thu, Mar 03, 2022 at 08:52:29AM +0000, Joel Stanley wrote:
>>>>>> On Thu, 3 Mar 2022 at 08:25, Johan Hovold <johan@kernel.org> wrote:
>>>>>>> On Tue, Mar 01, 2022 at 04:44:46PM -0600, Eddie James wrote:
>>>>>>>> IBM manufactures a PL2303 device for UPS communications. Add the vendor
>>>>>>>> and product IDs so that the PL2303 driver binds to the device.
>>>>>>>>
>>>>>>>> Signed-off-by: Joel Stanley <joel@jms.id.au>
>>>>>>>> Signed-off-by: Eddie James <eajames@linux.ibm.com>
>>>>>>>> ---
>>>>>>>> Changes since v1:
>>>>>>>>   - Fix commit message Signed-off-by ordering.
>>>>>>> Almost there. You're still missing a Co-developed-by tag, a From line,
>>>>>>> or both.
>>>>>> It's neither. This patch was applied to a tree by myself, and I asked
>>>>>> Eddie to send it to mainline for merging.
>>>>> Then you are missing a From line. As the patch looks like know, Eddie is
>>>>> considered the author and not you.
>>>> You are incorrect. Eddie is the author.
>>> Then what is your SoB doing there in the first place? If Eddie is the
>>> sole author as well as the submitter, and you didn't touch the patch in
>>> between, then your SoB does not belong in the chain.
>>>
>>> If you applied Eddie's patch to your shared tree and Eddie generated a
>>> patch from there, then the chain should be:
>>>
>>>          SoB: E
>>>          SoB: J
>>>          SoB: E
>>>
>>> but this is starting to look a bit ridiculous.
>> I agree. I would appreciate it if you applied the patch, with or
>> without my sob in whatever order you deem fit.
> Ok, I'll assume what you intended was E-J-E but that perhaps
> git-format-patch swallowed the last SoB. Thanks for clarifying.
>
> I was going to apply to the patch, but I see now that you didn't provide
> any details about the product apart from it being a UPS and that's not
> reflected in the define name.
>
> Do you have a pointer to device (family) in question?


Hi,


It's a pretty generic pl2303 device and doesn't have to be used for UPS, 
but that is our use-case. Here is a page with some detail about the 
device: 
https://www.ibm.com/docs/en/power9/9009-22A?topic=power-uninterruptible-supply


Thanks,

Eddie


>
> Johan

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

* Re: [PATCH v2] USB: serial: pl2303: Add IBM device IDs
  2022-03-03 21:48               ` Eddie James
@ 2022-03-04  8:48                 ` Johan Hovold
  2022-03-11  9:37                 ` Johan Hovold
  1 sibling, 0 replies; 11+ messages in thread
From: Johan Hovold @ 2022-03-04  8:48 UTC (permalink / raw)
  To: Eddie James; +Cc: Joel Stanley, linux-usb, Linux Kernel Mailing List, Greg KH

On Thu, Mar 03, 2022 at 03:48:37PM -0600, Eddie James wrote:
> On 3/3/22 04:13, Johan Hovold wrote:

> > I was going to apply to the patch, but I see now that you didn't provide
> > any details about the product apart from it being a UPS and that's not
> > reflected in the define name.
> >
> > Do you have a pointer to device (family) in question?

> It's a pretty generic pl2303 device and doesn't have to be used for UPS, 
> but that is our use-case. Here is a page with some detail about the 
> device: 
> https://www.ibm.com/docs/en/power9/9009-22A?topic=power-uninterruptible-supply

Ah, ok, I thought it may have been built into the UPS.

I've applied the patch now, thanks!

Johan

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

* Re: [PATCH v2] USB: serial: pl2303: Add IBM device IDs
  2022-03-03 21:48               ` Eddie James
  2022-03-04  8:48                 ` Johan Hovold
@ 2022-03-11  9:37                 ` Johan Hovold
  1 sibling, 0 replies; 11+ messages in thread
From: Johan Hovold @ 2022-03-11  9:37 UTC (permalink / raw)
  To: Eddie James; +Cc: Joel Stanley, linux-usb, Linux Kernel Mailing List, Greg KH

On Thu, Mar 03, 2022 at 03:48:37PM -0600, Eddie James wrote:

> It's a pretty generic pl2303 device and doesn't have to be used for UPS, 
> but that is our use-case. Here is a page with some detail about the 
> device: 
> https://www.ibm.com/docs/en/power9/9009-22A?topic=power-uninterruptible-supply

Could you please also post the output of "lsusb -v" for this device to
this thread for completeness? This may be needed to improve the current
type detection for newer pl2303 devices.

Do you know which type of PL2303 you use?

Thanks!

Johan

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

end of thread, other threads:[~2022-03-11  9:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-01 22:44 [PATCH v2] USB: serial: pl2303: Add IBM device IDs Eddie James
2022-03-03  8:25 ` Johan Hovold
2022-03-03  8:52   ` Joel Stanley
2022-03-03  9:15     ` Johan Hovold
2022-03-03  9:24       ` Joel Stanley
2022-03-03  9:44         ` Johan Hovold
2022-03-03  9:46           ` Joel Stanley
2022-03-03 10:13             ` Johan Hovold
2022-03-03 21:48               ` Eddie James
2022-03-04  8:48                 ` Johan Hovold
2022-03-11  9:37                 ` Johan Hovold

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).