最近在測試 整個 kernel 功能的時候發現 , SD Card 移除的過程中 kernel 會"卡機" 約800mS , 這 800 mS 中 , 連 kernel driver 中的 add_timer() function 都停滯 !! 初步 判別 , 應該卡在 IRQ 中. 尋找了半天 ,發現 , Card remove 過程 , 會呼叫 int _mmc_detect_card_removed(struct mmc_host ...
是的话在host->bus_ops->detect中做相应的处理// 对于mmc type card来说,对应就是mmc_detect,具体参考《card相关模块》host->detect_change =0;/* If the card was removed the bus will be marked
(3) 假如是SD类型,host->bus_ops->detect对应mmc_sd_detect()函数 staticvoidmmc_sd_detect(structmmc_host *host){interr; mmc_get_card(host->card,NULL);//检查卡是否移除err = _mmc_detect_card_removed(host); mmc_put_card(host->card,NULL);//移除后则释放资源if(err) { mmc_sd_remove(host...
void mmc_detect_change(struct mmc_host *host, unsigned long delay) { #ifdef CONFIG_MMC_DEBUG unsigned long flags; spin_lock_irqsave(&host->lock, flags); WARN_ON(host->removed); spin_unlock_irqrestore(&host->lock, flags); #endif host->detect_change = 1; // 检测到card状态发生变化的...
7、card检测相关 mmc_detect_change mmc_rescan mmc_detect_card_removed 8、bkops操作相关 mmc_blk_init_bkops_statistics mmc_start_delayed_bkops mmc_start_bkops & mmc_stop_bkops mmc_start_idle_time_bkops mmc_read_bkops_status 9、regulator操作相关 ...
Linux/AM5728: MMC card detect issue Part Number:AM5728 Other Parts Discussed in Thread:TMDSEVM572X Tool/software:Linux int mmc_of_parse(struct mmc_host *host) { struct device *dev = host->parent; u32 bus_width; int ret; bool cd_cap_invert, cd_gpio_invert = false;...
mmc_ops和mmc_ops_unsafe则表示mmc type card所属的host对于总线的操作集合。 代码语言:javascript 复制 staticconststruct mmc_bus_ops mmc_ops={.awake=mmc_awake,.sleep=mmc_sleep,.remove=mmc_remove,.detect=mmc_detect,.suspend=NULL,.resume=NULL,.power_restore=mmc_power_restore,.alive=mmc_alive,.ch...
int detect_change; /* card detect flag */ // 需要检测卡槽变化的标识 struct mmc_slot slot; // 卡槽的结构体 const struct mmc_bus_ops *bus_ops; /* current bus driver */ // host的mmc总线的操作集,后面说明 unsigned int bus_refs; /* reference counter */ // host的mmc总线的使用计数 ...
The CDPL (Card Detect Pin Level) bit reflects the card detect pin (C15 pin) properly, but the CINS (Card Inserted) bit doesn’t. Question: What should I do to make the CINS bit also reflect the card detect pin? Thank you in advance. ...
After the long run, some customer systems are fail with the following error: mmc2: Card stuck in programming state! mmcblk2 card_busy_detect mmc2: