Skip to content
Commit 11fe909d authored by Matt Brown's avatar Matt Brown Committed by Michael Ellerman
Browse files

powerpc/powernv: Add OPAL exports attributes to sysfs



New versions of OPAL have a device node /ibm,opal/firmware/exports, each
property of which describes a range of memory in OPAL that Linux might
want to export to userspace for debugging.

This patch adds a sysfs file under 'opal/exports' for each property
found there, and makes it read-only by root.

Signed-off-by: default avatarMatt Brown <matthew.brown.dev@gmail.com>
[mpe: Drop counting of props, rename to attr, free on sysfs error, c'log]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 687da8fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment