diff options
author | Avri Altman <avri.altman@wdc.com> | 2019-02-06 06:28:05 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2019-02-25 02:40:58 -0500 |
commit | 01904ff77676ca6c88e972906ed204a2dfbabab6 (patch) | |
tree | 713125d74fbb619d07ef3271a24a22688cbf80d6 /drivers/mmc/core/sd.c | |
parent | a2b760a60194aaa754dc78dd037d81ee6c3508a1 (diff) |
mmc: core: Calculate the discard arg only once
In MMC, the discard arg is a read-only ext_csd parameter - set it once
on card init. To be consistent, do that for SD as well even though its
discard arg is always 0x0.
Signed-off-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/sd.c')
-rw-r--r-- | drivers/mmc/core/sd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index d0d9f90e7cdf..bd48b28d641b 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c | |||
@@ -271,6 +271,8 @@ static int mmc_read_ssr(struct mmc_card *card) | |||
271 | } | 271 | } |
272 | } | 272 | } |
273 | 273 | ||
274 | card->erase_arg = SD_ERASE_ARG; | ||
275 | |||
274 | return 0; | 276 | return 0; |
275 | } | 277 | } |
276 | 278 | ||