From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A9533D575 for ; Fri, 24 May 2024 06:55:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716533722; cv=none; b=uM2DPeHDHIDWljbZrgi+WTKjVCHYEGPdhNR2ygYVfBsIDT5/+qNYBCt9gca7kdlUbp/DfJeEJjxqVRr29F+4how7g3ukgLYw6RrsL28EBZZ8NTQWG30aVWoLsZwPL6B40g42SYFWXatuzkXaOaz1WDu2IrspI91BOGHf0azh9Xw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716533722; c=relaxed/simple; bh=0xZaG+Cu8CdTPrdPG9S8emzjSoBkqO+EwpoFEVSGHXg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VppWnE/Yk0tmzhPikOD4OrSMaVv7vjfL6jPHrgqckhWkcHkpNnVr47PQn1Gq4KxKWjHlrS+Q9tZFtPvO6OpfmZ+1ezpbRrHjRdSm1RJIxjs7/l475Tqubq99yt878ldv5hGFzCq8/oezV/Use76pWTjvDEJIMu/MRkhNvVfFKE8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Kiaxh2qa; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Kiaxh2qa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44C32C2BD11; Fri, 24 May 2024 06:55:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716533721; bh=0xZaG+Cu8CdTPrdPG9S8emzjSoBkqO+EwpoFEVSGHXg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Kiaxh2qa6Yb6Pj9hyp3UCvPwlSnR5UXXVQOkUQ+Yx5FhfUD8rmD8+PEtrcs+Jyjj3 tMUXPwptn5vfaGqTRoRUuyEGjQ2AcPgGfQYEEOzLDCXfuU8hNfCoqJBzaJHQCsTSDB Kb2FIOJHb+b2fmXrZS6KweKOchOQbM9GAU7/nky8= Date: Fri, 24 May 2024 08:55:18 +0200 From: Greg KH To: Lin Gui =?utf-8?B?KOahguaelyk=?= Cc: "stable@vger.kernel.org" , Yongdong Zhang =?utf-8?B?KOW8oOawuOS4nCk=?= , Bo Ye =?utf-8?B?KOWPtuazoik=?= , Qilin Tan =?utf-8?B?KOiwrem6kum6nyk=?= , Wenbin Mei =?utf-8?B?KOaiheaWh+W9rCk=?= , Mengqi Zhang =?utf-8?B?KOW8oOaipueQpik=?= Subject: Re: =?utf-8?B?5Zue5aSNOiDlm57lpI06IOWbng==?= =?utf-8?B?5aSNOiDlm57lpI06IGJhY2twb3J0IA==?= =?utf-8?Q?a?= patch for Linux kernel-5.15 kernel-6.1 kenrel-6.6 stable tree Message-ID: <2024052432-ashamed-carport-c4a0@gregkh> References: <2024052333-parasitic-impure-6d69@gregkh> <2024052329-sadden-disallow-a982@gregkh> <2024052313-taste-diner-2d78@gregkh> <2024052426-recognize-luxurious-bda8@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, May 24, 2024 at 05:58:32AM +0000, Lin Gui (桂林) wrote: > 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)) { > > Again, please apply this to the latest 5.15.y kernel and see what happens. I do not know what kernel you are using, but you know what kernel we are using :) thanks, greg k-h