]> git.baikalelectronics.ru Git - kernel.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)
commit050c9831b0532df7d7e5146a8a08c15324a4f31d
tree7d3e9e3d0a9d219d92090a4476c96c0adb6abd6b
parent22b9cf3afe58e9c32d618db0f7907c44b467cb2a
parent294256c6e6592e278dd3f8e575a706a77f2b2082
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>