mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: "João Loureiro" <joaofl@gmail.com>
Cc: Jiri Slaby <jirislaby@kernel.org>,
	Sherry Sun <sherry.sun@nxp.com>, Frank Li <frank.li@nxp.com>,
	Alexander Dahl <ada@thorsis.com>,
	linux-serial@vger.kernel.org, imx@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] serial: fsl_lpuart: add support for GPIO-controlled modem lines
Date: Thu, 1 Oct 2026 11:12:30 +0200	[thread overview]
Message-ID: <2026100152-pupil-enlighten-9295@gregkh> (raw)
In-Reply-To: <CAJMWnCiJsNXsEe9JWDGBzHBGiUToco31ysoHF_Loj-9=YMQ3GQ@mail.gmail.com>

On Wed, Sep 23, 2026 at 10:41:09PM +0200, João Loureiro wrote:
> On Wed, Sep 23, 2026 at 02:53PM +0200, Greg Kroah-Hartman wrote:
> > On Wed, Aug 19, 2026 at 04:44:53PM +0200, João Loureiro wrote:
> > > --- a/drivers/tty/serial/Kconfig
> > > +++ b/drivers/tty/serial/Kconfig
> > > @@ -1301,6 +1301,7 @@ config SERIAL_FSL_LPUART
> > >       tristate "Freescale lpuart serial port support"
> > >       depends on HAS_DMA
> > >       select SERIAL_CORE
> > > +     select SERIAL_MCTRL_GPIO if GPIOLIB
> >
> > Why not depends?
> 
> Because SERIAL_MCTRL_GPIO is a hidden symbol.  It is declared as a bare
> "tristate" with no prompt at the end of the same Kconfig file, so it can
> only ever be enabled by a select.  With "depends on SERIAL_MCTRL_GPIO"
> nothing could ever satisfy the dependency and SERIAL_FSL_LPUART would
> become unselectable.
> 
> The dependency is also not a hard one.  serial_mctrl_gpio.h provides
> no-op static inlines for the !CONFIG_GPIOLIB case, so fsl_lpuart still
> builds and behaves exactly as before when GPIOLIB is off; the GPIO modem
> lines are an optional extra rather than a requirement.  A depends would
> silently drop LPUART from those configurations.
> 
> Finally, this is what every other user of the helpers does:
> SERIAL_ATMEL, SERIAL_IMX, SERIAL_SH_SCI, SERIAL_STM32, SERIAL_MXS_AUART,
> SERIAL_SA1100, SERIAL_CLPS711X and SERIAL_AR933X all spell it as
> "select SERIAL_MCTRL_GPIO if GPIOLIB" in the same file, so this keeps
> fsl_lpuart consistent with them.

for some reason your first email in this thread is not on
lore.kernel.org so I can't run the CI tools on it.

Can you resend a new version so that we can test it?

thanks,

greg k-h

      reply	other threads:[~2026-10-01  9:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260819144458.253967-1-joaofl@gmail.com>
2026-09-23 12:53 ` Greg Kroah-Hartman
2026-09-23 20:41   ` João Loureiro
2026-10-01  9:12     ` Greg Kroah-Hartman [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=2026100152-pupil-enlighten-9295@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=ada@thorsis.com \
    --cc=frank.li@nxp.com \
    --cc=imx@lists.linux.dev \
    --cc=jirislaby@kernel.org \
    --cc=joaofl@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=sherry.sun@nxp.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

all inboxes | Powered by JetHome®