[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2646f5e7-7f26-e748-8812-f1d17c799b8a@linux.intel.com>
Date: Tue, 1 Nov 2022 17:49:55 +0200 (EET)
From: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
To: Andy Shevchenko <andy.shevchenko@...il.com>
cc: Tharunkumar.Pasumarthi@...rochip.com,
Kumaravel.Thiagarajan@...rochip.com,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jirislaby@...nel.org>,
u.kleine-koenig@...gutronix.de, johan@...nel.org,
wander@...hat.com, etremblay@...tech-controls.com,
macro@...am.me.uk, geert+renesas@...der.be, jk@...abs.org,
phil.edworthy@...esas.com, Lukas Wunner <lukas@...ner.de>,
LKML <linux-kernel@...r.kernel.org>,
linux-serial <linux-serial@...r.kernel.org>,
UNGLinuxDriver@...rochip.com
Subject: Re: [PATCH v2 tty-next 2/3] 8250: microchip: pci1xxxx: Add rs485
support to quad-uart driver.
On Tue, 1 Nov 2022, Andy Shevchenko wrote:
> On Tue, Nov 1, 2022 at 5:25 PM Ilpo Järvinen
> <ilpo.jarvinen@...ux.intel.com> wrote:
> > On Tue, 1 Nov 2022, Tharunkumar.Pasumarthi@...rochip.com wrote:
>
> ...
>
> > > I went through the code and it seems like this is not taken care by the core.
> > > Do you suggest calling 'serial8250_em485_config' inside 'pci1xxxx_rs485_config' callback?
> > > This has not been done since we do not need all the configurations done inside 'serial8250_em485_config'.
> >
> > It has nothing to do with serial8250_em485_config.
> >
> > It is very hard to believe you couldn't find
> > uart_sanitize_serial_rs485() and uart_set_rs485_config() yourself, the
> > latter calls your driver specific rs485 handler.
>
> Which version has this API? If it's v6.1-rc1 and patches are made
> against v6.0, it's possible to miss something.
>
> In any case, the patches to the serial subsystem should always be done
> against the tty/tty-next branch.
It has been for multiple stable kernel version already. It was moved to
own function by this commit:
git describe --contains 2dbd0c14ebe8836eaf890c7f50f3fc5d26d67d95
v6.0-rc1~64^2~129
Originally introduced here:
git describe --contains 0ed12afa5655512ee418047fb3546d229df20aa1
v5.19-rc1~47^2~142
There have been perhaps one of those things I pointed out that was added
later than the others but it won't explain why nothing was found from the
code.
--
i.
Powered by blists - more mailing lists