[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191112204952.GA2976@kunai>
Date: Tue, 12 Nov 2019 21:49:52 +0100
From: Wolfram Sang <wsa@...-dreams.de>
To: Eugeniu Rosca <erosca@...adit-jv.com>
Cc: Wolfram Sang <wsa+renesas@...g-engineering.com>,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>,
Niklas Söderlund <niklas.soderlund@...natech.se>,
Ulf Hansson <ulf.hansson@...aro.org>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Simon Horman <horms+renesas@...ge.net.au>,
linux-mmc@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-renesas-soc@...r.kernel.org,
Eugeniu Rosca <roscaeugeniu@...il.com>,
Harish Jenny K N <harish_kandiga@...tor.com>,
Andrew Gabbasov <andrew_gabbasov@...tor.com>
Subject: Re: [PATCH] mmc: renesas_sdhi_internal_dmac: Add MMC_CAP_ERASE to
Gen3 SoCs
On Tue, Nov 12, 2019 at 02:48:08PM +0100, Eugeniu Rosca wrote:
> From: Harish Jenny K N <harish_kandiga@...tor.com>
>
> Enable MMC_CAP_ERASE capability in the driver to allow
> erase/discard/trim requests.
>
> Suggested-by: Andrew Gabbasov <andrew_gabbasov@...tor.com>
> Signed-off-by: Harish Jenny K N <harish_kandiga@...tor.com>
> [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 <erosca@...adit-jv.com>
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
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists