File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -225,15 +225,8 @@ static void sdhci_do_reset(struct sdhci_host *host, u8 mask)
225
225
}
226
226
}
227
227
228
- static void sdhci_init (struct sdhci_host * host , int soft )
228
+ static void sdhci_set_default_irqs (struct sdhci_host * host )
229
229
{
230
- struct mmc_host * mmc = host -> mmc ;
231
-
232
- if (soft )
233
- sdhci_do_reset (host , SDHCI_RESET_CMD |SDHCI_RESET_DATA );
234
- else
235
- sdhci_do_reset (host , SDHCI_RESET_ALL );
236
-
237
230
host -> ier = SDHCI_INT_BUS_POWER | SDHCI_INT_DATA_END_BIT |
238
231
SDHCI_INT_DATA_CRC | SDHCI_INT_DATA_TIMEOUT |
239
232
SDHCI_INT_INDEX | SDHCI_INT_END_BIT | SDHCI_INT_CRC |
@@ -246,6 +239,18 @@ static void sdhci_init(struct sdhci_host *host, int soft)
246
239
247
240
sdhci_writel (host , host -> ier , SDHCI_INT_ENABLE );
248
241
sdhci_writel (host , host -> ier , SDHCI_SIGNAL_ENABLE );
242
+ }
243
+
244
+ static void sdhci_init (struct sdhci_host * host , int soft )
245
+ {
246
+ struct mmc_host * mmc = host -> mmc ;
247
+
248
+ if (soft )
249
+ sdhci_do_reset (host , SDHCI_RESET_CMD | SDHCI_RESET_DATA );
250
+ else
251
+ sdhci_do_reset (host , SDHCI_RESET_ALL );
252
+
253
+ sdhci_set_default_irqs (host );
249
254
250
255
if (soft ) {
251
256
/* force clock reconfiguration */
You can’t perform that action at this time.
0 commit comments