From: Hugo Villeneuve <hugo@hugovil.com>
To: Hugo Villeneuve <hugo@hugovil.com>
Cc: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Jiri Slaby" <jirislaby@kernel.org>,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Hugo Villeneuve" <hvilleneuve@dimonoff.com>,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org
Subject: Re: [PATCH] serial: 8250_hub6: Fix double definition for hub6_match_port()
Date: Mon, 27 Jul 2026 11:26:43 -0400 [thread overview]
Message-ID: <20260727112643.86b3ab3a725eabc66eb47e39@hugovil.com> (raw)
In-Reply-To: <20260727112210.7a0b08d19de0e17fbd995290@hugovil.com>
On Mon, 27 Jul 2026 11:22:10 -0400
Hugo Villeneuve <hugo@hugovil.com> wrote:
> Hi Uwe,
>
> On Fri, 24 Jul 2026 09:58:13 +0200
> Uwe Kleine-König <u.kleine-koenig@baylibre.com> wrote:
>
> > 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/20260715153707.4181828-1-hugo@hugovil.com/
> > > > 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).
>
> this change was certainly not intended, sorry about that. Looks like
> there are still subtle Kconfig-isms (and 8250-isms) that I still need to
> master...
>
> So to be sure i understand this correctly:
> I will submit a patch to replace IS_REACHABLE with IS_ENABLED, which
> means that the configuration CONFIG_SERIAL_8250=y and
> CONFIG_SERIAL_8250_HUB6=m is not supported, as you stated that
> it currently cannot happen?
Or we leave it as is, since this combination is not really valid?
--
Hugo Villeneuve
next prev parent reply other threads:[~2026-07-27 15:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-20 8:08 [PATCH] serial: 8250_hub6: Fix double definition for hub6_match_port() Uwe Kleine-König (The Capable Hub)
2026-07-20 10:31 ` Uwe Kleine-König (The Capable Hub)
2026-07-20 14:07 ` Hugo Villeneuve
2026-07-20 21:18 ` Uwe Kleine-König
2026-07-20 22:53 ` Hugo Villeneuve
2026-07-23 4:37 ` Uwe Kleine-König
2026-07-24 3:13 ` Hugo Villeneuve
2026-07-24 7:58 ` Uwe Kleine-König
2026-07-27 15:22 ` Hugo Villeneuve
2026-07-27 15:26 ` Hugo Villeneuve [this message]
2026-07-29 13:30 ` Uwe Kleine-König
2026-07-30 14:49 ` Greg Kroah-Hartman
2026-07-30 19:57 ` Uwe Kleine-König
2026-07-30 20:15 ` Hugo Villeneuve
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=20260727112643.86b3ab3a725eabc66eb47e39@hugovil.com \
--to=hugo@hugovil.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=hvilleneuve@dimonoff.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=u.kleine-koenig@baylibre.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