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: <20210204120547.15381-2-yann.gautier@foss.st.com>
Date:   Thu, 4 Feb 2021 13:05:46 +0100
From:   <yann.gautier@...s.st.com>
To:     <ulf.hansson@...aro.org>
CC:     <linux@...linux.org.uk>, <linus.walleij@...aro.org>,
        <ludovic.barre@...s.st.com>, <per.forlin@...aro.org>,
        <huyue2@...ong.com>, <wsa+renesas@...g-engineering.com>,
        <vbadigan@...eaurora.org>, <adrian.hunter@...el.com>,
        <p.zabel@...gutronix.de>, <marex@...x.de>, <swboyd@...omium.org>,
        <linux-mmc@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
        <yann.gautier@...s.st.com>
Subject: [PATCH 1/2] mmc: mmci: enable MMC_CAP_NEED_RSP_BUSY

From: Yann Gautier <yann.gautier@...s.st.com>

To properly manage commands awaiting R1B responses, the capability
MMC_CAP_NEED_RSP_BUSY is enabled in mmci driver, for variants that
manage busy detection.
This R1B management needs both the flags MMC_CAP_NEED_RSP_BUSY and
MMC_CAP_WAIT_WHILE_BUSY to be enabled together.

Signed-off-by: Yann Gautier <yann.gautier@...s.st.com>
---
 drivers/mmc/host/mmci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c
index 1bc674577ff9..bf6971fdd1a6 100644
--- a/drivers/mmc/host/mmci.c
+++ b/drivers/mmc/host/mmci.c
@@ -2148,7 +2148,7 @@ static int mmci_probe(struct amba_device *dev,
 		if (variant->busy_dpsm_flag)
 			mmci_write_datactrlreg(host,
 					       host->variant->busy_dpsm_flag);
-		mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY;
+		mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY | MMC_CAP_NEED_RSP_BUSY;
 	}
 
 	/* Prepare a CMD12 - needed to clear the DPSM on some variants. */
-- 
2.17.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ