]> www.infradead.org Git - users/willy/xarray.git/commit
Merge branch 'rework-resource-allocation-in-felix-dsa-driver'
authorJakub Kicinski <kuba@kernel.org>
Thu, 29 Sep 2022 02:15:29 +0000 (19:15 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 29 Sep 2022 02:15:30 +0000 (19:15 -0700)
commit8278ddb16156c4aafc53e26ad6b18a76e9b86c8a
tree7d3e9e3d0a9d219d92090a4476c96c0adb6abd6b
parentb48b89f9c189d24eb5e2b4a0ac067da5a24ee86d
parent1109b97b6161307cdd78e13b2c24cf2f7af4fe5b
Merge branch 'rework-resource-allocation-in-felix-dsa-driver'

Vladimir Oltean says:

====================
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.
https://patchwork.kernel.org/project/netdevbpf/cover/20220926002928.2744638-1-colin.foster@in-advantage.com/

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.
====================

Link: https://lore.kernel.org/r/20220927191521.1578084-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>