]> git.ipfire.org Git - thirdparty/u-boot.git/commit
mmc: zynq_sdhci: Fix SPL flow issues in mmc driver
authorAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
Wed, 11 Aug 2021 09:50:51 +0000 (03:50 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 12 Aug 2021 10:41:20 +0000 (12:41 +0200)
commit17d65561b4399c4811c01a16d01488d664dda233
tree92d405fb3a4a6dd14a150b359b4a4ef8ab4e5be8
parent2767af5ae11887cada1071bb66bb41873ffe99c8
mmc: zynq_sdhci: Fix SPL flow issues in mmc driver

Address couple of review comments which are already fixed in mainline.

SPL flow needs zynqmp_mmio way to set tapdelay's. Keep xilinx_pm_request
calls for regular u-boot and use zynqmp_mmio calls for SPL flow and mini
u-boot.

Change Macro's to use BIT() and GENMASK() wherever applicable.

Add WORKAROUND for the Versal card detect stable issue in the comment,
and return -ETIMEDOUT in place of -EIO if the card is not stable.

Print error when set_delay() function returns error.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
drivers/mmc/sdhci.c
drivers/mmc/zynq_sdhci.c