diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-09-30 17:33:15 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-10-04 10:53:26 +0200 |
commit | 2d0d7d4f26f825bbf372ddbfc4057f3edf6f9edd (patch) | |
tree | 63f2ef323602fa2ef5e4884cb8aba26bc9bb0195 /include | |
parent | faf7d69168838c0965f9a39ed0e5df447bf429f4 (diff) | |
download | barebox-2d0d7d4f26f825bbf372ddbfc4057f3edf6f9edd.tar.gz barebox-2d0d7d4f26f825bbf372ddbfc4057f3edf6f9edd.tar.xz |
mci: core: act upon broken-cd device tree property
We didn't care much for broken-cd so far, still we have some drivers
implementing the card_present callback, which we should ignore when
card-detect is marked broken.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220930153317.731088-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/mci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mci.h b/include/mci.h index 2098b4fbf0..d949310fac 100644 --- a/include/mci.h +++ b/include/mci.h @@ -404,6 +404,7 @@ struct mci_host { unsigned max_req_size; unsigned dsr_val; /**< optional dsr value */ int use_dsr; /**< optional dsr usage flag */ + int broken_cd; /**< card detect is broken */ bool non_removable; /**< device is non removable */ bool no_sd; /**< do not send SD commands during initialization */ bool disable_wp; /**< ignore write-protect detection logic */ |