Re: [PATCH 23/33] serial: 8250: extract serial8250_set_efr()

From: Jiri Slaby
Date: Mon Jun 23 2025 - 03:21:00 EST


On 12. 06. 25, 20:54, Andy Shevchenko wrote:
On Thu, Jun 12, 2025 at 12:01:29PM +0200, Jiri Slaby wrote:
On 11. 06. 25, 14:58, Ilpo Järvinen wrote:
On Wed, 11 Jun 2025, Jiri Slaby (SUSE) wrote:

...

+ if (port->flags & UPF_EXAR_EFR)

I wonder if it is possible to trigger this at all? Only 8250_exar.c sets
this flag and does not contain UART_CAP_EFR at all (nor uses
UPF_BOOT_AUTOCONF)??

The file indeed does not contain it, BUT it sets it implicitly (via port type).
So, this is not a dead code. Please, do not remove it.

Ah, both PORT_XR17D15X and PORT_XR17V35X set UART_CAP_EFR in uart_config[].

thanks,
--
js
suse labs