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]
Date:   Tue, 27 Sep 2022 22:15:15 +0300
From:   Vladimir Oltean <>
Cc:     Andrew Lunn <>,
        Vivien Didelot <>,
        Florian Fainelli <>,
        Claudiu Manoil <>,
        Alexandre Belloni <>,,
        "David S. Miller" <>,
        Eric Dumazet <>,
        Jakub Kicinski <>,
        Paolo Abeni <>,
        Colin Foster <>,
        Maxim Kochetkov <>
Subject: [PATCH net-next 0/5] Rework resource allocation in Felix DSA driver

The Felix DSA driver controls NXP variations of Microchip switches.
Colin Foster is trying to add support in this driver for "genuine"
Microchip hardware, but some of the NXP-isms in this driver need to go
away before that happens cleanly.

The starting point was Colin's patch 08/14 "net: dsa: felix: update
init_regmap to be string-based", and this continues to be the central
theme here, but things are done differently.

In short (full explanations are in patches), the goal is for MFD-based
switches like Colin's SPI-controlled VSC7512 to be able to request a
regmap that was created 100% externally (by drivers/mfd/ocelot-core.c)
in a very simple way, that does not create dependencies on other
modules. That is dev_get_regmap(), and as input it wants a string, for
the resource name. So we rework the resource allocation in this driver
to be based on string names provided by the specific instantiation (in
Colin's case, ocelot_ext.c).

Patch set was boot-tested on NXP LS1028A.

Vladimir Oltean (5):
  net: dsa: felix: remove felix_info :: imdio_res
  net: dsa: felix: remove felix_info :: imdio_base
  net: dsa: felix: remove felix_info :: init_regmap
  net: dsa: felix: use DEFINE_RES_MEM_NAMED for resources
  net: dsa: felix: update regmap requests to be string-based

 drivers/net/dsa/ocelot/felix.c           |  73 ++++++++----
 drivers/net/dsa/ocelot/felix.h           |  13 ++-
 drivers/net/dsa/ocelot/felix_vsc9959.c   | 136 +++++++---------------
 drivers/net/dsa/ocelot/seville_vsc9953.c | 140 ++++++-----------------
 4 files changed, 133 insertions(+), 229 deletions(-)


Powered by blists - more mailing lists