Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1017183ybc; Tue, 12 Nov 2019 12:52:03 -0800 (PST) X-Google-Smtp-Source: APXvYqxCaK7J58jBiue2tnDx4N2VyycEfqqsMG02y6esmRffJ6v6UgZBk9R73Jd+6w6hiqYvxWjG X-Received: by 2002:a05:6402:134f:: with SMTP id y15mr36105401edw.147.1573591923539; Tue, 12 Nov 2019 12:52:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573591923; cv=none; d=google.com; s=arc-20160816; b=kq+jQapxcSBadt3mXxSKTYcuu6izfeA0KCrUQbwtJjisGSqXj0s3daTZHx8CWwU67R MkWSPl63tHFWNYmrEFIvjKwZqo/4FnoHbj1Dk/8KCA/ZSfvym2pMvL+s4NbG/opk5sct nG/zaabTiGWNY3WfAvvXLCdLRk5d7aWhgSsGKlnHQ/QbwiIanMkNCmmEmE9Wv+OVp9/2 k6oVD5Sd3fVuB2yizprXFNj0+ssSdeiangiQCMK/YmDh2hPBY6I5SU0ddaSvFIawOv+j qWoBkKwALQE2uJPaCRSAnv5sXH9IdFoWP0aX82irJwfkbHIGY5y+8WxUX1JKQTDph152 3lyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=P3+2ZHv6MzhPNTwWsnrBPfpbC1tdZrCnJITckuqzl6Q=; b=WJXc0cfFioxHgW1ZeQdpUiXcZgBZQWZM3B21t5tP8hvZzsLjdWO6iydve8Xqu6TDFi HeQdnZiyWn9G0v9MqqnwAQ/zQacOtyruof6sM8/M3Yo5pxz1PmCEK7uE6tP/ENlhYzkC pK5etjKxdME3AKzfWx76tBXl/wcKNInZYHTmsZ53WS9H10wfAcDHDDRfdY1y/uUa+wpx DnE5oerrTNeiGlcVyRyW5lOus0k64f5PrNaAuYHLSii1Idqgw4u0fqzW49UBOgfnMsll QmfYQx7sBVHvGh1qpDtJrgpULo6eqv2Z8N0R7XNObRkWP8hO/CrF52eQD0BtrU+RW4TH TKCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si844279ejx.0.2019.11.12.12.51.38; Tue, 12 Nov 2019 12:52:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726932AbfKLUt5 (ORCPT + 99 others); Tue, 12 Nov 2019 15:49:57 -0500 Received: from sauhun.de ([88.99.104.3]:37204 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726645AbfKLUt4 (ORCPT ); Tue, 12 Nov 2019 15:49:56 -0500 Received: from localhost (x590c7292.dyn.telefonica.de [89.12.114.146]) by pokefinder.org (Postfix) with ESMTPSA id CDE132C015F; Tue, 12 Nov 2019 21:49:52 +0100 (CET) Date: Tue, 12 Nov 2019 21:49:52 +0100 From: Wolfram Sang To: Eugeniu Rosca Cc: Wolfram Sang , Yoshihiro Shimoda , Niklas =?utf-8?Q?S=C3=B6derlund?= , Ulf Hansson , Geert Uytterhoeven , Simon Horman , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Eugeniu Rosca , Harish Jenny K N , Andrew Gabbasov Subject: Re: [PATCH] mmc: renesas_sdhi_internal_dmac: Add MMC_CAP_ERASE to Gen3 SoCs Message-ID: <20191112204952.GA2976@kunai> References: <20191112134808.23546-1-erosca@de.adit-jv.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: <20191112134808.23546-1-erosca@de.adit-jv.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 12, 2019 at 02:48:08PM +0100, Eugeniu Rosca wrote: > From: Harish Jenny K N >=20 > Enable MMC_CAP_ERASE capability in the driver to allow > erase/discard/trim requests. >=20 > Suggested-by: Andrew Gabbasov > Signed-off-by: Harish Jenny K N > [erosca: Forward-port and test on v5.4-rc7 using H3ULCB-KF: > "blkdiscard /dev/mmcblk0" passes with this patch applied > and complains otherwise: > "BLKDISCARD ioctl failed: Operation not supported"] > Signed-off-by: Eugeniu Rosca Looks good to me. Just a generic question, probably more for Ulf: Why does this CAP_ERASE exist? As I understand, the driver only needs to set the flag and no further handling is required. Why would a driver not set this flag and not support erase/trim commands? Kind regards, Wolfram --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl3LGusACgkQFA3kzBSg KbYKkw//VxC8isy0WeY7yOM8Eu1mt8LljuDDozsi46StVWx608b6GQAsLW34WLCs sFTSRhYuQkld3iiYD+mFiQ/4X/W6Wj7c45SaIQ9doP+2EjT592pUMaSNhMTrPt84 XP48vZKZa4SOyEkP/TUSkAXqgFZsqO3Kos/qceqJb02il5N+biuEmFQM6rwj71sx P71aDgWiq1eKVej8WEHn4t/A+UNsUbQpVmqvyyUXYm7KVgM5PZjogQBzc6Y8p+12 gI6AlUm0h5Nl8o7NDM6jy1VgP+UgZ8qjTTylFcYr6wSKKiUvJNb+U0Imd+txY8DZ gtoWBuMDPQEAdngoX9jbw6Q9zFI41eJ6fM1LX5UnVO5VxopY+WRqiLfmp4u356tT T2e/VNX9ZnGTrYWazo3jmpDpL0DoAPhbfgRkrpAG98vtNujOb3xtejglxbPfUYx+ 8aXP3a0htCkgsaap34hHeAu4UiOyuZsh6Ie4iHukMP+S3m+5+vX9uXEi7ZQHgiLC t9ANcKGUki2syaauaCZSSon0E0offhnuNqb6SRHla3rKAptSKNwoqlnDz2LoIUIV Z+I/YUl2PNcHAJk1IkqIJwnBeMZKVUlMPdi38VlDdFQG0kXdCb6dABe7Km4kOr/e AgdIusuIpZxP90NAGtgBm3JPiDEzEHxOEVobI7kJNKMCISgWYto= =vVLb -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--