Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp651465pxu; Fri, 23 Oct 2020 09:51:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7HP/tMNWnRboMfFeWBjF0zxectYCRW0E3L7YnxCV4kXLgNYjePeTE7PVQc3t73/dFi7Dr X-Received: by 2002:a17:906:aecf:: with SMTP id me15mr3007676ejb.423.1603471914951; Fri, 23 Oct 2020 09:51:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603471914; cv=none; d=google.com; s=arc-20160816; b=fpiVsmDLvA/WDZ2vGDxcYzpUB8DBm3Hiu8ewbXHcgebp6R/RHXYsIj9fq5X4v2gwcb wJeia7UaHgol8VojldndBe/Uh80fUGbDaCZBEWPvKMucRlUokIqMSdhwjTjbDlQaAt8K gSwfpLgO5y3YELRO8VNAD5I7aGd1FFeU8y5TpFlzHQRiOKHOj4DWUd4ox6zlRa3ld6De 74bw30/b1AjbS25OdvnuHYHEhfU0jQvuQ0H7FO9WhCTge/59ifDX5Ab0l0cp6ymFU1TV pXS8VI3AqsU72nEZNYGeYcrGgtdqpYEk6yhGeeLulyOZ+qOgMlvipKv8FIhUrSwFP1Yr cgdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gO/oL74fW2mkRXF0DqbmI1JtHgmyCnadyUr8ho/W0xk=; b=lCHETXU601e3fRHmD09jScT/fDf+T86KF+VZwmNZr/+OIPzGYh8XzB0JyudQsKdh1j svF6mNze5g7XGh/wjW77ZpQq/82Fyl26kCR3vlZiji2ky5M+DcWUcpp6VI0fN+mP5CVE /EfKyzsdtsLN/fJcqK6XxIecJXIz1uznly3e0Oq264zcsGI9zhBHk03sRQUy0vyBj2Y4 Pq17bbONyH0Mmn68DpwiE7tcLsQgRAZFspjKeHA1FBdZthYxqZR3c/PT3/+YRYFhK+At 7QrvrsChadngSF5qiZxFiYj7eAYG1WvsF8lXUMs93jc/vxYMEf4Pxs/9HKONyg/J305R cmYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn17si1450378ejb.666.2020.10.23.09.51.33; Fri, 23 Oct 2020 09:51:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S461230AbgJWJOQ (ORCPT + 99 others); Fri, 23 Oct 2020 05:14:16 -0400 Received: from verein.lst.de ([213.95.11.211]:55330 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S461148AbgJWJOM (ORCPT ); Fri, 23 Oct 2020 05:14:12 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 3632C67373; Fri, 23 Oct 2020 11:14:09 +0200 (CEST) Date: Fri, 23 Oct 2020 11:14:08 +0200 From: Christoph Hellwig To: Ulf Hansson Cc: =?utf-8?B?5Yav6ZSQ?= , Christoph Hellwig , Arnd Bergmann , Greg Kroah-Hartman , Linux Kernel Mailing List , "linux-mmc@vger.kernel.org" Subject: Re: [PATCH 3/3] mmc: rtsx: Add SD Express mode support for RTS5261 Message-ID: <20201023091408.GA5201@lst.de> References: <1600999061-13669-1-git-send-email-rui_feng@realsil.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 23, 2020 at 10:02:15AM +0200, Ulf Hansson wrote: > > > Is there no mechanism to support read-only PCIe/NVMe based storage devices? > > > If that is the case, maybe it's simply better to not support the readonly option > > > at all for SD express cards? > > > > > I think there's no mechanism to support read-only PCIe/NVMe based storage devices. > > I have looped in Christoph, maybe he can give us his opinion on this. NVMe namespaces can have a bunch of 'write protection' modes advertised by the controller, which Linux respects. The controller in this case would be part of the SD-Card. IMHO it is a quality of implementation issue of the SD-Card/Controller to have the the write protection mode of the namespace(s) match that of the SD interface, and the SD card spec should talk about that if it doesn't already.