From: Johan Hovold <johan@kernel.org>
To: Charles Yeh <charlesyeh522@gmail.com>
Cc: "Greg KH" <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org,
"Yeh.Charles [葉榮鑫]" <charles-yeh@prolific.com.tw>
Subject: Re: [PATCH] USB: serial: pl2303: Modify the detection method of PL2303HXN (TYPE_HXN)
Date: Mon, 20 Jun 2022 14:41:03 +0200 [thread overview]
Message-ID: <YrBq3+Q4geN0bF5x@hovoldconsulting.com> (raw)
In-Reply-To: <CAAZvQQ4iHB44=Ug7o+=ZqzTCYSM3igSwfi1xBUGqJS1ChzcbUw@mail.gmail.com>
On Mon, Jun 20, 2022 at 06:51:58PM +0800, Charles Yeh wrote:
> > > The setting value of bcdUSB & bcdDevice of PL2303TA is the same as the
> > > setting value of bcdUSB & bcdDevice of a certain chip of PL2303HXN
> >
> > Which ones would that be?
>
> PL2303GT_R4 (chip version: v4) is the same as PL2303TA.
[...]
> > > The setting value of bcdUSB & bcdDevice of PL2303TB is the same as the
> > > setting value of bcdUSB & bcdDevice of a certain chip of PL2303HXN
> >
> > Same question here.
>
> PL2303GE_R4 (chip version: v4) is the same as PL2303TB.
Thanks for the details.
> > Could you provide a list of the bcdDevice you use for the various HXN
> > types instead?
>
> I also hope to have a complete list of all HXN versions..
> But it is difficult.. I use PL2303GT as an example.
> PL2303GT is currently divided into PL2303GT_R4 / PL2303GT_R5 / PL2303GT_R5+
>
> PL2303GT_R4 : idProduct : 0x23C3, bcdDevice: 0x0300
> PL2303GT_R5 : idProduct : 0x23C3, bcdDevice: 0x0305
> PL2303GT_R5+ : idProduct : 0x23A3, bcdDevice: 0x0305
>
> The above three kinds of PL2303GT are currently available in the market.
Ok, but the above could be handled with two entries or if needed we can
just check the major number (i.e. the MSB, 0x03)?
Do the other types follow a similar pattern?
So far I've gathered that
0x100 GC
0x105 GC
0x300 GT / TA
0x305 GT
0x405 GL
0x500 GE / TB
0x605 GS
So it look like we could use the major version number.
Anything more we need to add to the above list?
> From the bcdUSB & bcdDevice of PL2303GT_R4, it is the same as PL2303TA.
> So it needs to be checked again with hx_status check.
Right, the 0x300 and 0x500 need special handling.
> As mentioned earlier, some HXNs are currently on sale,
> and some HXN versions are coming out (bcdDevice will have other settings),
> HXN cannot use bcdDevice to determine the type one by one.
Surely you have way to determine the types since they have different
features. Are you not using bcdDevice for this for that other OS?
Johan
next prev parent reply other threads:[~2022-06-20 12:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-17 13:35 [PATCH] USB: serial: pl2303: Modify the detection method of PL2303HXN (TYPE_HXN) Charles Yeh
2022-06-20 9:39 ` Johan Hovold
2022-06-20 10:51 ` Charles Yeh
2022-06-20 12:41 ` Johan Hovold [this message]
2022-06-21 4:41 ` Charles Yeh
2022-06-21 8:06 ` Johan Hovold
2022-06-21 8:17 ` Charles Yeh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YrBq3+Q4geN0bF5x@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=charles-yeh@prolific.com.tw \
--cc=charlesyeh522@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox