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:
Jani Paalijarvi 2024-05-02 15:54:48 +03:00 committed by Xiang Xiao
parent 1890b58e67
commit 975d99c3f6

View File

@ -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) */