Re: [PATCH v2 0/3] Add SDIO userspace passthrough support
From: Ulf Hansson
Date: Tue Dec 01 2026 - 03:41:31 EST
On Tue, Dec 1, 2026 at 7:36 AM Shawn Lin <shawn.lin@xxxxxxxxx> wrote:
>
> 在 2026/11/26 星期四 23:50, Ulf Hansson 写道:
> > On Mon, Sep 21, 2026 at 9:18 AM Shawn Lin <shawn.lin@xxxxxxxxxxxxxx> wrote:
> >>
> >>
> >> SDIO cards are normally driven by function drivers (brcmfmac,
> >> mwifiex, rtw88_8723bs, ...), but bring-up, debugging and factory
> >> test frequently need to poke the SDIO register space directly:
> >> CCCR/FBR in function 0, or vendor registers before any function
> >> driver is bound, and some deployments, notably lightweight IoT
> >> boards, want to handle the SDIO function entirely from userspace.
> >> Today the only way is to write a tiny kernel driver per device.
> >
> > My sincere apologies for the huge delay in reviewing this.
> >
> > I am simply not convinced that it's a good idea to allow SDIO function
> > drivers to be implemented in user space. My concern doesn't only cover
> > various new use cases this would introduce, but also about bringing
> > another ABI to the MMC/SD/SDIO subsystem. And to me, it looks like for
> > no good reason.
> >
> > However, in regards to debugging, bringup and similar, yes, we may
> > have some pieces missing. To address these problems, I would rather
> > suggest that we look for in-kernel solutions and if it turns out that
> > we need some new SDIO helpers, I am certainly open to discuss them.
> >
>
> No worries at all, and thanks for taking the time to look at this.
> I understand your concern, let me go through the series again and see if
> any of the debugging /bringup helpers can be extracted as small in-
> kernel improvements.
Sounds great, thanks!
>
> BTW, I'd also appreciate it if you could take a look at patch 3.
> I think it stands on its own and could be separated from the rest of
> the series. If you'd rather I resend it as a standalone patch, just
> let me know.
Please re-submit it separately, it will potentially allow more people
to join the discussion/review of it.
Kind regards
Uffe