From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.1 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796107003; b=bNpDJIrab7KiWICUHgDnt408blltmd2qjUKEpp1yED3e/VOw9c/SQ9F7mHQYCfvQMHNY 8B/M6h8J+ZH80nGjGxtng0QWFm6Tx0bcdTpOTjWomqRKUYB9NtyqzxPAStb6MHwcMPRFE qydJzmXbITvNZrA/uzMFbuVxIBX8ay/9jdvyexGn31YjowTtG7E7K28MH0oPrJdldfmrA 2VMMoA+W7Tn2FRgoqVAQC5QcPlnELBUUdtQ70PArBQkEZDgAnwlfH5yHFtvvgSI6PjsXG vKllY95zLEPWMJCg5iZ++qgBkdbQEvjdG5uHNewbuVkdTWdQw02fRvA2ZDfQuaaevCg== 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=kcJ7b6dg/d/BhGyKEIaxLu35xSPwblVE8DpMyJWTbCLA+HAQLQzG6qqA9M/LysjP08Ls wAZMdshXlEVjxm2pzK7yegqSqBZY8RORUaHla7sNyzZ5ov458cTEa2lVja4gLWUHzig4h ykdvgw3pQ6EQV9YTqVAz9qFQHdyhqaZgetrt1jTaHnkRnaIK2SuiWFmPz08vfubXK8s0S g7gyNmjBsfztedrQinNVcNd1MMs00riJ9LwI0MbLcO3Tofjwwpbb5RKpY+Y0j8C3HlYEz 0985AhQptF9Sx5H+XEaHXc2jSr0Ik1IYIJvH/zPe6/+a/08CYfK55nZ+kK0ufq+ld5w== 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=95.215.58.1 Received: from mta1.migadu.com (out-1.mta1.migadu.com [95.215.58.1]) (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 1ECB0606A331 for ; Tue, 1 Dec 2026 06:36:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1ECB0606A331 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-mmc@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-mmc@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-mmc@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.