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 6C42F1875 for ; Wed, 28 Dec 2022 15:57:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5534C433D2; Wed, 28 Dec 2022 15:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1672243075; bh=jA5Lh04MvNxyrxnmTEl1cwIoiZqzyvMPI9M/23RBUKo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r0E0WpKyRr4zYMqKmN3wVs+6XYGdgqY+2K3RFUdnCkh5BJ2/EJWcpXTWRt0/i9Fh9 BCNBbnyJgYoT982Jg2Ixk7l1nTvCcJ6JONAwmTVi8f/d6kSoYrIVKw1jFQjuaY9GTC TLmb47gJghs3kQRsN9Vt2a3jHyVoQc5ggW4DgIAA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Gabriel Somlo , Ulf Hansson , Sasha Levin Subject: [PATCH 6.0 0487/1073] mmc: litex_mmc: ensure `host->irq == 0` if polling Date: Wed, 28 Dec 2022 15:34:35 +0100 Message-Id: <20221228144341.264206021@linuxfoundation.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221228144328.162723588@linuxfoundation.org> References: <20221228144328.162723588@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Gabriel Somlo [ Upstream commit 5c1a2b77cd1b59112cf22b3e338f7e416797ad32 ] Ensure the flag is explicitly set to 0 if we determine that polling is needed during driver probe, to cover all possible cases. Fixes: 92e099104729 ("mmc: Add driver for LiteX's LiteSDCard interface") Signed-off-by: Gabriel Somlo Link: https://lore.kernel.org/r/20221107155516.2535912-1-gsomlo@gmail.com Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/mmc/host/litex_mmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/litex_mmc.c b/drivers/mmc/host/litex_mmc.c index 6ba0d63b8c07..39c6707fdfdb 100644 --- a/drivers/mmc/host/litex_mmc.c +++ b/drivers/mmc/host/litex_mmc.c @@ -502,6 +502,7 @@ static int litex_mmc_irq_init(struct platform_device *pdev, use_polling: host->mmc->caps |= MMC_CAP_NEEDS_POLL; + host->irq = 0; return 0; } -- 2.35.1