From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiner Kallweit Subject: [PATCH net-next] net: phy: trigger state machine immediately in phy_start_machine Date: Thu, 11 Oct 2018 19:31:47 +0200 Message-ID: <7bbeb020-0001-404c-4a0c-d4d8e9788db5@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "netdev@vger.kernel.org" To: Andrew Lunn , Florian Fainelli , David Miller Return-path: Received: from mail-wm1-f66.google.com ([209.85.128.66]:50266 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727417AbeJLBAI (ORCPT ); Thu, 11 Oct 2018 21:00:08 -0400 Received: by mail-wm1-f66.google.com with SMTP id i8-v6so9757843wmg.0 for ; Thu, 11 Oct 2018 10:31:55 -0700 (PDT) Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: When starting the state machine there may be work to be done immediately, e.g. if the initial state is PHY_UP then the state machine may trigger an autonegotiation. Having said that I see no need to wait a second until the state machine is run first time. Signed-off-by: Heiner Kallweit --- drivers/net/phy/phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 14509a890..704428211 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -654,7 +654,7 @@ static void phy_queue_state_machine(struct phy_device *phydev, */ void phy_start_machine(struct phy_device *phydev) { - phy_queue_state_machine(phydev, 1); + phy_trigger_machine(phydev); } EXPORT_SYMBOL_GPL(phy_start_machine); -- 2.19.1