|
@@ -369,10 +369,17 @@ int mmc_add_card(struct mmc_card *card)
|
|
|
*/
|
|
*/
|
|
|
void mmc_remove_card(struct mmc_card *card)
|
|
void mmc_remove_card(struct mmc_card *card)
|
|
|
{
|
|
{
|
|
|
|
|
+ struct mmc_host *host = card->host;
|
|
|
|
|
+
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
#ifdef CONFIG_DEBUG_FS
|
|
|
mmc_remove_card_debugfs(card);
|
|
mmc_remove_card_debugfs(card);
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
|
|
+ if (host->cqe_enabled) {
|
|
|
|
|
+ host->cqe_ops->cqe_disable(host);
|
|
|
|
|
+ host->cqe_enabled = false;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (mmc_card_present(card)) {
|
|
if (mmc_card_present(card)) {
|
|
|
if (mmc_host_is_spi(card->host)) {
|
|
if (mmc_host_is_spi(card->host)) {
|
|
|
pr_info("%s: SPI card removed\n",
|
|
pr_info("%s: SPI card removed\n",
|