diff options
author | Abhijit Gangurde <abhijit.gangurde@amd.com> | 2023-10-17 19:05:02 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-27 14:23:24 +0300 |
commit | ce558a391d80b9f47a462107977e8e81fe2f2962 (patch) | |
tree | 898cccb9a2bc7c4385d088a258dbcf446e8fb01c /include/linux/cdx/cdx_bus.h | |
parent | e3ed12f37e261a0b35cf0b4ae505adf7ea0f48ec (diff) | |
download | linux-ce558a391d80b9f47a462107977e8e81fe2f2962.tar.xz |
cdx: Register cdx bus as a device on cdx subsystem
While scanning for CDX devices, register newly discovered bus as a
cdx device. CDX device attributes are visible based on device type.
Signed-off-by: Abhijit Gangurde <abhijit.gangurde@amd.com>
Link: https://lore.kernel.org/r/20231017160505.10640-5-abhijit.gangurde@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/cdx/cdx_bus.h')
-rw-r--r-- | include/linux/cdx/cdx_bus.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/cdx/cdx_bus.h b/include/linux/cdx/cdx_bus.h index 82c27b8c94e1..b5e4b7e05666 100644 --- a/include/linux/cdx/cdx_bus.h +++ b/include/linux/cdx/cdx_bus.h @@ -88,6 +88,7 @@ struct cdx_controller { * @dma_mask: Default DMA mask * @flags: CDX device flags * @req_id: Requestor ID associated with CDX device + * @is_bus: Is this bus device * @driver_override: driver name to force a match; do not set directly, * because core frees it; use driver_set_override() to * set or clear it. @@ -104,6 +105,7 @@ struct cdx_device { u64 dma_mask; u16 flags; u32 req_id; + bool is_bus; const char *driver_override; }; |