lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a0343926-1495-4766-a7d2-108d40fe9ea1@intel.com>
Date: Tue, 24 Jun 2025 14:29:48 +0300
From: Adrian Hunter <adrian.hunter@...el.com>
To: Ulf Hansson <ulf.hansson@...aro.org>, <linux-mmc@...r.kernel.org>
CC: <linux-kernel@...r.kernel.org>, Erick Shepherd <erick.shepherd@...com>,
	<stable@...r.kernel.org>, Jonathan Liu <net147@...il.com>, "Salvatore
 Bonaccorso" <carnil@...ian.org>
Subject: Re: [PATCH] Revert "mmc: sdhci: Disable SD card clock before changing
 parameters"

On 24/06/2025 14:09, Ulf Hansson wrote:
> It has turned out the trying to strictly conform to the SDHCI specification
> is causing problems. Let's revert and start over.
> 
> This reverts commit fb3bbc46c94f261b6156ee863c1b06c84cf157dc.
> 
> Cc: Erick Shepherd <erick.shepherd@...com>
> Cc: stable@...r.kernel.org
> Fixes: fb3bbc46c94f ("mmc: sdhci: Disable SD card clock before changing parameters")
> Suggested-by: Adrian Hunter <adrian.hunter@...el.com>
> Reported-by: Jonathan Liu <net147@...il.com>
> Reported-by: Salvatore Bonaccorso <carnil@...ian.org>
> Closes: https://bugs.debian.org/1108065
> Signed-off-by: Ulf Hansson <ulf.hansson@...aro.org>

Acked-by: Adrian Hunter <adrian.hunter@...el.com>

> ---
>  drivers/mmc/host/sdhci.c | 9 ++-------
>  1 file changed, 2 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
> index 4c6c2cc93c41..3a17821efa5c 100644
> --- a/drivers/mmc/host/sdhci.c
> +++ b/drivers/mmc/host/sdhci.c
> @@ -2065,15 +2065,10 @@ void sdhci_set_clock(struct sdhci_host *host, unsigned int clock)
>  
>  	host->mmc->actual_clock = 0;
>  
> -	clk = sdhci_readw(host, SDHCI_CLOCK_CONTROL);
> -	if (clk & SDHCI_CLOCK_CARD_EN)
> -		sdhci_writew(host, clk & ~SDHCI_CLOCK_CARD_EN,
> -			SDHCI_CLOCK_CONTROL);
> +	sdhci_writew(host, 0, SDHCI_CLOCK_CONTROL);
>  
> -	if (clock == 0) {
> -		sdhci_writew(host, 0, SDHCI_CLOCK_CONTROL);
> +	if (clock == 0)
>  		return;
> -	}
>  
>  	clk = sdhci_calc_clk(host, clock, &host->mmc->actual_clock);
>  	sdhci_enable_clk(host, clk);


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ