]> git.dujemihanovic.xyz Git - u-boot.git/commit
ram: rk3399: Handle data training return types
authorJagan Teki <jagan@amarulasolutions.com>
Mon, 15 Jul 2019 18:28:39 +0000 (23:58 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 19 Jul 2019 03:11:09 +0000 (11:11 +0800)
commit02fad6f9eda4165db33710c7c65353babf1d4455
treeb083135f5ed9e3eb7195db853888c662e74f4d28
parentdd7dfa217e799007f11f4649396d86ad8a40f95b
ram: rk3399: Handle data training return types

data trainings calls like ca, wl, rg, rl, wdql have proper
return types with -EIO and the return type missed to handle
in data_training function.

This patch, add proper return type checks along with useful
debug statement on each data training calls.

Incidentally this would help to prevent the sdram initialization
hang for single channel dram and when the code is trying to
initialize second channel with proper return type of relevant
data training call might failed.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang <Kever.yang@rock-chips.com>
drivers/ram/rockchip/sdram_rk3399.c