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 509F220330; Tue, 8 Apr 2025 12:40:13 +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=1744116013; cv=none; b=H03Ypd+Uc6X8vuJJT7m1cSomXs+5oDxc3vMU5dtgOTW73+YYfDGEEeoM9jgptI2SaUf6CMhxItp5XOqOJdITiCZJHyyvMLeE1IFHxmXEcsTylf1pX3rt75R9i1zVcajWIjMvCeGyxsrFuq1XDbBxum/EYdzFPeMDXjYgzFHkeSM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744116013; c=relaxed/simple; bh=0/HBrhZwLftGTcWtgUdoO3YC/hGVGz5KNwwnFdNRDQI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=O78dxSfU2hcK7ABMnJnJjdywc6pxNblZkfx4OJUrTrGrzlk7w+oa2UaA4juD9wVcNSiCvmBuIHMcGAd4axPVsZX6y8BntJMZ3CCPj6m+JDzkJLMZ+O5vQ0T79mTLvf6zptGRYfxutycj3wRx1EwQnSoY0RkqBnh81pzNALsLOSs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wT3TJDXw; 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="wT3TJDXw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA2AFC4CEE5; Tue, 8 Apr 2025 12:40:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744116013; bh=0/HBrhZwLftGTcWtgUdoO3YC/hGVGz5KNwwnFdNRDQI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wT3TJDXwbimBSb0Wkan/8QXz84qJcDPyj3O4DHP7I/rXcWvHTItTlOhRvsaR2JY/j S359GFz7HNA6fzbqkgJ4uSyy4Y6g1jCDh28/sDKi4kiUnMHXJov7WKGPXrXzqLAYFH F9AuPsVpdiwZRGNRo2AhrBXhinVzzcoBkfazMViM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Karel Balej , Adrian Hunter , =?UTF-8?q?Duje=20Mihanovi=C4=87?= , Ulf Hansson Subject: [PATCH 6.1 187/204] mmc: sdhci-pxav3: set NEED_RSP_BUSY capability Date: Tue, 8 Apr 2025 12:51:57 +0200 Message-ID: <20250408104825.802024615@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408104820.266892317@linuxfoundation.org> References: <20250408104820.266892317@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore 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-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Karel Balej commit a41fcca4b342811b473bbaa4b44f1d34d87fcce6 upstream. Set the MMC_CAP_NEED_RSP_BUSY capability for the sdhci-pxav3 host to prevent conversion of R1B responses to R1. Without this, the eMMC card in the samsung,coreprimevelte smartphone using the Marvell PXA1908 SoC with this mmc host doesn't probe with the ETIMEDOUT error originating in __mmc_poll_for_busy. Note that the other issues reported for this phone and host, namely floods of "Tuning failed, falling back to fixed sampling clock" dmesg messages for the eMMC and unstable SDIO are not mitigated by this change. Link: https://lore.kernel.org/r/20200310153340.5593-1-ulf.hansson@linaro.org/ Link: https://lore.kernel.org/r/D7204PWIGQGI.1FRFQPPIEE2P9@matfyz.cz/ Link: https://lore.kernel.org/r/20250115-pxa1908-lkml-v14-0-847d24f3665a@skole.hr/ Cc: stable@vger.kernel.org Signed-off-by: Karel Balej Acked-by: Adrian Hunter Tested-by: Duje Mihanović Link: https://lore.kernel.org/r/20250310140707.23459-1-balejk@matfyz.cz Signed-off-by: Ulf Hansson Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/host/sdhci-pxav3.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/mmc/host/sdhci-pxav3.c +++ b/drivers/mmc/host/sdhci-pxav3.c @@ -401,6 +401,7 @@ static int sdhci_pxav3_probe(struct plat if (!IS_ERR(pxa->clk_core)) clk_prepare_enable(pxa->clk_core); + host->mmc->caps |= MMC_CAP_NEED_RSP_BUSY; /* enable 1/8V DDR capable */ host->mmc->caps |= MMC_CAP_1_8V_DDR;