|
@@ -31,7 +31,6 @@
|
|
#include <linux/kernel.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/types.h>
|
|
#include <linux/types.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/slab.h>
|
|
-#include <linux/pm_runtime.h>
|
|
|
|
#include <linux/pci.h>
|
|
#include <linux/pci.h>
|
|
#include "../pci.h"
|
|
#include "../pci.h"
|
|
#include "pciehp.h"
|
|
#include "pciehp.h"
|
|
@@ -99,7 +98,6 @@ static int board_added(struct slot *p_slot)
|
|
pciehp_green_led_blink(p_slot);
|
|
pciehp_green_led_blink(p_slot);
|
|
|
|
|
|
/* Check link training status */
|
|
/* Check link training status */
|
|
- pm_runtime_get_sync(&ctrl->pcie->port->dev);
|
|
|
|
retval = pciehp_check_link_status(ctrl);
|
|
retval = pciehp_check_link_status(ctrl);
|
|
if (retval) {
|
|
if (retval) {
|
|
ctrl_err(ctrl, "Failed to check link status\n");
|
|
ctrl_err(ctrl, "Failed to check link status\n");
|
|
@@ -120,14 +118,12 @@ static int board_added(struct slot *p_slot)
|
|
if (retval != -EEXIST)
|
|
if (retval != -EEXIST)
|
|
goto err_exit;
|
|
goto err_exit;
|
|
}
|
|
}
|
|
- pm_runtime_put(&ctrl->pcie->port->dev);
|
|
|
|
|
|
|
|
pciehp_green_led_on(p_slot);
|
|
pciehp_green_led_on(p_slot);
|
|
pciehp_set_attention_status(p_slot, 0);
|
|
pciehp_set_attention_status(p_slot, 0);
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
err_exit:
|
|
err_exit:
|
|
- pm_runtime_put(&ctrl->pcie->port->dev);
|
|
|
|
set_slot_off(ctrl, p_slot);
|
|
set_slot_off(ctrl, p_slot);
|
|
return retval;
|
|
return retval;
|
|
}
|
|
}
|
|
@@ -141,9 +137,7 @@ static int remove_board(struct slot *p_slot)
|
|
int retval;
|
|
int retval;
|
|
struct controller *ctrl = p_slot->ctrl;
|
|
struct controller *ctrl = p_slot->ctrl;
|
|
|
|
|
|
- pm_runtime_get_sync(&ctrl->pcie->port->dev);
|
|
|
|
retval = pciehp_unconfigure_device(p_slot);
|
|
retval = pciehp_unconfigure_device(p_slot);
|
|
- pm_runtime_put(&ctrl->pcie->port->dev);
|
|
|
|
if (retval)
|
|
if (retval)
|
|
return retval;
|
|
return retval;
|
|
|
|
|