From: Heiner Kallweit Subject: [PATCH net] net: phy: micrel: set soft_reset callback to genphy_soft_reset for KSZ9031 Date: Thu, 10 Jan 2019 20:22:26 +0100 Message-ID: <6d3b1dce-7633-51a1-0556-97cd03304c2c@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "netdev@vger.kernel.org" , Tony Lindgren To: Andrew Lunn , Florian Fainelli , David Miller Return-path: Received: from mail-wr1-f67.google.com ([209.85.221.67]:42490 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728572AbfAJTWe (ORCPT ); Thu, 10 Jan 2019 14:22:34 -0500 Received: by mail-wr1-f67.google.com with SMTP id q18so12660208wrx.9 for ; Thu, 10 Jan 2019 11:22:32 -0800 (PST) Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: So far genphy_soft_reset was used automatically if the PHY driver didn't implement the soft_reset callback. This changed with the mentioned commit and broke KSZ9031. To fix this configure the KSZ9031 PHY driver to use genphy_soft_reset. Fixes: 6e2d85ec0559 ("net: phy: Stop with excessive soft reset") Reported-by: Tony Lindgren Signed-off-by: Heiner Kallweit --- drivers/net/phy/micrel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index c33384710..7828d17f0 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c @@ -1070,6 +1070,7 @@ static struct phy_driver ksphy_driver[] = { .driver_data = &ksz9021_type, .probe = kszphy_probe, .config_init = ksz9031_config_init, + .soft_reset = genphy_soft_reset, .read_status = ksz9031_read_status, .ack_interrupt = kszphy_ack_interrupt, .config_intr = kszphy_config_intr, -- 2.20.1