Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5368513rwb; Mon, 14 Nov 2022 03:44:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf54w89Xgv3yGNcCteRb2ST7naD3SeSVVrVNk4M0TonQ6idVykS8oEGJ2P6PVZ8ebsBR3FE8 X-Received: by 2002:a63:ec06:0:b0:457:f31e:488e with SMTP id j6-20020a63ec06000000b00457f31e488emr11166403pgh.65.1668426279799; Mon, 14 Nov 2022 03:44:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668426279; cv=none; d=google.com; s=arc-20160816; b=GfjsVfblcQBOciO7XXQS7qhYurVdc5/lPlgiSt2nWUli51shSCssae6afIYEcP0Hq5 Qp2+f8L34uZ/W60Yg7D//a6KAxNYVJYzaT8r/N0+97wFsTPiBBnQPvthGAx/PKjw7QzQ nhVeYK+xFyWe0w95o7XlRnSooLHsWVf0h/mZBTvyZTyFWJrmZUUG2w8I8EFaiYckmjHj 1WSxzF4VVfOkB1G8WGtiIWx7NwRQjZtsU7eGoDkZTsQSuEBXtwoM4VrvNJPAo6vci4kx jyKZLtP4nSR4cfvyRplzxENHON5g7jNmN3oOBTmbNiu3RKfCLuwJ5oqqoQ4xn1s61oe+ OlxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=WWLpgrUnMpDL7blwsvF5dOfQKm1L1ZS3Z5Ep+83hIgU=; b=M7D4mjivyYcmyOvKj2QehHShvyIlnEv5St2ZosKwjmvdTCtQVTAGyC/VQvB46/zFC0 G5dt0MGnCbAUC82ovVh7DA3K1OxZaXwyGcvEx6+WH9EOVZTg+Uhri2jvQgkQ49yrcwF+ TzEiLTDDANDc1Ktc1AXHvEWLHFZ1LVn+WIfvl8PuovRHvUHN/2ozEfaW2LTrAo4e6yOZ hdbExhNTuMJb25tFsWtZVvLYirXlUOMpH6/KWeoUlc4ULA+PZxFmBrjXmXa5NR1//mfu BEYvTKXVJPcbLO2kVHNOEKyPFEBdd7bUvyK1y7OiWB3ak6RWvJTUn0ZBr4Yabfq+JmfT ILog== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=eliEjRqi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e1-20020a17090ac20100b00213ef843bdasi8767683pjt.64.2022.11.14.03.44.26; Mon, 14 Nov 2022 03:44:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=eliEjRqi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235809AbiKNLcD (ORCPT + 89 others); Mon, 14 Nov 2022 06:32:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiKNLcA (ORCPT ); Mon, 14 Nov 2022 06:32:00 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA12BC50; Mon, 14 Nov 2022 03:31:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WWLpgrUnMpDL7blwsvF5dOfQKm1L1ZS3Z5Ep+83hIgU=; b=eliEjRqitFRP24Nf4GZqFcjjMG VNcj/ugP24nWY/LhW0mAh2PQSXPGx09anHEamUWVV1VuS+SmsYMdJgeFyK4HQyIewpQ5vK46fDbTU L1Mk0YBBvKN4GUg/8HaDiKEY0nF1rTJoJ2RbF0So/OsLuZlM525Ez/V6Th/ijVKA6oJkldC6vByoN 2vkUwxV9lGEPmfDqXSJRj+XL6IQtF5tjYO9mGMA/MtF4h9dAhbgqvplSp1pz+UkUYftw4WwCNYm2B +y+DzGcDAMGdZL7KCfglBUvmgkBttyMfiT+sieE5/43PRt9xprPOs0EImeRI1d1MsDbFTrHm8ui6b U59aNjSw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:35256) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ouXgw-0000hT-QD; Mon, 14 Nov 2022 11:31:54 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1ouXgu-0003m0-KS; Mon, 14 Nov 2022 11:31:52 +0000 Date: Mon, 14 Nov 2022 11:31:52 +0000 From: "Russell King (Oracle)" To: Alexandru Tachici Cc: linux-kernel@vger.kernel.org, andrew@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, steve.glendinning@shawell.net, UNGLinuxDriver@microchip.com, andre.edich@microchip.com, linux-usb@vger.kernel.org Subject: Re: [net] net: usb: smsc95xx: fix external PHY reset Message-ID: References: <20221114131643.19450-1-alexandru.tachici@analog.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221114131643.19450-1-alexandru.tachici@analog.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 14, 2022 at 03:16:43PM +0200, Alexandru Tachici wrote: > + } else { > + /* Driver has no knowledge at this point about the external PHY. > + * The 802.3 specifies that the reset process shall > + * be completed within 0.5 s. > + */ > + fsleep(500000); > + } It's slightly more code, but would it be better to do this in the mdiobus reset() method? Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!