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 <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2024-05-28 16:29:42 +00:00 committed by Henrik Brix Andersen
parent e31d66a183
commit 0767fd97f8

View file

@ -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;
}