incubator-nuttx/drivers/mmcsd
Eero Nurkkala db13d5e24c drivers/mmcsd: fix regression causing emmcsd not working
Commit 50a8ec6 broke many mmc devices.  Only if the flag
priv->caps & SDIO_CAPS_4BIT_ONLY was set, it migth work.
Without the flag, the mmc clock is never set (mmcsd_widebus()
call is terminated early stopping the clock).  This flag
is probably not very generic because most mmc hw support
1, 4 and 8 bit modes.

JEDEC specifies a bus width selection procedure, but it's
not implemented in this mmcsd_sdio.c driver.  Thus, it's
not known whether the hw supports 1, 4 anf 8 bit modes or
a combination of them.

However, with priv->caps & SDIO_CAPS_4BIT_ONLY the driver
suddenly assigns priv->buswidth = MMCSD_SCR_BUSWIDTH_4BIT
making it the only way to have the driver working.

Fix this by relaxing the above mentioned restrictions.

Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
2023-08-30 14:33:32 +08:00
..
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
Kconfig drivers/mmcsd_sdio: config timout to write one data block 2023-07-28 05:01:36 -07:00
Make.defs tools: replace INCDIR to Makefile variable 2022-11-03 19:59:55 +08:00
mmcsd.h
mmcsd_csd.h
mmcsd_debug.c
mmcsd_sdio.c drivers/mmcsd: fix regression causing emmcsd not working 2023-08-30 14:33:32 +08:00
mmcsd_sdio.h Add eMMC driver support 2023-04-26 00:34:36 -04:00
mmcsd_spi.c inode/i_private: remove all unnecessary cast for i_private 2023-08-29 08:58:07 +02:00
mmcsd_spi.h
sdio.c fix byte_block_count error in byte mode 2023-08-11 13:15:57 +08:00