Dear gregkh@linuxfoundation.org,
Sorry, update the format: This patch has been tested on Mediatek Phone, the test passed, Thank you
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index a569066..d656964 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -1800,7 +1800,13 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, if (err) goto free_card;
- } else if (!mmc_card_hs400es(card)) { + } else if (mmc_card_hs400es(card)){ + if (host->ops->execute_hs400_tuning) { + err = host->ops->execute_hs400_tuning(host, card); + if (err) + goto free_card; + } + } else { /* Select the desired bus width optionally */ err = mmc_select_bus_width(card); if (err > 0 && mmc_card_hs(card)) {
------------------------------------ Best Regards ! Guilin 桂林
发件人: Greg KH gregkh@linuxfoundation.org 发送时间: 2024年5月24日 12:09 收件人: Lin Gui (桂林) Lin.Gui@mediatek.com 抄送: stable@vger.kernel.org; Yongdong Zhang (张永东) Yongdong.Zhang@mediatek.com; Bo Ye (叶波) Bo.Ye@mediatek.com; Qilin Tan (谭麒麟) Qilin.Tan@mediatek.com; Wenbin Mei (梅文彬) Wenbin.Mei@mediatek.com; Mengqi Zhang (张梦琦) Mengqi.Zhang@mediatek.com 主题: Re: 回复: 回复: 回复: backport a patch for Linux kernel-5.15 kernel-6.1 kenrel-6.6 stable tree
External email : Please do not click links or open attachments until you have verified the sender or the content.
On Fri, May 24, 2024 at 01:07:18AM +0000, Lin Gui (桂林) wrote:
Dear @Greg KHmailto:gregkh@linuxfoundation.org,
Base : kernel-5.15.159
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index a569066..d656964 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -1800,7 +1800,13 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, if (err) goto free_card;
} else if (!mmc_card_hs400es(card)) {
} else if (mmc_card_hs400es(card)){
if (host->ops->execute_hs400_tuning) {
err = host->ops->execute_hs400_tuning(host, card);
if (err)
goto free_card;
}
} else { /* Select the desired bus width optionally */ err = mmc_select_bus_width(card); if (err > 0 && mmc_card_hs(card)) {
Also, please read: https://urldefense.com/v3/__https://www.kernel.org/doc/html/latest/process/s... for how to do this properly.