From 2620a39339413822162939239b4ca3577265bd8a Mon Sep 17 00:00:00 2001 From: Daniel DeGrasse Date: Tue, 28 May 2024 16:29:42 +0000 Subject: [PATCH] sd: sd_ops: fix DISK_IOCTL_CTRL_SYNC return code SD IOCTL handling for DISK_IOCTL_CTRL_SYNC was falling through to the default return statement, and returning an error when disk sync succeeded. Fix this issue by properly breaking in IOCTL handler. Signed-off-by: Daniel DeGrasse --- subsys/sd/sd_ops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subsys/sd/sd_ops.c b/subsys/sd/sd_ops.c index 54f5b1a360f14..9daa1f1f0c21f 100644 --- a/subsys/sd/sd_ops.c +++ b/subsys/sd/sd_ops.c @@ -794,6 +794,7 @@ int card_ioctl(struct sd_card *card, uint8_t cmd, void *buf) * cache flush is not required here */ ret = sdmmc_wait_ready(card); + break; default: ret = -ENOTSUP; }