接下来的if (!err && areq) { 才是真正本次的处理如果不是urgent事件的话,start_err = __mmc_start_data_req(host, areq->mrq); 开始。 完成之后对应的做一个mmc_post_req(host, areq->mrq, -EINVAL); 和之前的mmc_pre_req(host, areq->mrq, !host->areq); 对应起来。试想一下,如果想在命令...
structmmc_host_ops{ //pre_req和post_req是为双buffer void(*
mmc_host_ops字段如下 structmmc_host_ops {void(*post_req)(structmmc_host *,structmmc_request *,interr);void(*pre_req)(structmmc_host *,structmmc_request *,boolis_first_req);void(*request)(structmmc_host *host,structmmc_request *req);void(*set_ios)(structmmc_host *,structmmc_ios *)...
1、流程上的差别:(1)会阻塞的处理流程: mmc_wait_for_req ——》__mmc_start_req // 发起请求———》init_completion(&mrq->completion); ———》mrq->done = mmc_wait_done ———》mmc_start_request(host, mrq); // 实际发起请求的操作——》mmc_wait_for_req_done // 阻塞等待请求处理完成...
.post_req = dw_mci_post_req, .set_ios = dw_mci_set_ios, .get_ro = dw_mci_get_ro, .get_cd = dw_mci_get_cd, .hw_reset = dw_mci_hw_reset, .enable_sdio_irq = dw_mci_enable_sdio_irq, .ack_sdio_irq = dw_mci_ack_sdio_irq, ...
*/// post_req和pre_req是为了实现异步请求处理而设置的// 异步请求处理就是指,当另外一个异步请求还没有处理完成的时候,可以先准备另外一个异步请求而不必等待// 具体参考《mmc core主模块》void(*post_req)(struct mmc_host*host,struct mmc_request*req,int err);void(*pre_req)(struct mmc_host*host...
net/mlx5e: TC, Don't offload post action rule if not supported … ccbe330 mhiramat pushed a commit to mhiramat/linux that referenced this issue Dec 30, 2023 ALSA: pcm: fix out-of-bounds in snd_pcm_state_names … 2b3a7a3 mhiramat pushed a commit to mhiramat/linux that referenc...
mmc0 req done -123 is -ENOMEDIUM whereas in the working case, I see req done -110 which is ETIMEDOUT. It works fine in the -110 log. In the board file code, I had done: platform_device_register(&evk_vmmc_reg_devices); #if 0 /* xxxjaya original code */ imx6q_add_sdhci_usdhc...
mmc_wait_for_req mmc_wait_for_cmd mmc_set_data_timeout mmc_align_data_size 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 ...
[ 1220.796970] print_req_error: I/O error, dev mmcblk1, sector 41544440[ 1220.796987] Aborting journal on device mmcblk1p4-8.[ 1220.797033] mmc1: running CQE recovery[ 1220.797152] mmc1: running CQE recovery[ 1220.797269] mmc1: running CQE recovery[ 1220.797339] print_r...