From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796388080; b=GmSZbNnvyQNtai6OcfLLYJrQZ9Cc5qpneJ2Jnn9BZTnhO5S6IeU59xJdrZCZ2jixB7GW mRSFD6kg/9rQdMtEOs5XMS63AXV6r2oMgwFRO78mJwt3GNOYFSuXKkhV4XbNlVZAcOyC6 Gr8DPLCsxyYZP4xHz7M+Uj948D8ze20JWjez/mc5z8VwRtRIzDWtt+Vb0FYG9eMh9JZmA sYWfOAwkbd622mbVGI4JqkmLbPUvgIw8MPgco/8sbJ5EH6vezoKgHDPGLZv/7Y5cPzMSC I6JA9P9JfUxHMnF7tkPSHk2CaxYTW7etOiOD5WUT/hoyDc+O8DwCEQCGFvVV6A0miDw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796388080; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=8G3hQfOFoBOsOkB47RbkenRVYAPWvrLnkOeVXYUAhHg=; b=hHJS8kUwZTbZrWPOtHfpBu4PwfrqEsx/8BQnJY7wOksWTu4BdNPPI7Wy4CcQaVsc8VSS TWctidnwHi8gWPKf11SQO6/jJ4RbwzHdYkM69xlfoem39lLOBc4RFLvY7WVNpKLz7ES4F +AQawzIO2WNOx9hay5CeW52Pl3Kgms4jYYGW0AqseQiCku2H04PEQ2CebZhdxqI5GOAZW 9MF0zQldol/WSZ9J11iLLKnr2+PWNqeAFezW/ntz/WsadgNt9Gp5XNpwNkSKSVTHjgFYF KQga6TFZ72YteeO0V0L3BLvgGwU08GEPazgPW1SyQyaz3Zc88KIsbUkuvBHWxZ9aExg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=yYULtkdD; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B56E3606A322; Fri, 4 Dec 2026 12:41:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=yYULtkdD Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BC761F00931; Fri, 4 Dec 2026 12:41:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796388080; bh=8G3hQfOFoBOsOkB47RbkenRVYAPWvrLnkOeVXYUAhHg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=yYULtkdDVMaBE6JZO6U2RYZYIrVtkSap0oJe+LTGCRnIax/goIPam2VZAb0DPFBcx Xhwat9oeR0MD7GP8gjOs6zNVlctmSc9YUjRfxGgj6gQ6+WHTC0UEQOEvWmLOclyIup nWJudqV+Hk2gToekwLFz711V4t12vlLH6CskeD6Q= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Igor Velkov , Neil Armstrong , Ulf Hansson Subject: [PATCH 6.1 0476/1059] mmc: meson-gx: report the longest busy wait the controller can do Date: Fri, 4 Dec 2026 19:00:07 +0900 Message-ID: <20261204100656.581375623@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Igor Velkov commit 18e9f7fb05ada68d491ff49165b9644f790e0e0c upstream. The driver does not set max_busy_timeout, so the core takes the host for one that can wait for busy indefinitely and sends erase and cache flush as R1b with busy timeouts of up to 60 s and 30 s. The CMD_CFG timeout field holds at most 32768 ms, so the controller times out first. Report 32768 ms as max_busy_timeout. The core then sizes discards to fit and, for a longer wait, sends R1 and polls for busy itself. Fixes: 51c5d8447bd7 ("MMC: meson: initial support for GX platforms") Cc: stable@vger.kernel.org Signed-off-by: Igor Velkov Reviewed-by: Neil Armstrong Signed-off-by: Ulf Hansson Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/host/meson-gx-mmc.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -1216,6 +1216,9 @@ static int meson_mmc_probe(struct platfo mmc->caps |= MMC_CAP_CMD23; + /* The longest busy wait the CMD_CFG timeout field can hold. */ + mmc->max_busy_timeout = SD_EMMC_CMD_TIMEOUT_MAX; + if (mmc->caps & MMC_CAP_SDIO_IRQ) mmc->caps2 |= MMC_CAP2_SDIO_IRQ_NOTHREAD;