Skip to content

Commit 9f1fb60

Browse files
lyakhcjb
authored andcommitted
mmc: add a card-event host operation
Some hosts need to perform additional actions upon card insertion or ejection. Add a host operation to be called from card detection handlers. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Reviewed-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Chris Ball <cjb@laptop.org>
1 parent 4577f77 commit 9f1fb60

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎include/linux/mmc/host.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ struct mmc_host_ops {
136136
void (*enable_preset_value)(struct mmc_host *host, bool enable);
137137
int (*select_drive_strength)(unsigned int max_dtr, int host_drv, int card_drv);
138138
void (*hw_reset)(struct mmc_host *host);
139+
void (*card_event)(struct mmc_host *host);
139140
};
140141

141142
struct mmc_card;

0 commit comments

Comments
 (0)