]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: mmc_spi: Move argument check to the beginning of mmc_spi_sendcmd()
authorBin Meng <bin.meng@windriver.com>
Tue, 2 Feb 2021 02:48:46 +0000 (10:48 +0800)
committerPeng Fan <peng.fan@nxp.com>
Fri, 19 Feb 2021 07:07:30 +0000 (15:07 +0800)
commit8c682ff6a7e01f1b514040cf9ed19d22691b0c14
tree19b029508a6cd67b174003aa1f5b0561d85023a4
parentd763931b78a1ecda4a883c63bd53ff107418ba80
mmc: mmc_spi: Move argument check to the beginning of mmc_spi_sendcmd()

The argument check should happen before any transfer on the SPI lines.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/mmc_spi.c