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 F17341F190A for ; Tue, 7 Jan 2025 15:54:10 +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=1736265254; cv=none; b=KmVzhWz6qJLrfvjtBBYGAb6MjlCLw8vJtrtWki69ZZYq+78J1wDnI0QEmQietuLteL/jffmbZHglHpY/zD7bnrxefTGAMrTb/U+05+f0mVHOrcy+VwkDN+19fyQyZ7XG+/fCdBY91UWsKZNWHHhpwZj1uCyDcp1wPt/sU9ReYYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736265254; c=relaxed/simple; bh=NZKrdXX7Nslq9MVCszlZQlEHWf2q5r0Mtn8YhyINxcw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=b0JzBbEuoUst9f9Z0f23VRVv7Lf/RieXR19vsC0KaVfNFGSCOOOPxxRZ2Tem0ErK8+R+RxPqNrEvuXRJi+BMhzVwQ0GWO3eVtI13kxJGjIw5+eyRN0Xa8KVAnUVmIANivnDj8ccQM3f8SXTeVwjuvc6lNTeCHsaIlPMdv00v7D4= 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 1tVBuB-00085a-1F; Tue, 07 Jan 2025 16:54:07 +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 1tVBu8-007MxW-1M; Tue, 07 Jan 2025 16:54:05 +0100 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1tVBu9-009bxi-0E; Tue, 07 Jan 2025 16:54:05 +0100 Date: Tue, 7 Jan 2025 16:54:05 +0100 From: Oleksij Rempel To: "Russell King (Oracle)" Cc: Kory Maincent , Maxime Chevallier , davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Herve Codina , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , Marek =?utf-8?B?QmVow7pu?= , =?utf-8?Q?Nicol=C3=B2?= Veronese , Simon Horman , mwojtas@chromium.org, Antoine Tenart Subject: Re: [PATCH net-next RFC 0/5] net: phy: Introduce a port representation Message-ID: References: <20241220201506.2791940-1-maxime.chevallier@bootlin.com> <20250107142605.6c605eaf@kmaincent-XPS-13-7390> 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 Tue, Jan 07, 2025 at 03:14:43PM +0000, Russell King (Oracle) wrote: > On Tue, Jan 07, 2025 at 03:02:46PM +0100, Oleksij Rempel wrote: > > On Tue, Jan 07, 2025 at 02:26:05PM +0100, Kory Maincent wrote: > > > On Thu, 2 Jan 2025 18:03:52 +0100 > > > Oleksij Rempel wrote: > > The IEEE 802.3 - 2022 has following variants: > > 14.5.2 Crossover function - only A<>B swap is supported > > 40.4.4 Automatic MDI/MDI-X Configuration - only A<>B swap is supported? > > 55.4.4 Automatic MDI/MDI-X configuration - 4 swap variants are supported > > 113.4.4 Automatic MDI/MDI-X configuration - 4 swap variants are supported > > 126.4.4 Automatic MDI/MDI-X configuration - 4 swap variants are supported > > > > This was only the pair swap. How to reflect the polarity swap withing > > the pairs? > > 802.3 supports this because of the problems caused by miswired cables, > which are typically a user thing. It's not really there to give freedom > to designers to wire their sockets incorrectly. > > Do we have any real cases where a socket has been wired incorrectly? Yes. I tested some low cost adapter using same driver but reporting incorrect results, depending on board. I can explain it only by incorrect PCB design. -- 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 |