]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cxl: Use image state defaults for reloading FPGA
authorRyan Grimm <grimm@linux.vnet.ibm.com>
Mon, 19 Jan 2015 17:52:48 +0000 (11:52 -0600)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 24 Mar 2015 01:02:54 +0000 (21:02 -0400)
commit0153a8f025996a5d465717a8782c26d1ce09d254
tree3cde79b155a99757dfb097a653235bfae80e98c2
parent22374fc8ef69575e6d5ca79ba3f01d8472ff87e7
cxl: Use image state defaults for reloading FPGA

commit 4beb5421babee1204757b877622830c6aa31be6d upstream.

Select defaults such that a PERST causes flash image reload.  Select which
image based on what the card is set up to load.

CXL_VSEC_PERST_LOADS_IMAGE selects whether PERST assertion causes flash image
load.

CXL_VSEC_PERST_SELECT_USER selects which image is loaded on the next PERST.

cxl_update_image_control writes these bits into 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/cxl/cxl.h
drivers/misc/cxl/pci.c