powerpc/ps3: Add firmware version to sysfs
authorGeoff Levand <geoff@infradead.org>
Fri, 4 Jun 2021 15:58:25 +0000 (15:58 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Jun 2021 11:44:57 +0000 (21:44 +1000)
commit07e2d6cf91079ca01db7fb989a02edd8009dcacd
treedf5bf44d67f1636069c0a092883dd7beb434764b
parent015d98149b326e0f1f02e44413112ca8b4330543
powerpc/ps3: Add firmware version to sysfs

Add a new sysfs entry /sys/firmware/ps3/fw-version that exports
the PS3's firmware version.

The firmware version is available through an LV1 hypercall, and we've
been printing it to the boot log, but haven't provided an easy way for
user utilities to get it.

Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/41509b2da647cd34b1331cc4756c8774b1e284eb.1622822173.git.geoff@infradead.org
arch/powerpc/platforms/ps3/setup.c