]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: rockchip_sdhci: Limit number of blocks read in a single command
authorJonas Karlman <jonas@kwiboo.se>
Tue, 18 Apr 2023 16:46:45 +0000 (16:46 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 21 Apr 2023 07:55:29 +0000 (15:55 +0800)
commit2cc6cde647e2cf61a29f389e8d263bf19672f0f5
tree6a5d621db8687bf8c881c8cc287507563e7fc301
parent3cd664dc92ca832506f1a4e7769cb5ee6a88137d
mmc: rockchip_sdhci: Limit number of blocks read in a single command

Using DMA to load TF-A into SRAM fails when booting from eMMC on RK3588.

  ## Checking hash(es) for Image atf-3 ... sha256 error!
  Bad hash value for 'hash' hash node in 'atf-3' image node
  spl_load_simple_fit: can't load image loadables index 2 (ret = -1)
  mmc_load_image_raw_sector: mmc block read error

Fix this by using PIO mode in SPL and limit the number of blocks used in
a single read command to avoid triggering Data End Bit Error interrupt.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
configs/rock5b-rk3588_defconfig
drivers/mmc/rockchip_sdhci.c