diff options
| author | Nipun Gupta <[email protected]> | 2023-03-13 13:26:36 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-03-29 10:26:32 +0000 |
| commit | 48a6c7bced2a781c911497f073347bec5ab4d7a5 (patch) | |
| tree | 953e725238c48da61dceebf4d652ea52fdb8db38 /drivers/cdx/controller/mcdi_functions.h | |
| parent | cdx: add rpmsg communication channel for CDX (diff) | |
| download | kernel-48a6c7bced2a781c911497f073347bec5ab4d7a5.tar.gz kernel-48a6c7bced2a781c911497f073347bec5ab4d7a5.zip | |
cdx: add device attributes
Create sysfs entry for CDX devices.
Sysfs entries provided in each of the CDX device detected by
the CDX controller
- vendor id
- device id
- remove
- reset of the device.
- driver override
Signed-off-by: Puneet Gupta <[email protected]>
Signed-off-by: Nipun Gupta <[email protected]>
Signed-off-by: Tarak Reddy <[email protected]>
Reviewed-by: Pieter Jansen van Vuuren <[email protected]>
Tested-by: Nikhil Agarwal <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/mcdi_functions.h')
| -rw-r--r-- | drivers/cdx/controller/mcdi_functions.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/cdx/controller/mcdi_functions.h b/drivers/cdx/controller/mcdi_functions.h index 6bf5a4a0778f..7440ace5539a 100644 --- a/drivers/cdx/controller/mcdi_functions.h +++ b/drivers/cdx/controller/mcdi_functions.h @@ -47,4 +47,15 @@ int cdx_mcdi_get_dev_config(struct cdx_mcdi *cdx, u8 bus_num, u8 dev_num, struct cdx_dev_params *dev_params); +/** + * cdx_mcdi_reset_device - Reset cdx device represented by bus_num:dev_num + * @cdx: pointer to MCDI interface. + * @bus_num: Bus number. + * @dev_num: Device number. + * + * Return: 0 on success, <0 on failure + */ +int cdx_mcdi_reset_device(struct cdx_mcdi *cdx, + u8 bus_num, u8 dev_num); + #endif /* CDX_MCDI_FUNCTIONS_H */ |
