Re: [PATCH] serial: 8250_hub6: Fix double definition for hub6_match_port()
Uwe Kleine-König <[email protected]> Fri, 24 Jul 2026 09:58:13 +0200
| Newsgroups | org.kernel.vger.linux-serial,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <amMZoJ41FKcd2ddG@monoceros> |
On Thu, Jul 23, 2026 at 11:13:59PM -0400, Hugo Villeneuve wrote: > > For me the open question remains if the driver works in the > > configuration CONFIG_SERIAL_8250=y (and thus CONFIG_SERIAL_CORE=y) + > > CONFIG_SERIAL_8250_HUB6=m. In this case at least commit > > 3d406299d8829747fe2e8692f4c29fe3dc1d101f + > > https://lore.kernel.org/linux-serial/[email protected]/ > > introduces a logical change in uart_match_port() that isn't explained in > > the commit log. > > Not sure what you mean by that logical change? With said configuration and before 3d406299d8829747fe2e8692f4c29fe3dc1d101f uart_match_port() returned port1->iobase == port2->iobase && port1->hub6 == port2->hub6 and with 3d406299d8829747fe2e8692f4c29fe3dc1d101f (and your fix on top) it returns false (because when drivers/tty/serial/serial_core.c is compiled IS_REACHABLE(CONFIG_SERIAL_8250_HUB6) evaluates to false). Best regards Uwe
signature.asc
(application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmpjGxMACgkQj4D7WH0S /k6pyggAmd1KCtnMBdIxWMNBg1jDsLHqgkhcGyMi0G9P8cEgODx4GEK0T/LaS0YN stJUZ7lhJ9PABB5L7DhKmZu+DrpOS6Fg1LHWO0LamkLr/5DwJb2rZt1sfCxugX/y sn15gau6oym4zexW5JhBwUREXh/ByETbo0WIa+WVoom9jPyP5YJ2jRyiMyoDi0HQ 1hzmvxEUzmktKdN4LPTvZv3AhsKhozt2pd48lKexcDAJ2ftv6EinumgbNkQRKdbb M5Pcb/ItySsO+RsK2eeOG56fI3ygHmIVip34Gt6Sa4E1/t4kKOmJpbrRuROPwc3f VohXuUGdiiDImUdq7H8TJZkiWRdugg== =fnpQ -----END PGP SIGNATURE-----