From 9b094e8f0d82ac146954b02a8c7481a766fedb70 Mon Sep 17 00:00:00 2001 From: wanggang26 Date: Thu, 2 Nov 2023 20:57:39 +0800 Subject: [PATCH] mmcsd:add postsleep fields for mmc_ioc_cmd Signed-off-by: wanggang26 --- include/nuttx/mmcsd.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/nuttx/mmcsd.h b/include/nuttx/mmcsd.h index af963e4779..cfe0b2b513 100644 --- a/include/nuttx/mmcsd.h +++ b/include/nuttx/mmcsd.h @@ -95,6 +95,16 @@ struct mmc_ioc_cmd unsigned int blksz; unsigned int blocks; + /* Sleep at least postsleep_min_us useconds, and at most + * postsleep_max_us useconds *after* issuing command. Needed for + * some read commands for which cards have no other way of indicating + * they're ready for the next command (i.e. there is no equivalent of + * a "busy" indicator for read operations). + */ + + unsigned int postsleep_min_us; + unsigned int postsleep_max_us; + /* Override driver-computed timeouts. Note the difference in units! */ unsigned int data_timeout_ns;