Skip to content

Commit 6932794

Browse files
Wolfram SangUlf Hansson
authored andcommitted
mmc: core: Improve documentation of MMC_CAP_HW_RESET
MMC_CAP_HW_RESET means that the controller is capable of resetting the eMMC device via RST_n signal, not a reset of the controller. Two drivers got this wrong, so let's make it more clear. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://lore.kernel.org/r/20200821063533.3771-1-wsa+renesas@sang-engineering.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 46f4a69 commit 6932794

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎include/linux/mmc/host.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ struct mmc_host_ops {
163163
int (*select_drive_strength)(struct mmc_card *card,
164164
unsigned int max_dtr, int host_drv,
165165
int card_drv, int *drv_type);
166+
/* Reset the eMMC card via RST_n */
166167
void (*hw_reset)(struct mmc_host *host);
167168
void (*card_event)(struct mmc_host *host);
168169

@@ -346,7 +347,7 @@ struct mmc_host {
346347
#define MMC_CAP_CD_WAKE (1 << 28) /* Enable card detect wake */
347348
#define MMC_CAP_CMD_DURING_TFR (1 << 29) /* Commands during data transfer */
348349
#define MMC_CAP_CMD23 (1 << 30) /* CMD23 supported. */
349-
#define MMC_CAP_HW_RESET (1 << 31) /* Hardware reset */
350+
#define MMC_CAP_HW_RESET (1 << 31) /* Reset the eMMC card via RST_n */
350351

351352
u32 caps2; /* More host capabilities */
352353

0 commit comments

Comments
 (0)