freebsd-skq/sys/cam/mmc
Ilya Bakulin b6b885c4fe Always return MMC errors from mmc_handle_reply()
There are two ways to propagate the error in MMCCAM:
 * Using cmd.error which is set by the peripheral driver;
 * Using CCB status which is... also set by the driver.

The problem is that those two error conditions don't necessarily match.
This leads to the confusion when handling the MMC reply. So enforce the consistency
by panicking if request is marked as completed successfully but MMC-level error
is present (this hints to the programming error).

Reviewed by:	manu
Approved by:	imp (mentor)
Differential Revision:	https://reviews.freebsd.org/D26925
2020-11-03 21:38:59 +00:00
..
mmc_all.h mmcam: Use a static length sbuf buffer 2020-08-04 20:02:23 +00:00
mmc_bus.h
mmc_da.c Always return MMC errors from mmc_handle_reply() 2020-11-03 21:38:59 +00:00
mmc_xpt.c cam: clean up empty lines in .c and .h files 2020-09-01 22:13:48 +00:00
mmc.h Fix setting RCA for MMC cards 2018-06-19 20:02:03 +00:00