From: Johan Hovold <johan@kernel.org>
To: Charles Yeh <charlesyeh522@gmail.com>
Cc: gregkh@linuxfoundation.org, johan@kernel.org,
linux-usb@vger.kernel.org, charles-yeh@prolific.com.tw,
Vera.Wang@quantatw.com, Tim-Chen@quantatw.com,
BenLin@quantatw.com
Subject: Re: [PATCH] USB: serial: pl2303: Add new chip to support Chrome OS
Date: Mon, 22 Jun 2020 11:03:51 +0200 [thread overview]
Message-ID: <20200622090351.GB3334@localhost> (raw)
In-Reply-To: <20200617125924.1696-1-charlesyeh522@gmail.com>
On Wed, Jun 17, 2020 at 08:59:24PM +0800, Charles Yeh wrote:
> Prolific has developed a new USB to UART chip: PL2303HXN
> PL2303HXN : PL2303GC/PL2303GS/PL2303GT/PL2303GL/PL2303GE/PL2303GB
> The Vendor request used by the PL2303HXN (TYPE_HXN) is different from
> the existing PL2303 series (TYPE_HX & TYPE_01).
> Therefore, different Vendor requests are used to issue related commands.
>
> Google Chrome OEM's vendor is Quanta
> The modification requirements of this patch file are from
> Google-->Quanta-->>Prolific
> Currently Chrome OS does not support PL2303HXN (TYPE_HXN),
> So Quanta hopes that Prolific provide patch files to support Chrome OS.
>
> Below is the patch file modification instructions.
>
> 1. Added a new TYPE_HXN type in pl2303_type_data, and then executes
> new Vendor request,new flow control and other related instructions
> if TYPE_HXN is recognized.
>
> 2. Because the new PL2303HXN only accept the new Vendor request,
> the old Vendor request cannot be accepted (the error message
> will be returned)
> So first determine the TYPE_HX or TYPE_HXN through
> PL2303_READ_TYPE_HX_STATUS in pl2303_startup.
>
> 2.1 If the return message is "1", then the PL2303 is the existing
> TYPE_HX/ TYPE_01 series.
> The other settings in pl2303_startup are to continue execution.
> 2.2 If the return message is "not 1", then the PL2303 is the new
> TYPE_HXN series.
> The other settings in pl2303_startup are ignored.
> (PL2303HXN will directly use the default value in the hardware,
> no need to add additional settings through the software)
>
> 3. In pl2303_open: Because TYPE_HXN is different from the instruction of reset
> down/up stream used by TYPE_HX.
> Therefore, we will also execute different instructions here.
>
> 4. In pl2303_set_termios: The UART flow control instructions used by
> TYPE_HXN/TYPE_HX/TYPE_01 are different.
> Therefore, we will also execute different instructions here.
>
> 5. In pl2303_vendor_read & pl2303_vendor_write, since TYPE_HXN is different
> from the vendor request instruction used by TYPE_HX/TYPE_01,
> it will also execute different instructions here.
>
> 6. In pl2303_update_reg: TYPE_HXN used different register for flow control.
> Therefore, we will also execute different instructions here.
>
> Signed-off-by: Charles Yeh <charlesyeh522@gmail.com>
> ---
> drivers/usb/serial/pl2303.c | 124 +++++++++++++++++++++++++++++-------
> drivers/usb/serial/pl2303.h | 7 +-
> 2 files changed, 107 insertions(+), 24 deletions(-)
Most, or even all, of this has already been merged to mainline. Why are
you posting it again?
If you want to add further features you need to base your patches on the
latest code.
Johan
prev parent reply other threads:[~2020-06-22 9:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-17 12:59 [PATCH] USB: serial: pl2303: Add new chip to support Chrome OS Charles Yeh
2020-06-18 10:06 ` Vera Wang (王詩郁)
2020-06-19 0:21 ` Charles Yeh
2020-06-22 9:03 ` Johan Hovold [this message]
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=20200622090351.GB3334@localhost \
--to=johan@kernel.org \
--cc=BenLin@quantatw.com \
--cc=Tim-Chen@quantatw.com \
--cc=Vera.Wang@quantatw.com \
--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;
as well as URLs for NNTP newsgroup(s).