cdx: add support for bus enable and disable
authorAbhijit Gangurde <abhijit.gangurde@amd.com>
Tue, 17 Oct 2023 16:05:03 +0000 (21:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Oct 2023 11:23:24 +0000 (13:23 +0200)
commite3cfd49cb9491ac1cc233a4b9e098688b4ab281d
tree15029eab27a1d6205226fa16d723222bb7363d84
parentce558a391d80b9f47a462107977e8e81fe2f2962
cdx: add support for bus enable and disable

CDX bus needs to be disabled before updating/writing devices
in the FPGA. Once the devices are written, the bus shall be
rescanned. This change provides sysfs entry to enable/disable the
CDX bus.

Co-developed-by: Nipun Gupta <nipun.gupta@amd.com>
Signed-off-by: Nipun Gupta <nipun.gupta@amd.com>
Signed-off-by: Abhijit Gangurde <abhijit.gangurde@amd.com>
Link: https://lore.kernel.org/r/20231017160505.10640-6-abhijit.gangurde@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-bus-cdx
drivers/cdx/cdx.c
drivers/cdx/controller/cdx_controller.c
drivers/cdx/controller/mc_cdx_pcol.h
drivers/cdx/controller/mcdi_functions.c
drivers/cdx/controller/mcdi_functions.h
include/linux/cdx/cdx_bus.h