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=1796385297; b=YCI0kNo1Y+9z8L519i8OqlcHpE4kq6cQNPKkkGmHgu4WUBte+z95y1OSO6y+FteLc861 FqPR9aWl/08fRW/MYGKTEUV2evI8cRYQzUeuEgQU56iBETBsjgclPE2xVhV5YDXxkPnxN xtdVFHrVWiajYkO6QJWkNvJhZUqtGyOhyfh32TrlKe8f6wd+82wTD0Cz0F2O+BAxZnX/G 34T95wCMK68yu3JegmF20FlOgHkL2u60kLQTZCsiJsg438rYuMIeolcpz7/pM/gKKvCl5 nK/NfdjU1ozzHO2BOLWjCAHfkwFOffBqBZ3LMRp7OuiYxgPCgWcCeBKoW8qfJJD0u0g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796385297; 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=v4uodufec8UiZYuD/EHOq/cxiJ4D2jvMGFBEgVaCgMc=; b=YmiciVb50tcT5Nw6etsbn6i3GZwIa6D8wAR2HDXLxoLEbder/pspFF00CDxk8gYRv8dR Qk/uirQrr2FyQb64ltXWu2TAr1OosUqcCyeaBLbCseqrFKS6R7Gg/Er/iDhBRXQggFxml CpPvsDzHSTJrpT+5MRt/f1Pyf/dwlCMvPJAEdfvHaqjURyEQbyI5XbWJE6pXIfrhZXew2 2NkaFpXed2eG8ZqBP+F5Xk2F6bmUQnuJ0fy4G9wHGlmTWQD9tMkIyyXv1fVhJIeEyKCDo lA/HG3bgnhILDjTz4WVfm19ZTLGwF1lXs2iEs4ksczNkIi/pV7sU/YkFWBnbpuwymNA== 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=RtrFQBEH; 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 3BC73606A337; Fri, 4 Dec 2026 11:54:57 +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=RtrFQBEH Received: by smtp.kernel.org (Postfix) with ESMTPSA id A57821F000C2; Fri, 4 Dec 2026 11:54:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796385297; bh=v4uodufec8UiZYuD/EHOq/cxiJ4D2jvMGFBEgVaCgMc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=RtrFQBEHRVbVplxbPu0+T8kEi2VELDmnzf7umkioVEaFtPMs03O6pWQ8cnQNMKuWi GRq8M1JHc0p7WxotSL9RhTytdRrU/dh+LXs91yxtupz/6OOToDJdeVvIa8mxpfsIRr jk62+3R+PMfuXrsrWd0sizP/tHJadS+QCSnQIAgY= 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.6 0495/1167] mmc: meson-gx: report the longest busy wait the controller can do Date: Fri, 4 Dec 2026 18:58:42 +0900 Message-ID: <20261204100714.957484455@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@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.6-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 @@ -1180,6 +1180,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;