From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 A841517543 for ; Mon, 10 Mar 2025 10:16:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741601779; cv=none; b=d1uKp4/AqDHYNwNu2DsEP/f1o7nTjRuyh9ZEzEgtf+yla6CNhDOnK2o2+c3RGuEcjPpFnMpsKusP7PktoYJDhYoJu1XYbWXy54ru/m17zYMrHB66vGkyxevuPnNVjHcEWMBpAKpYw0lwOknVLOBhJ7Ir2I3PqUthkRzjYHNqZqI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741601779; c=relaxed/simple; bh=AVuAqitwovQZSGVEAsVCuCuAKA9myIFwPMi1B/0NumI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ppSaXEFb8lYxfdVBmUoiH9dzjR99Xb5pVwpHNQyQhwSKDEMH0nEl4zXykAvSMWQB4TLuUKdQv3SmhvRedp71VrtYBaPNUhS/SXwG42mVQIz2p45WTALLusArnj9wEi8/qBin9YOEMSvFJNnE43ZbfpxU1hnfF13/6ue1lEnTkXY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1traB9-0001LQ-A4; Mon, 10 Mar 2025 11:16:11 +0100 Received: from pty.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::c5]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1traB8-004ypp-25; Mon, 10 Mar 2025 11:16:10 +0100 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1traB8-005ra3-1d; Mon, 10 Mar 2025 11:16:10 +0100 Date: Mon, 10 Mar 2025 11:16:10 +0100 From: Oleksij Rempel To: "Russell King (Oracle)" Cc: Thangaraj.S@microchip.com, andrew+netdev@lunn.ch, davem@davemloft.net, Rengarajan.S@microchip.com, Woojung.Huh@microchip.com, pabeni@redhat.com, edumazet@google.com, kuba@kernel.org, phil@raspberrypi.org, kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com Subject: Re: [PATCH net-next v2 1/7] net: usb: lan78xx: Convert to PHYlink for improved PHY and MAC management Message-ID: References: <20250307182432.1976273-1-o.rempel@pengutronix.de> <20250307182432.1976273-2-o.rempel@pengutronix.de> <1bb51aad80be4bb5e0413089e1b1bf747db4e123.camel@microchip.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=utf-8 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org On Mon, Mar 10, 2025 at 10:11:29AM +0000, Russell King (Oracle) wrote: > On Mon, Mar 10, 2025 at 10:58:38AM +0100, Oleksij Rempel wrote: > > Hi Thangaraj, > > > > On Mon, Mar 10, 2025 at 09:29:45AM +0000, Thangaraj.S@microchip.com wrote: > > > > - mii_adv_to_linkmode_adv_t(fc, mii_adv); > > > > - linkmode_or(phydev->advertising, fc, phydev->advertising); > > > > + phy_suspend(phydev); > > > > > > > > > > Why phy_suspend called in the init? Is there any specific reason? > > > > In my tests with EVB-LAN7801-EDS, the attached PHY stayed UP in initial > > state. > > Why is that an issue? The local interface was in the administrative DOWN state, but link was up: - port LEDs are on - link partner sees the link is UP. It is not a big deal, but for me it looks inconsistent. -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |