cdx: disable cdx bus from bus shutdown callback
disable cdx bus when bus shutdown is called. Signed-off-by: Abhijit Gangurde <abhijit.gangurde@amd.com> Link: https://lore.kernel.org/r/20241203084409.2747897-2-abhijit.gangurde@amd.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
235b630eda
commit
6d2478a103
1 changed files with 3 additions and 0 deletions
|
@ -338,7 +338,10 @@ static void cdx_shutdown(struct device *dev)
|
|||
{
|
||||
struct cdx_driver *cdx_drv = to_cdx_driver(dev->driver);
|
||||
struct cdx_device *cdx_dev = to_cdx_device(dev);
|
||||
struct cdx_controller *cdx = cdx_dev->cdx;
|
||||
|
||||
if (cdx_dev->is_bus && cdx_dev->enabled && cdx->ops->bus_disable)
|
||||
cdx->ops->bus_disable(cdx, cdx_dev->bus_num);
|
||||
if (cdx_drv && cdx_drv->shutdown)
|
||||
cdx_drv->shutdown(cdx_dev);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue