Commit b7541c48 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Zheng Zengkai
Browse files

powerpc/papr_scm: Properly handle UUID types and API

stable inclusion
from stable-5.10.50
commit ac08ba518c6cb18902427a7072234375d3c6862e
bugzilla: 174522 https://gitee.com/openeuler/kernel/issues/I4DNFY

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ac08ba518c6cb18902427a7072234375d3c6862e



--------------------------------

[ Upstream commit 0e8554b5 ]

Parse to and export from UUID own type, before dereferencing.
This also fixes wrong comment (Little Endian UUID is something else)
and should eliminate the direct strict types assignments.

Fixes: 43001c52 ("powerpc/papr_scm: Use ibm,unit-guid as the iset cookie")
Fixes: 259a948c ("powerpc/pseries/scm: Use a specific endian format for storing uuid from the device tree")
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210616134303.58185-1-andriy.shevchenko@linux.intel.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent e134f914
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment