]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite26bc6ef35d5b51fedf69eeb878844419d68645a
treedf5bf44d67f1636069c0a092883dd7beb434764b
parent8df5be518d2174c85d3f0b0e392facba1e1a715d
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