why wifi driver hard code set MMC_CAP_NONREMOVABLE to mmc_host->caps ?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
mgkiller
Level 3
Level 3
10 replies posted 10 questions asked 10 sign-ins

within wifi driver v5.4.18-backports/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c L898:

static void brcmf_sdiod_host_fixup(struct mmc_host *host)
{
/* runtime-pm powers off the device */
pm_runtime_forbid(host->parent);
/* avoid removal detection upon resume */
host->caps |= MMC_CAP_NONREMOVABLE;
}

Will it cause serious problems if I comment out this line of code? 

In my suituation, there is a hotplug sdio wifi card insert to a SD Slot with card detect function.

 

0 Likes
1 Solution
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

Hello:

    The driver is designed for embedded devices and is non-removable.  So if you want a hot-plug function, I think we need a fine-tune for the function. 

View solution in original post

0 Likes
1 Reply
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

Hello:

    The driver is designed for embedded devices and is non-removable.  So if you want a hot-plug function, I think we need a fine-tune for the function. 

0 Likes