]> git.dujemihanovic.xyz Git - u-boot.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)
commit781aad0de93aedf94a17cc66b2f211bf156b718e
tree19b029508a6cd67b174003aa1f5b0561d85023a4
parent01962f8d7ced3d8b9748d3b902f7f9b68587c426
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