mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
ram: k3-ddrss: Handle error properly in lpddr4_start
In lpddr4_start function error returned by lpddr4_enablepiinitiator may go undetected due to overwrite of return code. Add support to handle error in above case. Reported-by: Andreas Dannenberg <dannenberg@ti.com> Signed-off-by: Udit Kumar <u-kumar1@ti.com> Reviewed-by: Bryan Brattlof <bb@ti.com>
This commit is contained in:
@@ -155,10 +155,11 @@ u32 lpddr4_start(const lpddr4_privatedata *pd)
|
||||
u32 result = 0U;
|
||||
|
||||
result = lpddr4_startsf(pd);
|
||||
if (result == (u32)0) {
|
||||
if (result == (u32)0)
|
||||
result = lpddr4_enablepiinitiator(pd);
|
||||
if (result == (u32)0)
|
||||
result = lpddr4_startsequencecontroller(pd);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user