[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1562074519-205047-1-git-send-email-linmiaohe@huawei.com>
Date: Tue, 2 Jul 2019 13:35:19 +0000
From: Miaohe Lin <linmiaohe@...wei.com>
To: <bhelgaas@...gle.com>, <andy.shevchenko@...il.com>,
<sebott@...ux.ibm.com>, <lukas@...ner.de>,
<gustavo@...eddedor.com>, <linux-pci@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
CC: <linmiaohe@...wei.com>, <mingfangsen@...wei.com>
Subject: [PATCH] net: pci: Fix hotplug event timeout with shpchp
Hotplug a network card would take more than 5 seconds
in qemu + shpchp scene. It’s because 5 seconds
delayed_work in func handle_button_press_event with
case STATIC_STATE. And this will break some
protocols with timeout within 5 seconds.
Signed-off-by: Miaohe Lin <linmiaohe@...wei.com>
---
drivers/pci/hotplug/shpchp_ctrl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/hotplug/shpchp_ctrl.c b/drivers/pci/hotplug/shpchp_ctrl.c
index 078003dcde5b..cbb00acaba0d 100644
--- a/drivers/pci/hotplug/shpchp_ctrl.c
+++ b/drivers/pci/hotplug/shpchp_ctrl.c
@@ -478,7 +478,7 @@ static void handle_button_press_event(struct slot *p_slot)
p_slot->hpc_ops->green_led_blink(p_slot);
p_slot->hpc_ops->set_attention_status(p_slot, 0);
- queue_delayed_work(p_slot->wq, &p_slot->work, 5*HZ);
+ queue_delayed_work(p_slot->wq, &p_slot->work, 0);
break;
case BLINKINGOFF_STATE:
case BLINKINGON_STATE:
--
2.21.GIT
Powered by blists - more mailing lists