From: Greg KH <gregkh@linuxfoundation.org>
To: Jacky Huang <ychuang570808@gmail.com>
Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
lee@kernel.org, mturquette@baylibre.com, sboyd@kernel.org,
p.zabel@pengutronix.de, jirislaby@kernel.org,
tmaimon77@gmail.com, catalin.marinas@arm.com, will@kernel.org,
devicetree@vger.kernel.org, linux-clk@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-serial@vger.kernel.org, arnd@arndb.de, soc@kernel.org,
schung@nuvoton.com, mjchen@nuvoton.com,
Jacky Huang <ychuang3@nuvoton.com>
Subject: Re: [PATCH v14 1/1] tty: serial: Add Nuvoton ma35d1 serial driver support
Date: Tue, 13 Jun 2023 16:49:54 +0200 [thread overview]
Message-ID: <2023061356-matchbook-footwear-d142@gregkh> (raw)
In-Reply-To: <f8eb6114-8248-8886-b301-c2886e50e016@gmail.com>
On Tue, Jun 13, 2023 at 06:58:32PM +0800, Jacky Huang wrote:
> Dear Greg,
>
>
> On 2023/6/13 下午 06:28, Greg KH wrote:
> > On Mon, Jun 12, 2023 at 02:53:55AM +0000, Jacky Huang wrote:
> > > From: Jacky Huang <ychuang3@nuvoton.com>
> > >
> > > This adds UART and console driver for Nuvoton ma35d1 Soc.
> > > It supports full-duplex communication, FIFO control, and
> > > hardware flow control.
> > You get a full 72 columns for your changelog :)
> >
> > > --- a/include/uapi/linux/serial_core.h
> > > +++ b/include/uapi/linux/serial_core.h
> > > @@ -279,4 +279,7 @@
> > > /* Sunplus UART */
> > > #define PORT_SUNPLUS 123
> > > +/* Nuvoton MA35 SoC */
> > > +#define PORT_MA35 124
> > > +
> > Why is this change needed? What userspace code is going to rely on it?
> >
> > thanks,
> >
> > greg k-h
>
> Because the serial driver requires a port->type, and almost all serial
> drivers defined their port type here. We follow the practice of most serial
> drivers here.
> If we don't do it this way, we would have to directly assign a value to
> port->type. However, such modifications were questioned in the past,
> which is why we changed it back to defining the port type in serial_core.h.
I really really want to get rid of this list, as it's a UAPI that no one
uses. So please don't use it, it doesn't help anything, and while the
serial driver might require it, it doesn't actually do anything with
that field, right? So why don't we just set all of the values to the
same one?
thanks,
greg k-h
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-06-13 14:50 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230612025355.547871-1-ychuang570808@gmail.com>
[not found] ` <20230612025355.547871-2-ychuang570808@gmail.com>
2023-06-13 9:36 ` [PATCH v14 1/1] tty: serial: Add Nuvoton ma35d1 serial driver support Ilpo Järvinen
2023-06-13 10:28 ` Greg KH
2023-06-13 10:58 ` Jacky Huang
2023-06-13 14:49 ` Greg KH [this message]
2023-06-13 15:44 ` Arnd Bergmann
2023-06-14 4:57 ` Jiri Slaby
2023-06-15 10:19 ` Greg Kroah-Hartman
2023-06-15 10:46 ` Jacky Huang
2023-06-15 11:11 ` Greg Kroah-Hartman
2023-06-15 14:01 ` Arnd Bergmann
2023-06-15 15:00 ` Greg Kroah-Hartman
2023-06-15 16:11 ` Arnd Bergmann
2023-06-13 10:29 ` Greg KH
2023-06-13 11:03 ` Jacky Huang
2023-06-13 14:48 ` Greg KH
2023-06-14 1:18 ` Jacky Huang
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=2023061356-matchbook-footwear-d142@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=arnd@arndb.de \
--cc=catalin.marinas@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=jirislaby@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=mjchen@nuvoton.com \
--cc=mturquette@baylibre.com \
--cc=p.zabel@pengutronix.de \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
--cc=schung@nuvoton.com \
--cc=soc@kernel.org \
--cc=tmaimon77@gmail.com \
--cc=will@kernel.org \
--cc=ychuang3@nuvoton.com \
--cc=ychuang570808@gmail.com \
/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