Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A74FC433F5 for ; Thu, 12 May 2022 12:12:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353050AbiELMMz (ORCPT ); Thu, 12 May 2022 08:12:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352872AbiELMMy (ORCPT ); Thu, 12 May 2022 08:12:54 -0400 Received: from bmailout1.hostsharing.net (bmailout1.hostsharing.net [83.223.95.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E88040A00 for ; Thu, 12 May 2022 05:12:51 -0700 (PDT) Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1" (verified OK)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id 5F8C6300034C7; Thu, 12 May 2022 14:12:49 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 5567B2E4EB2; Thu, 12 May 2022 14:12:49 +0200 (CEST) Date: Thu, 12 May 2022 14:12:49 +0200 From: Lukas Wunner To: netdev@vger.kernel.org Cc: Andrew Lunn Subject: Re: [PATCH net-next v3 3/7] usbnet: smsc95xx: Don't reset PHY behind PHY driver's back Message-ID: <20220512121249.GB4703@wunner.de> References: <53ea51cabb288a0eba475ffaf1b2afd15b505b62.1652343655.git.lukas@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53ea51cabb288a0eba475ffaf1b2afd15b505b62.1652343655.git.lukas@wunner.de> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, May 12, 2022 at 10:42:03AM +0200, Lukas Wunner wrote: > smsc95xx_reset() resets the PHY behind the PHY driver's back, which > seems like a bad idea generally. Remove that portion of the function. > > We're about to use PHY interrupts instead of polling to detect link > changes on SMSC LAN95xx chips. Because smsc95xx_reset() is called from > usbnet_open(), PHY interrupt settings are lost whenever the net_device > is brought up. > > There are two other callers of smsc95xx_reset(), namely smsc95xx_bind() > and smsc95xx_reset_resume(), and both may indeed benefit from a PHY > reset. However they already perform one through their calls to > phy_connect_direct() and phy_init_hw(). > > Tested-by: Oleksij Rempel # LAN9514/9512/9500 > Tested-by: Ferry Toth # LAN9514 > Signed-off-by: Lukas Wunner > Cc: Martyn Welch > Cc: Gabriel Hojda Reviewed-by: Andrew Lunn Andrew kindly provided this tag here: https://lore.kernel.org/netdev/YnGq401sOeC0zwt6@lunn.ch/ Forgot to add it to the commit. Sending it in separately so patchwork picks it up. My apologies for the inconvenience.