public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-net v2 0/7] net: dsa: lantiq_gswip: use regmap for register access
@ 2025-10-18  2:30 Daniel Golle
  2025-10-18  2:30 ` [PATCH net-net v2 1/7] net: dsa: lantiq_gswip: clarify GSWIP 2.2 VLAN mode in comment Daniel Golle
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Daniel Golle @ 2025-10-18  2:30 UTC (permalink / raw)
  To: Hauke Mehrtens, Andrew Lunn, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Russell King, netdev,
	linux-kernel
  Cc: Andreas Schirm, Lukas Stockmann, Alexander Sverdlin,
	Peter Christen, Avinash Jayaraman, Bing tao Xu, Liang Xu,
	Juraj Povazanec, Fanni (Fang-Yi) Chan, Benny (Ying-Tsan) Weng,
	Livia M. Rosu, John Crispin

This series refactors the lantiq_gswip driver to utilize the regmap API
for register access, replacing the previous approach of open-coding
register operations.

Using regmap paves the way for supporting different busses to access the
switch registers, for example it makes it easier to use an MDIO-based
method required to access the registers of the MaxLinear GSW1xx series
of dedicated switch ICs.

Apart from that, the use of regmap improves readability and
maintainability of the driver by standardizing register access.

When ever possible changes were made using Coccinelle semantic patches,
sometimes adjusting white space and adding line breaks when needed.
The remaining changes which were not done using semantic patches are
small and should be easy to review and verify.

The series was previously posted as RFC[1], changes since the RFC/v1
version are documented in each changed patch.

[1]: https://patchwork.kernel.org/project/netdevbpf/list/?series=998183&state=*

Daniel Golle (7):
  net: dsa: lantiq_gswip: clarify GSWIP 2.2 VLAN mode in comment
  net: dsa: lantiq_gswip: convert accessors to use regmap
  net: dsa: lantiq_gswip: convert trivial accessor uses to regmap
  net: dsa: lantiq_gswip: manually convert remaining uses of read
    accessors
  net: dsa: lantiq_gswip: replace *_mask() functions with regmap API
  net: dsa: lantiq_gswip: optimize regmap_write_bits() statements
  net: dsa: lantiq_gswip: harmonize gswip_mii_mask_*() parameters

 drivers/net/dsa/lantiq/Kconfig        |   1 +
 drivers/net/dsa/lantiq/lantiq_gswip.c | 458 +++++++++++++-------------
 drivers/net/dsa/lantiq/lantiq_gswip.h |   6 +-
 3 files changed, 239 insertions(+), 226 deletions(-)

-- 
2.51.1.dirty

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-10-18  8:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-18  2:30 [PATCH net-net v2 0/7] net: dsa: lantiq_gswip: use regmap for register access Daniel Golle
2025-10-18  2:30 ` [PATCH net-net v2 1/7] net: dsa: lantiq_gswip: clarify GSWIP 2.2 VLAN mode in comment Daniel Golle
2025-10-18  2:31 ` [PATCH net-net v2 2/7] net: dsa: lantiq_gswip: convert accessors to use regmap Daniel Golle
2025-10-18  8:38   ` Maxime Chevallier
2025-10-18  2:32 ` [PATCH net-net v2 3/7] net: dsa: lantiq_gswip: convert trivial accessor uses to regmap Daniel Golle
2025-10-18  2:33 ` [PATCH net-net v2 4/7] net: dsa: lantiq_gswip: manually convert remaining uses of read accessors Daniel Golle
2025-10-18  2:33 ` [PATCH net-net v2 5/7] net: dsa: lantiq_gswip: replace *_mask() functions with regmap API Daniel Golle
2025-10-18  2:33 ` [PATCH net-net v2 6/7] net: dsa: lantiq_gswip: optimize regmap_write_bits() statements Daniel Golle
2025-10-18  2:33 ` [PATCH net-net v2 7/7] net: dsa: lantiq_gswip: harmonize gswip_mii_mask_*() parameters Daniel Golle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox