Skip to content

Commit

Permalink
drivers/mmcsd/mmcsd_sdio.c: Fix SD card 4-bit support
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jpaali committed May 13, 2024
1 parent c9b9e53 commit 14b6d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmcsd/mmcsd_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) */

Expand Down

0 comments on commit 14b6d8b

Please sign in to comment.