mirror of
https://github.com/apache/nuttx.git
synced 2026-10-17 02:59:45 +00:00
drivers/mmcsd/mmcsd_sdio.c: Fix SD card 4-bit support
Fix a bug which causes that 1-bit mode is always selected. This happens even if the driver sets SDIO_CAPS_4BIT capability in case of the card and the host support 1- and 4-bit wide bus. Signed-off-by: Jani Paalijarvi <jani.paalijarvi@unikie.com>
This commit is contained in:
parent
1890b58e67
commit
975d99c3f6
1 changed files with 1 additions and 1 deletions
|
|
@ -3395,7 +3395,7 @@ static int mmcsd_sdinitialize(FAR struct mmcsd_state_s *priv)
|
|||
|
||||
mmcsd_decode_scr(priv, scr);
|
||||
|
||||
if ((priv->caps & SDIO_CAPS_4BIT_ONLY) != 0)
|
||||
if ((priv->caps & SDIO_CAPS_4BIT) != 0)
|
||||
{
|
||||
/* Select width (4-bit) bus operation (if the card supports it) */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue