zephyr/subsys/disk
Lucas Peixoto e3f2add64c disk: fixing the sending of commands with r1 response
The sdhc_cmd_r1_raw() function doesn't take into account the existence
of commands with data response. Because of this, some datas were being
lost.

The commands that return a r1 response and a data are: SDHC_SEND_CSD,
SDHC_SEND_CID, SDHC_READ_SINGLE_BLOCK, SDHC_READ_MULTIPLE_BLOCK,
SDHC_WRITE_BLOCK, SDHC_WRITE_MULTIPLE_BLOCK.

In order to solve this, was juts necessary skip the byte discard when
the command is one of these.

This problem was affecting, for example, the sdhc initialization. The
token returned from SDHC_SEND_CSD was being lost and the initialization
was broken.

Fixes #15444.

Signed-off-by: Lucas Peixoto <lucaspeixotoac@gmail.com>
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-08-01 11:52:57 -04:00
..
CMakeLists.txt usdhc: support NXP i.MXRT usdhc 2019-07-10 11:58:15 -05:00
disk_access.c cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
disk_access_flash.c cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
disk_access_ram.c cleanup: include/: move misc/__assert.h to sys/__assert.h 2019-06-27 22:55:49 -04:00
disk_access_sdhc.h sdhc: rename disk_access_sdhc.c 2019-07-10 11:58:15 -05:00
disk_access_spi_sdhc.c disk: fixing the sending of commands with r1 response 2019-08-01 11:52:57 -04:00
disk_access_usdhc.c usdhc: support NXP i.MXRT usdhc 2019-07-10 11:58:15 -05:00
fat12_ramdisk.h license: add missing licenses and copyright 2017-06-08 10:41:56 -04:00
Kconfig Kconfig: Kconfig support i.MX RT USDHC 2019-07-10 11:58:15 -05:00