[PATCH] mci: add missing break

Sascha Hauer
2026-04-15T08:14:27Z

65077d2078 adds a new case to a switch/case which lacks a break, so it
falls through and EXT_CSD_REV = 0 is detected as MMC_VERSION_4_1 instead
of MMC_VERSION_4. Add the missing break.

Fixes: 65077d2078 ("mci: treat unknown MMC version as greater than known versions")
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
drivers/mci/mci-core.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index d3d7bd5e07..babb180ab1 100644
--- a/drivers/mci/mci-core.c
+++ b/drivers/mci/mci-core.c
@@ -1160,6 +1160,7 @@ static void mci_correct_version_from_ext_csd(struct mci *mci)
switch (mci->ext_csd[EXT_CSD_REV]) {
case 0:
mci->version = MMC_VERSION_4;
+ break;
case 1:
mci->version = MMC_VERSION_4_1;
break;
--
2.47.3