lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220407225023.3510609-1-andrew@lunn.ch>
Date:   Fri,  8 Apr 2022 00:50:18 +0200
From:   Andrew Lunn <andrew@...n.ch>
To:     netdev <netdev@...r.kernel.org>
Cc:     Vladimir Oltean <vladimir.oltean@....com>,
        Florian Fainelli <f.fainelli@...il.com>,
        Jose Abreu <Jose.Abreu@...opsys.com>,
        Heiner Kallweit <hkallweit1@...il.com>,
        Russell King <rmk+kernel@...linux.org.uk>,
        bcm-kernel-feedback-list@...adcom.com, Andrew Lunn <andrew@...n.ch>
Subject: [PATCH v0 RFC RFT net-next 0/5] Use MMD/C45 helpers

MDIO busses can perform two sorts of bus transaction, defined in
clause 22 and clause 45 of 802.3. This results in two register
addresses spaces. The current driver structure for indicating if C22
or C45 should be used is messy, and many C22 only bus drivers will
wrongly interpret a C45 transaction as a C22 transaction.

This patchset is a preparation step to cleanup the situation. It
converts MDIO bus users to make use of existing _mmd and _c45 helpers
to perform accesses to C45 registers. This will later allow C45 and
C22 to be kept separate.

I don't have any of this hardware, so request testing where possible.

Andrew Lunn (5):
  net: phylink: Convert to mdiobus_c45_{read|write}
  net: phy: Convert to mdiobus_c45_{read|write}
  net: phy: bcm87xx: Use mmd helpers
  net: dsa: sja1105: Convert to mdiobus_c45_read
  net: pcs: pcs-xpcs: Convert to mdiobus_c45_read

 drivers/net/dsa/sja1105/sja1105_main.c |  5 ++--
 drivers/net/pcs/pcs-xpcs.c             |  6 ++---
 drivers/net/phy/bcm87xx.c              |  5 ++--
 drivers/net/phy/phy.c                  | 18 +++++++++------
 drivers/net/phy/phylink.c              | 32 ++++++++++++++------------
 5 files changed, 34 insertions(+), 32 deletions(-)

-- 
2.35.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ