From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jiaqing Zhao <Zhao.Jiaqing@amd.com>
Cc: xen-devel@lists.xenproject.org,
Andrew Cooper <andrew.cooper3@citrix.com>,
Anthony PERARD <anthony.perard@vates.tech>,
Michal Orzel <michal.orzel@amd.com>,
Jan Beulich <jbeulich@suse.com>, Julien Grall <julien@xen.org>,
Stefano Stabellini <sstabellini@kernel.org>,
Denis Mukhin <dmukhin@ford.com>
Subject: Re: [PATCH v4 1/2] ns16550: add support for WCH CH382 serial adapters
Date: Tue, 2 Jun 2026 09:08:19 +0200 [thread overview]
Message-ID: <ah6BY8gNUlPZ8PQp@macbook.local> (raw)
In-Reply-To: <20260602053421.773149-2-Zhao.Jiaqing@amd.com>
On Tue, Jun 02, 2026 at 01:34:20PM +0800, Jiaqing Zhao wrote:
> Add support for the WCH (Nanjing Qinheng Microelectronics Co., Ltd.)
> CH382 PCIe dual port serial adapter. The CH382 is available in two
> variants:
> - CH382 2S [1c00:3253]: 2 serial ports
> - CH382 2S1P [1c00:3250]: 2 serial ports + 1 parallel port
>
> This chip uses IO BAR0, base baud rate 115200, ports starting at offset
> 0xc0 and spaced 8 bytes apart, and a 256-byte FIFO. [1]
>
> [1] https://www.wch-ic.com/downloads/CH382DS1_PDF.html
>
> Signed-off-by: Jiaqing Zhao <Zhao.Jiaqing@amd.com>
> Reviewed-by: Denis Mukhin <dmukhin@ford.com>
> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
> ---
> xen/drivers/char/ns16550.c | 23 +++++++++++++++++++++++
> xen/include/xen/pci_ids.h | 2 ++
> 2 files changed, 25 insertions(+)
>
> diff --git a/xen/drivers/char/ns16550.c b/xen/drivers/char/ns16550.c
> index 878da27f2e..cf10a06a3d 100644
> --- a/xen/drivers/char/ns16550.c
> +++ b/xen/drivers/char/ns16550.c
> @@ -95,6 +95,7 @@ struct ns16550_config {
> param_exar_xr17v354,
> param_exar_xr17v358,
> param_intel_lpss,
> + param_wch_ch382,
> } param;
> };
>
> @@ -861,6 +862,16 @@ static const struct ns16550_config_param __initconst uart_param[] = {
> .mmio = 1,
> .max_ports = 1,
> },
> + [param_wch_ch382] = {
> + .base_baud = 115200,
> + .first_offset = 0xc0,
> + .uart_offset = 8,
> + .reg_width = 1,
> + .fifo_size = 256,
> + .lsr_mask = UART_LSR_THRE,
> + .bar0 = 1,
.bar0 field is a boolean, and hence this should be "true", not "1".
The rest LGTM:
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Thanks, Roger.
next prev parent reply other threads:[~2026-06-02 7:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-02 5:34 [PATCH v4 0/2] ns16550: add support for WCH CH382 and ASIX AX99100 Jiaqing Zhao
2026-06-02 5:34 ` [PATCH v4 1/2] ns16550: add support for WCH CH382 serial adapters Jiaqing Zhao
2026-06-02 7:08 ` Roger Pau Monné [this message]
2026-06-02 5:34 ` [PATCH v4 2/2] ns16550: add support for ASIX AX99100 PCIe Multi-I/O controller Jiaqing Zhao
2026-06-02 5:41 ` Jiaqing Zhao
2026-06-02 7:09 ` Roger Pau Monné
2026-06-02 10:15 ` [PATCH v4 0/2] ns16550: add support for WCH CH382 and ASIX AX99100 Jan Beulich
2026-06-10 5:44 ` Jiaqing Zhao
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=ah6BY8gNUlPZ8PQp@macbook.local \
--to=roger.pau@citrix.com \
--cc=Zhao.Jiaqing@amd.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=dmukhin@ford.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.