zephyr/subsys
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
..
bluetooth Bluetooth: Host: Move BT_DBG out of irq_lock 2019-07-31 17:07:50 +02:00
console cleanup: include/: move misc/printk.h to sys/printk.h 2019-06-27 22:55:49 -04:00
cpp cpp: support for 64-bit constructors 2019-07-30 18:55:34 -07:00
debug debug: tracing: Fix compilation error 2019-07-24 15:10:02 +02:00
dfu dfu: make flash_img write to flash on buffer full 2019-07-29 10:22:51 +02:00
disk disk: fixing the sending of commands with r1 response 2019-08-01 11:52:57 -04:00
fb scripts: gen_cfb_font_header: modify to replicate cfb fonts 2019-07-31 05:43:50 -04:00
fs fs: add support for mount point listing on vfs root 2019-07-26 14:20:00 +02:00
jwt cleanup: include/: move zephyr/jwt.h to data/jwt.h 2019-06-27 22:55:49 -04:00
logging logging: Clean up log.h dependencies 2019-08-01 14:42:40 +02:00
mgmt mcumgr: select NET_BUF when MCUMGR=y 2019-07-29 11:13:41 +02:00
net net: lwm2m: cancel pending retransmit work when closing context 2019-07-30 10:19:39 +03:00
power cleanup: include/: move misc/reboot.h to power/reboot.h 2019-06-27 22:55:49 -04:00
random cleanup: include/: move entropy.h to drivers/entropy.h 2019-06-27 22:55:49 -04:00
settings settings: Fix missing kernel.h include 2019-08-01 14:42:40 +02:00
shell shell: Fix undefined macro warnings 2019-07-24 16:34:31 -04:00
stats cleanup: include/: move stats.h to stats/stats.h 2019-06-27 22:55:49 -04:00
storage subsys/storage/flash_map: detect missing flash device 2019-07-24 09:20:56 -04:00
testsuite kernel: rename NANO_ESF 2019-07-25 15:06:58 -07:00
usb print format: adjust specifiers to be compatible with a 64-bit build 2019-07-11 20:12:26 -07:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
Kconfig userspace: remove APP_SHARED_MEM Kconfig 2019-02-23 07:43:55 -05:00