From: Biwen Li Date: Wed, 25 Sep 2019 09:48:11 +0000 (+0800) Subject: armv7: ls102xa: Correct endianness of SCFG_SPARECR8 read X-Git-Tag: v2020.01-rc1~12^2~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3f4bc67548595258764b6fb15717b17a05b6be58;p=oweals%2Fu-boot.git armv7: ls102xa: Correct endianness of SCFG_SPARECR8 read The patch corrects endianness of register SCFG_SPARECR8 read in_le32 -> in_be32 Signed-off-by: Biwen Li Reviewed-by: Priyanka Jain --- diff --git a/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c b/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c index bb169aaaf4..00b6ad48ce 100644 --- a/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c +++ b/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c @@ -72,7 +72,7 @@ static void __secure ls1_deepsleep_irq_cfg(void) * returns zero, so its value is saved to a scrachpad register to be * read, that is why we don't read it from register ippdexpcr1 itself. */ - ippdexpcr1 = in_le32(&scfg->sparecr[7]); + ippdexpcr1 = in_be32(&scfg->sparecr[7]); out_be32(&rcpm->ippdexpcr1, ippdexpcr1); if (ippdexpcr0 & RCPM_IPPDEXPCR0_ETSEC)