RE: [PATCH 1/3] mmc: core: Calculate the discard arg only once

2019-02-05 Thread Avri Altman
> On Sun, 3 Feb 2019 at 09:51, Avri Altman wrote: > > > > The discard arg is a read-only ext_csd parameter - > > set it once on card init. > > I like the idea here. There is really no point checking this for every > corresponding request, nice! > > However, the "discard arg" isn't specific to eM

Re: [PATCH 1/3] mmc: core: Calculate the discard arg only once

2019-02-05 Thread Ulf Hansson
On Sun, 3 Feb 2019 at 09:51, Avri Altman wrote: > > The discard arg is a read-only ext_csd parameter - > set it once on card init. I like the idea here. There is really no point checking this for every corresponding request, nice! However, the "discard arg" isn't specific to eMMC, as it's also u

[PATCH 1/3] mmc: core: Calculate the discard arg only once

2019-02-03 Thread Avri Altman
The discard arg is a read-only ext_csd parameter - set it once on card init. Signed-off-by: Avri Altman --- drivers/mmc/core/block.c | 12 +++- drivers/mmc/core/mmc.c | 8 include/linux/mmc/card.h | 2 ++ 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/driver