powerpc/papr_scm: Properly handle UUID types and API
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 16 Jun 2021 13:43:03 +0000 (16:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:49 +0000 (16:56 +0200)
commitac08ba518c6cb18902427a7072234375d3c6862e
tree9170bd5a73d0744434e3d8ea8439ba4a0b2a777e
parentd3358c66ee5607b17bb0831edbff1b27ffe4979b
powerpc/papr_scm: Properly handle UUID types and API

[ Upstream commit 0e8554b5d7801b0aebc6c348a0a9f7706aa17b3b ]

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: 43001c52b603 ("powerpc/papr_scm: Use ibm,unit-guid as the iset cookie")
Fixes: 259a948c4ba1 ("powerpc/pseries/scm: Use a specific endian format for storing uuid from the device tree")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210616134303.58185-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/platforms/pseries/papr_scm.c