Re: [PATCH v1 2/2] soc: starfive: Add JHB100 UART Routing driver

From: Linus Walleij

Date: Wed Sep 16 2026 - 09:09:51 EST


On Mon, Aug 31, 2026 at 3:35 AM Changhuang Liang
<changhuang.liang@xxxxxxxxxxxxxxxx> wrote:

> I may have misunderstood something,please correct me if I'm wrong:
>
> I have found two subsystems related to multiplexing so far:
>
> /drivers/pinctrl and /drivers/mux. However, neither of them seems to provide a
> user-space interface for switching multiplexing values.
>
> Do you have any suggestions on this?

Instead of making a "fix on the side" locally in a driver, improve
the existing subsystems.

If you want a way to flag certain pin multiplexing as user
selectable and expose them to userspace, work inside the
pin control subsystem to establish an ABI for that for
everyone to use, no local hacks.

Yours,
Linus Walleij