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: <20240104140037.374166-1-vladimir.oltean@nxp.com>
Date: Thu,  4 Jan 2024 16:00:27 +0200
From: Vladimir Oltean <vladimir.oltean@....com>
To: netdev@...r.kernel.org
Cc: "David S. Miller" <davem@...emloft.net>,
	Eric Dumazet <edumazet@...gle.com>,
	Jakub Kicinski <kuba@...nel.org>,
	Paolo Abeni <pabeni@...hat.com>,
	Andrew Lunn <andrew@...n.ch>,
	Florian Fainelli <f.fainelli@...il.com>,
	Luiz Angelo Daros de Luca <luizluca@...il.com>,
	Alvin Šipraga <alsi@...g-olufsen.dk>,
	Linus Walleij <linus.walleij@...aro.org>,
	Florian Fainelli <florian.fainelli@...adcom.com>,
	Hauke Mehrtens <hauke@...ke-m.de>,
	Christian Marangi <ansuelsmth@...il.com>,
	Arınç ÜNAL <arinc.unal@...nc9.com>
Subject: [PATCH net-next 00/10] ds->user_mii_bus cleanup (part 1)

There are some drivers which assign ds->user_mii_bus when they
don't really need its specific functionality, aka non-OF based
dsa_user_phy_connect(). There was some confusion regarding the
fact that yes, this is why ds->user_mii_bus really exists, so
I've started a cleanup series which aims to eliminate the usage
of ds->user_mii_bus from drivers when there is nothing to gain
from it.

Today's drivers are lantiq_gswip, qca8k and bcm_sf2. The work is
not done here, but a "part 2" may or may not come, depending on
other priorities.

All patches were only compile-tested.

Vladimir Oltean (10):
  net: dsa: lantiq_gswip: delete irrelevant use of ds->phys_mii_mask
  net: dsa: lantiq_gswip: use devres for internal MDIO bus, not
    ds->user_mii_bus
  net: dsa: lantiq_gswip: ignore MDIO buses disabled in OF
  net: dsa: qca8k: put MDIO bus OF node on qca8k_mdio_register() failure
  net: dsa: qca8k: skip MDIO bus creation if its OF node has status =
    "disabled"
  net: dsa: qca8k: assign ds->user_mii_bus only for the non-OF case
  net: dsa: qca8k: consolidate calls to a single
    devm_of_mdiobus_register()
  net: dsa: qca8k: use "dev" consistently within qca8k_mdio_register()
  net: dsa: bcm_sf2: stop assigning an OF node to the ds->user_mii_bus
  net: dsa: bcm_sf2: drop priv->master_mii_dn

 drivers/net/dsa/bcm_sf2.c        |  7 ++--
 drivers/net/dsa/bcm_sf2.h        |  1 -
 drivers/net/dsa/lantiq_gswip.c   | 72 ++++++++++++++------------------
 drivers/net/dsa/qca/qca8k-8xxx.c | 47 +++++++++++++--------
 drivers/net/dsa/qca/qca8k-leds.c |  4 +-
 drivers/net/dsa/qca/qca8k.h      |  1 +
 6 files changed, 68 insertions(+), 64 deletions(-)

-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ