From 5be2c5d91c3d6c4151a5d061c4b31aa3ee21953b Mon Sep 17 00:00:00 2001 From: wanggang26 Date: Mon, 21 Aug 2023 09:50:40 +0800 Subject: [PATCH] mmc: add timeout fields for mmc_ioc_cmd Signed-off-by: wanggang26 --- include/nuttx/mmcsd.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/nuttx/mmcsd.h b/include/nuttx/mmcsd.h index 9669f3d95d8..04aedeab3ac 100644 --- a/include/nuttx/mmcsd.h +++ b/include/nuttx/mmcsd.h @@ -73,6 +73,11 @@ struct mmc_ioc_cmd unsigned int blksz; unsigned int blocks; + /* Override driver-computed timeouts. Note the difference in units! */ + + unsigned int data_timeout_ns; + unsigned int cmd_timeout_ms; + /* For 64-bit machines, the next member, ``uint64_t data_ptr``, wants to * be 8-byte aligned. Make sure this struct is the same size when * built for 32-bit.