From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.140 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796107003; b=HcrUZti9SbJgd1AfQ6F1plepKRD0VDlc4DMA3ge4cpGpqWHISUzi1csZxcpT+mJI0Iju 6c4lseP2n3kx54Vrn6Da4F7+O/dS9SS83pl3sa1uKlcm0jguACXQ62RW2xM5UI6uur+TL 21YV4ehQxouPxxM8eFlw+NFtF0YQ2kukVYnpLxFvnuGs1FrFbGSpy2TGHdLBeLCCPvl2i Ewoj8wbf9HfglQIXS/N82ZU3z4XgluDcYAqITPzolsSX6unDP8AzNEnfeJnzfVxSqHJPt uTKuPxsThklt2TPjTABimhqttdLMGIrzGLuZKetZ+5LUGabqYP/czhE4zn8OOlMV6ow== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796107003; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Cc:Subject:To:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=rc8oAecfuJFULgd091HW7NzW1K4ZLuT3Q9nPrnsubNQ=; b=0ON1ObXa1kdxcBnmviIr+aV05QbTz6Vo11/VJJ+13M1qq0dIRMiHq+w2C531zL2ZE0R2 NIIu6hsxfRkJtRgVY+4TyvNFGbtUkGXdoimaz+qoTtEAxNbeyPPSGX1aNmLrs9FqO9ZIK SK4OfNDvCZVcs/64a0H0GjreKcYEa0SQZUv0397XxmQ+yLHTRzltIlTc5EIz3FDWwQVgv 1NhyghiEUaHZTOm84KQj/TX3W7yPIVtuN5XSH/LRWBjP1znaOaE4euGDDAnbQsYdc/feK xhmO//HfBaTe5oJu+fzZOP8TtLQqPNT+IzrbXEJngSCcw2uFqXwUOMBFpOBYJWgFRBQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=lR6AAFFX; arc=none smtp.remote-ip=91.218.175.140 Received: from mta0.migadu.com (out-140.mta0.migadu.com [91.218.175.140]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09A45606A330 for ; Tue, 1 Dec 2026 06:36:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 09A45606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=lR6AAFFX X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=iAf8Ai11IrOWw7zWLWqUXFNsd5+d/emIJIW0oTGCEks=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796107001; v=1; x=1796711801; b=lR6AAFFXuqciiIG9c5Ag89eWI9BHQQJpAg+PZuvgDva8G7ZmFCGrqRD0be/sIDOD8J4SoIkO +Raf27c2nNo/gfKfGzY5a5C4aBAv351kbxTfatgJx0KxFDI5DTvmg3DwXpUV/gsSw8ylhetlQhD c4+vUyf71cyU0LvOlKhqGuss= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 79c230d438c6746b; Tue, 01 Dec 2026 06:36:41 +0000 X-Mizu-Trace-ID: 79c230d438c6746b X-Migadu-Flow: FLOW_OUT Message-ID: Date: Tue, 1 Dec 2026 14:36:33 +0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: shawn.lin@linux.dev, Ulf Hansson , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/3] Add SDIO userspace passthrough support To: Ulf Hansson References: <1789975099-157594-1-git-send-email-shawn.lin@rock-chips.com> From: Shawn Lin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 在 2026/11/26 星期四 23:50, Ulf Hansson 写道: > On Mon, Sep 21, 2026 at 9:18 AM Shawn Lin 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.