From: Greg KH <gregkh@linuxfoundation.org>
To: "Lin Gui (桂林)" <Lin.Gui@mediatek.com>
Cc: "stable@vger.kernel.org" <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>
Subject: Re: 回复: 回复: 回复: 回复: 回复: backport a patch for Linux kernel-5.15 kernel-6.1 kenrel-6.6 stable tree
Date: Wed, 12 Jun 2024 14:20:49 +0200 [thread overview]
Message-ID: <2024061258-delegate-drum-1271@gregkh> (raw)
In-Reply-To: <2024061246-enlighten-timothy-0386@gregkh>
On Wed, Jun 12, 2024 at 02:08:20PM +0200, Greg KH wrote:
> On Sun, May 26, 2024 at 02:51:42AM +0000, Lin Gui (桂林) wrote:
> > Dear gregkh@linuxfoundation.org,
> >
> > I'm very sorry for the trouble, here's the update:
> >
> > From f033ef0bfb29cd413d10aba860ce8d178cc314e2 Mon Sep 17 00:00:00 2001
> > From: Mengqi Zhang <mailto:mengqi.zhang@mediatek.com>
> > Date: Mon, 25 Dec 2023 17:38:40 +0800
> > Subject: [PATCH] mmc: core: Add HS400 tuning in HS400es initialization
> >
> > commit 77e01b49e35f24ebd1659096d5fc5c3b75975545 upstream
> >
> > During the initialization to HS400es stage, add a HS400 tuning flow as an optional process. For Mediatek IP, the HS400es mode requires a specific tuning to ensure the correct HS400 timing setting.
> >
> > Signed-off-by: Mengqi Zhang <mailto:mengqi.zhang@mediatek.com>
> > Link: https://lore.kernel.org/r/20231225093839.22931-2-mengqi.zhang@mediatek.com
> > Signed-off-by: Ulf Hansson <mailto:ulf.hansson@linaro.org>
> > ---
> > drivers/mmc/core/mmc.c | 9 +++++++--
> > 1 file changed, 7 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index a56906633ddf..c1eb22fd033b 100644
> > --- a/drivers/mmc/core/mmc.c
> > +++ b/drivers/mmc/core/mmc.c
> > @@ -1799,8 +1799,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)) {
> > --
>
> Better, thanks, but your email client still did odd things to the email
> addresses.
>
> I've fixed this up by hand, but please, be more careful next time...
Wait, again, NO! This patch does NOT even build at all!
How was this tested?
Here's a hint, this is the build error I get when applying it to the
5.15.y tree. I tried to say this in a nice way before, but now I will
be specific:
CC [M] drivers/mmc/core/mmc.o
drivers/mmc/core/mmc.c: In function ‘mmc_init_card’:
drivers/mmc/core/mmc.c:1803:32: error: ‘const struct mmc_host_ops’ has no member named ‘execute_hs400_tuning’; did you mean ‘prepare_hs400_tuning’?
1803 | if (host->ops->execute_hs400_tuning) {
| ^~~~~~~~~~~~~~~~~~~~
| prepare_hs400_tuning
drivers/mmc/core/mmc.c:1804:42: error: ‘const struct mmc_host_ops’ has no member named ‘execute_hs400_tuning’; did you mean ‘prepare_hs400_tuning’?
1804 | err = host->ops->execute_hs400_tuning(host, card);
| ^~~~~~~~~~~~~~~~~~~~
| prepare_hs400_tuning
Please properly test your submissions before sending them and asking
someone else to apply them, otherwise it just wastes our time and we get
very grumpy, as would you.
greg k-h
prev parent reply other threads:[~2024-06-12 12:20 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <PSAPR03MB5653FFA63E972A80A6A2F4AF952F2@PSAPR03MB5653.apcprd03.prod.outlook.com>
2024-03-16 8:16 ` backport a patch for Linux kernel-5.10 and 6.6 stable tree Lin Gui (桂林)
2024-03-16 9:21 ` Sasha Levin
2024-03-18 7:46 ` 回复: " Lin Gui (桂林)
2024-03-18 18:59 ` Greg KH
2024-05-23 2:39 ` backport a patch for Linux kernel-5.15 kernel-6.1 kenrel-6.6 " Lin Gui (桂林)
2024-05-23 6:32 ` Greg KH
[not found] ` <PSAPR03MB565389D72939161224B110CE95F42@PSAPR03MB5653.apcprd03.prod.outlook.com>
2024-05-23 6:49 ` 回复: " Greg KH
[not found] ` <PSAPR03MB5653135ABCAF08A979BCCE0295F42@PSAPR03MB5653.apcprd03.prod.outlook.com>
2024-05-23 11:01 ` 回复: " Greg KH
[not found] ` <PSAPR03MB5653638EEC15BE49B2E03E9495F52@PSAPR03MB5653.apcprd03.prod.outlook.com>
2024-05-24 4:08 ` 回复: " Greg KH
2024-05-24 4:08 ` Greg KH
2024-05-24 5:58 ` 回复: " Lin Gui (桂林)
2024-05-24 6:55 ` Greg KH
2024-05-26 2:51 ` 回复: " Lin Gui (桂林)
2024-06-12 12:08 ` Greg KH
2024-06-12 12:20 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2024061258-delegate-drum-1271@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=Bo.Ye@mediatek.com \
--cc=Lin.Gui@mediatek.com \
--cc=Mengqi.Zhang@mediatek.com \
--cc=Qilin.Tan@mediatek.com \
--cc=Wenbin.Mei@mediatek.com \
--cc=Yongdong.Zhang@mediatek.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox