From: Shawn Lin <shawn.lin@linux.dev>
To: Ulf Hansson <ulf.hansson@oss.qualcomm.com>
Cc: shawn.lin@linux.dev, Ulf Hansson <ulfh@kernel.org>,
linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 0/3] Add SDIO userspace passthrough support
Date: Tue, 1 Dec 2026 14:36:33 +0800 [thread overview]
Message-ID: <dcbf502a-6e2d-4ce3-83b2-67bc87e9a65f@linux.dev> (raw)
In-Reply-To: <CAPx+jO8UC-6be9-24eXgWdrFnm047niARcNR2CaOjm0jP_CEHQ@mail.gmail.com>
在 2026/11/26 星期四 23:50, Ulf Hansson 写道:
> On Mon, Sep 21, 2026 at 9:18 AM Shawn Lin <shawn.lin@rock-chips.com> 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.
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.
prev parent reply other threads:[~2026-12-01 6:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 7:18 [PATCH v2 0/3] Add SDIO userspace passthrough support Shawn Lin
2026-09-21 7:18 ` [PATCH v2 1/3] mmc: core: Add SDIO userspace passthrough character device Shawn Lin
2026-09-21 7:18 ` [PATCH v2 2/3] tools/sdio: add sdio-raw userspace client Shawn Lin
2026-09-21 7:18 ` [PATCH v2 3/3] docs: mmc: add introduction to writing SDIO function drivers Shawn Lin
2026-10-29 0:27 ` [PATCH v2 0/3] Add SDIO userspace passthrough support Shawn Lin
2026-11-26 15:50 ` Ulf Hansson
2026-12-01 6:36 ` Shawn Lin [this message]
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=dcbf502a-6e2d-4ce3-83b2-67bc87e9a65f@linux.dev \
--to=shawn.lin@linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=ulf.hansson@oss.qualcomm.com \
--cc=ulfh@kernel.org \
/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