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>
This commit is contained in:
@@ -91,4 +91,9 @@
|
||||
#define SD_SWITCH_ACCESS_DEF 0
|
||||
#define SD_SWITCH_ACCESS_HS 1
|
||||
|
||||
/*
|
||||
* Erase/discard
|
||||
*/
|
||||
#define SD_ERASE_ARG 0x00000000
|
||||
|
||||
#endif /* LINUX_MMC_SD_H */
|
||||
|
Reference in New Issue
Block a user