From: Lukas Wunner <lukas@wunner.de>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>,
Roosen Henri <Henri.Roosen@ginzinger.com>,
linux-serial@vger.kernel.org,
Ilpo Jarvinen <ilpo.jarvinen@linux.intel.com>,
Jiri Slaby <jirislaby@kernel.org>,
Lino Sanfilippo <LinoSanfilippo@gmx.de>,
David Laight <David.Laight@aculab.com>,
Maarten Brock <m.brock@vanmierlo.com>,
Jan Kiszka <jan.kiszka@siemens.com>,
Su Bao Cheng <baocheng.su@siemens.com>,
Chao Zeng <chao.zeng@siemens.com>,
Peter Hung <hpeter+linux_kernel@gmail.com>,
Daniel Golle <daniel@makrotopia.org>,
"Codrin.Ciubotariu@microchip.com"
<Codrin.Ciubotariu@microchip.com>,
Sherry Sun <sherry.sun@nxp.com>,
Serge Semin <Sergey.Semin@baikalelectronics.ru>,
Ricardo Ribalda <ribalda@kernel.org>,
Dario Binacchi <dariobin@libero.it>,
Bich Hemon <bich.hemon@st.com>, Marek Vasut <marex@denx.de>,
Vicente Bergas <vicencb@gmail.com>
Subject: Re: [PATCH v2] serial: Deassert Transmit Enable on probe in driver-specific way
Date: Thu, 22 Sep 2022 18:30:42 +0200 [thread overview]
Message-ID: <20220922163042.GA12887@wunner.de> (raw)
In-Reply-To: <YyyIIIpPZD1gOToi@kroah.com>
On Thu, Sep 22, 2022 at 06:06:56PM +0200, Greg Kroah-Hartman wrote:
> On Thu, Sep 22, 2022 at 05:43:53PM +0200, Lukas Wunner wrote:
> > On Thu, Sep 22, 2022 at 04:43:51PM +0200, Greg Kroah-Hartman wrote:
> > > On Wed, Sep 21, 2022 at 06:39:33AM +0200, Lukas Wunner wrote:
> > > > When a UART port is newly registered, uart_configure_port() seeks to
> > > > deassert RS485 Transmit Enable by setting the RTS bit in port->mctrl.
> > > > However a number of UART drivers interpret a set RTS bit as *assertion*
> > > > instead of deassertion: Affected drivers include those using
> > > > serial8250_em485_config() (except 8250_bcm2835aux.c) and some using
> > > > mctrl_gpio (e.g. imx.c).
> > > >
> > > > Since the interpretation of the RTS bit is driver-specific, it is not
> > > > suitable as a means to centrally deassert Transmit Enable in the serial
> > > > core. Instead, the serial core must call on drivers to deassert it in
> > > > their driver-specific way. One way to achieve that is to call
> > > > ->rs485_config(). It implicitly deasserts Transmit Enable.
> > > >
> > > > So amend uart_configure_port() and uart_resume_port() to invoke
> > > > uart_rs485_config(). That allows removing calls to uart_rs485_config()
> > > > from drivers' ->probe() hooks and declaring the function static.
> > [...]
> > >
> > > This message never made it to lore.kernel.org, so I can't seem to apply
> > > it using `b4`.
> > >
> > > Can you resend it so that it does make it to the public archives?
> >
> > Yes, both v1 and v2 didn't make it to the mailing list archive.
> > My suspicion is that the Cc: line was probably too long.
> >
> > I resent as v3 with only you in To: and the mailing list in Cc: and
> > this time it went through:
> >
> > https://lore.kernel.org/linux-serial/2de36eba3fbe11278d5002e4e501afe0ceaca039.1663860626.git.lukas@wunner.de/
> >
> > On the bright side, v2 contained an embarrassing checkpatch issue
> > (superfluous newline) and resending as v3 provided a welcome
> > opportunity to fix that. :)
>
> v3 did not have a changelog :(
>
> v4?
Well, the changelog is above. (Only the superfluous newline was removed
in v3 vis-à-vis v2.)
Here's a v4 with full changelog:
https://lore.kernel.org/linux-serial/2de36eba3fbe11278d5002e4e501afe0ceaca039.1663863805.git.lukas@wunner.de/
next prev parent reply other threads:[~2022-09-22 16:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <e688f63bc28827b0e8c9d8e2319e688aee412d24.1663733425.git.lukas@wunner.de>
2022-09-22 14:43 ` [PATCH v2] serial: Deassert Transmit Enable on probe in driver-specific way Greg Kroah-Hartman
2022-09-22 15:43 ` Lukas Wunner
2022-09-22 16:06 ` Greg Kroah-Hartman
2022-09-22 16:30 ` Lukas Wunner [this message]
2022-10-07 11:34 ` Matthias Schiffer
2022-10-07 12:02 ` Lukas Wunner
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=20220922163042.GA12887@wunner.de \
--to=lukas@wunner.de \
--cc=Codrin.Ciubotariu@microchip.com \
--cc=David.Laight@aculab.com \
--cc=Henri.Roosen@ginzinger.com \
--cc=LinoSanfilippo@gmx.de \
--cc=Sergey.Semin@baikalelectronics.ru \
--cc=baocheng.su@siemens.com \
--cc=bich.hemon@st.com \
--cc=chao.zeng@siemens.com \
--cc=daniel@makrotopia.org \
--cc=dariobin@libero.it \
--cc=gregkh@linuxfoundation.org \
--cc=hpeter+linux_kernel@gmail.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jan.kiszka@siemens.com \
--cc=jirislaby@kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=m.brock@vanmierlo.com \
--cc=marex@denx.de \
--cc=matthias.schiffer@ew.tq-group.com \
--cc=ribalda@kernel.org \
--cc=sherry.sun@nxp.com \
--cc=vicencb@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