OSDN Git Service

cxl: Add image control to sysfs
authorRyan Grimm <grimm@linux.vnet.ibm.com>
Mon, 19 Jan 2015 17:52:49 +0000 (11:52 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 22 Jan 2015 06:31:51 +0000 (17:31 +1100)
commit95bc11bcd1428afdb48400ec84dc6d5a83926138
tree3831e60e399dd4e2f4e90b3bc358e2fdbd90ef59
parent4beb5421babee1204757b877622830c6aa31be6d
cxl: Add image control to sysfs

load_image_on_perst identifies whether a PERST will cause the image to be
flashed to the card. And if so, which image.

Valid entries are: "none", "user" and "factory".

A value of "none" means PERST will not cause the image to be flashed. A
power cycle to the pcie slot is required to load the image.

"user" loads the user provided image and "factory" loads the factory image upon
PERST.

sysfs updates the cxl struct in the driver then calls cxl_update_image_control
to write the vals in the VSEC.

Signed-off-by: Ryan Grimm <grimm@linux.vnet.ibm.com>
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Documentation/ABI/testing/sysfs-class-cxl
drivers/misc/cxl/sysfs.c