File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 201
201
/* ERR004536 is not applicable for the IP */
202
202
#define ESDHC_FLAG_SKIP_ERR004536 BIT(17)
203
203
204
+ /* The IP does not have GPIO CD wake capabilities */
205
+ #define ESDHC_FLAG_SKIP_CD_WAKE BIT(18)
206
+
204
207
enum wp_types {
205
208
ESDHC_WP_NONE , /* no WP, neither controller nor gpio */
206
209
ESDHC_WP_CONTROLLER , /* mmc controller internal WP */
@@ -298,7 +301,7 @@ static struct esdhc_soc_data usdhc_s32g2_data = {
298
301
.flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_MAN_TUNING
299
302
| ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200
300
303
| ESDHC_FLAG_HS400 | ESDHC_FLAG_HS400_ES
301
- | ESDHC_FLAG_SKIP_ERR004536 ,
304
+ | ESDHC_FLAG_SKIP_ERR004536 | ESDHC_FLAG_SKIP_CD_WAKE ,
302
305
};
303
306
304
307
static struct esdhc_soc_data usdhc_imx7ulp_data = {
@@ -1726,7 +1729,8 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev)
1726
1729
host -> mmc -> caps |= MMC_CAP_1_8V_DDR | MMC_CAP_3_3V_DDR ;
1727
1730
1728
1731
/* GPIO CD can be set as a wakeup source */
1729
- host -> mmc -> caps |= MMC_CAP_CD_WAKE ;
1732
+ if (!(imx_data -> socdata -> flags & ESDHC_FLAG_SKIP_CD_WAKE ))
1733
+ host -> mmc -> caps |= MMC_CAP_CD_WAKE ;
1730
1734
1731
1735
if (!(imx_data -> socdata -> flags & ESDHC_FLAG_HS200 ))
1732
1736
host -> quirks2 |= SDHCI_QUIRK2_BROKEN_HS200 ;
You can’t perform that action at this time.
0 commit comments