Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp37241rdb; Fri, 5 Jan 2024 01:44:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJpsbTihL69emknYLHb4263pB22l3OJvZkgAMbEzao3ZRjgTXhNSyN1ucLvK+EGdtfKPjN X-Received: by 2002:a17:906:6a22:b0:a27:c856:d889 with SMTP id qw34-20020a1709066a2200b00a27c856d889mr1233220ejc.81.1704447856427; Fri, 05 Jan 2024 01:44:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704447856; cv=none; d=google.com; s=arc-20160816; b=ugt8vMay4qA09NqLqv4YKQMraelImp2ELQn7dXEfTcBkkXTNOIXSpZFLR7RyiBILD1 HsXiNNzIe2EZzv0p6NmX6DvvXM7LLMhG1FBtEMDr/o60k3hkqGuOGGkuCpeO+bvbryGa pvnyBif7uTW5E3vi0LYQmWvu3ZkbHabV2FuI20Z3e47oJCbyMMqACOpEKABafuKjyto7 FTWBHYgqVDg261caL50UrT7hiwDaDj9iKjcKJUeLUuhlT7QjcbeFbnKc8FBmyuZ6zo1s SfjrPrSEzXLgdGAkcpinaJBCkqmegm7RDVJQWNc1ThHAR9ltJEcVaVgAYrlJC9TPbWmd qXFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=6cx3AkYeOtWVTGHKX5Q/998ueJhhIC2qCjF0VHKq/4A=; fh=qvtkcoyMXpgfM9o+UESDi9hYAAngp9xIVfHbeZqsRg0=; b=tDliibR1SNqa1FsCEhvLlVYMr4cNd3WvV7EyOKQVDenxYUNiYgG0FGJekinHAOMLEq 7SFXrthzLLwMGj0Zrc6dry2XZ57ETkYoH6R74P8E7nSF0H3avkfQaoIkH7aA7dG/gys9 3yZ/Y+9nApwkEFTbIfwX6Jf2DtxHhqEjREMjIpRqWdKKl/cNHnvDhiyzUH9z9PS5KbRe kRHrUqoan+JIasWPjwW7cApdROIoKkorrW9vfXSxOO/myn0+Z/VC+C6KjnUVrrAnYrKc S88F6OTw4kPSyeG3PwqOZ2Y1eITnkJBKWcnQtwdOwKFiBTPYz32aatdm9SDd1yL5yaZe HGNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=iVMxKve7; spf=pass (google.com: domain of linux-kernel+bounces-17676-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17676-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q19-20020a170906a09300b00a2906c201e7si438322ejy.1029.2024.01.05.01.44.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 01:44:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17676-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=iVMxKve7; spf=pass (google.com: domain of linux-kernel+bounces-17676-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17676-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 231581F234DA for ; Fri, 5 Jan 2024 09:44:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02BC824B43; Fri, 5 Jan 2024 09:43:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="iVMxKve7" X-Original-To: linux-kernel@vger.kernel.org Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01A6224B54; Fri, 5 Jan 2024 09:43:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk 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=6cx3AkYeOtWVTGHKX5Q/998ueJhhIC2qCjF0VHKq/4A=; b=iVMxKve7K1xzBcy7We6EzxyoZs 1AIders3rvB0HG8Nw86dNGjQynKVRTUTQCfTtJeDFgpQbrRQQTRUsW+WTsOX5H/6BQCjVHP4Mp0lZ WtuX5jYOkIIetzcMy54+FhuJlPnd4800S83Cv2VGAHo7NFfUkE+BdneBSLbBamGdtdk2G4Bl8QvCu 76U2lsHSPChYfGP8u8uAOMt2s/5yTtxHlZlV2cAFAj0CkZWvb43er5rhhz8QY92rC5YWQcg4QfbK5 g9lF9M+ZDQCVRbOvskNwizBC9NSDxA5DgaSM87XQa1uaWLZWFzuOB7OQY4J1lmwbT2BbiNDs9fSUn EBxHnYxg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:49732) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rLgjZ-0000mS-1i; Fri, 05 Jan 2024 09:43:21 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rLgja-0008VX-9Y; Fri, 05 Jan 2024 09:43:22 +0000 Date: Fri, 5 Jan 2024 09:43:22 +0000 From: "Russell King (Oracle)" To: Claudiu Cc: andrew@lunn.ch, hkallweit1@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, yuiko.oshino@microchip.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Claudiu Beznea Subject: Re: [PATCH net] net: phy: micrel: populate .soft_reset for KSZ9131 Message-ID: References: <20240105085242.1471050-1-claudiu.beznea.uj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240105085242.1471050-1-claudiu.beznea.uj@bp.renesas.com> Sender: Russell King (Oracle) On Fri, Jan 05, 2024 at 10:52:42AM +0200, Claudiu wrote: > The order of PHY-related operations in ravb_open() is as follows: > ravb_open() -> > ravb_phy_start() -> > ravb_phy_init() -> > of_phy_connect() -> > phy_connect_direct() -> > phy_attach_direct() -> > phy_init_hw() -> > phydev->drv->soft_reset() > phydev->drv->config_init() > phydev->drv->config_intr() > phy_resume() > kszphy_resume() > > The order of PHY-related operations in ravb_close is as follows: > ravb_close() -> > phy_stop() -> > phy_suspend() -> > kszphy_suspend() -> > genphy_suspend() > // set BMCR_PDOWN bit in MII_BMCR Andrew, This looks wrong to me - shouldn't we be resuming the PHY before attempting to configure it? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!