pciehp_device_replaced
bool pciehp_device_replaced(struct controller *ctrl);
if (pciehp_device_replaced(ctrl)) {
if (!pciehp_check_link_active(ctrl) || pciehp_device_replaced(ctrl))