]> 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)
commitdd6c912058fcc2f2c5fb9f5433f0a3775aacd94d
tree7d3e9e3d0a9d219d92090a4476c96c0adb6abd6b
parent674955d58da3248d1a7aecab9af5b518a4263bfb
parente8c577f56718af74595c97ad82f6e54044bd1409
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>