netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/7] net: dsa: mv88e6xxx: factorize switch info
@ 2016-04-15 23:21 Vivien Didelot
  2016-04-15 23:21 ` [PATCH net-next v2 1/7] net: dsa: mv88e6xxx: drop double ds assignment Vivien Didelot
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Vivien Didelot @ 2016-04-15 23:21 UTC (permalink / raw)
  To: netdev
  Cc: linux-kernel, kernel, David S. Miller, Florian Fainelli,
	Andrew Lunn, Vivien Didelot

This patchset factorizes the mv88e6xxx code by sharing a new extendable
info structure to store static data such as switch family, product
number, number of ports, number of databases and the name.

The next step is to add a "flags" bitmap member to the info structure in
order to simplify the shared code with a feature-based logic instead of
checking their family/ID.

This is a step forward having a single mv88e6xxx driver supporting many
similar devices, like any usual Linux driver.

Changes v1 -> v2:
  - define PORT_SWITCH_ID_PROD_NUM_* values
  - use plain struct mv88e6xxx_info
  - remove non used yet ps->rev

Vivien Didelot (7):
  net: dsa: mv88e6xxx: drop double ds assignment
  net: dsa: mv88e6xxx: drop revision probing
  net: dsa: mv88e6xxx: add switch info
  net: dsa: mv88e6xxx: add family to info
  net: dsa: mv88e6xxx: add number of ports to info
  net: dsa: mv88e6xxx: add number of db to info
  net: dsa: mv88e6xxx: remove switch ID

 drivers/net/dsa/mv88e6123.c |  45 +++++-----
 drivers/net/dsa/mv88e6131.c |  53 ++++++------
 drivers/net/dsa/mv88e6171.c |  36 +++++---
 drivers/net/dsa/mv88e6352.c |  55 ++++++++----
 drivers/net/dsa/mv88e6xxx.c | 200 ++++++++++++--------------------------------
 drivers/net/dsa/mv88e6xxx.h |  92 +++++++++-----------
 6 files changed, 203 insertions(+), 278 deletions(-)

-- 
2.8.0

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

end of thread, other threads:[~2016-04-16  0:03 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-15 23:21 [PATCH net-next v2 0/7] net: dsa: mv88e6xxx: factorize switch info Vivien Didelot
2016-04-15 23:21 ` [PATCH net-next v2 1/7] net: dsa: mv88e6xxx: drop double ds assignment Vivien Didelot
2016-04-15 23:39   ` Andrew Lunn
2016-04-15 23:21 ` [PATCH net-next v2 2/7] net: dsa: mv88e6xxx: drop revision probing Vivien Didelot
2016-04-15 23:43   ` Andrew Lunn
2016-04-15 23:21 ` [PATCH net-next v2 3/7] net: dsa: mv88e6xxx: add switch info Vivien Didelot
2016-04-15 23:55   ` Andrew Lunn
2016-04-15 23:21 ` [PATCH net-next v2 4/7] net: dsa: mv88e6xxx: add family to info Vivien Didelot
2016-04-15 23:57   ` Andrew Lunn
2016-04-15 23:21 ` [PATCH net-next v2 5/7] net: dsa: mv88e6xxx: add number of ports " Vivien Didelot
2016-04-15 23:59   ` Andrew Lunn
2016-04-15 23:21 ` [PATCH net-next v2 6/7] net: dsa: mv88e6xxx: add number of db " Vivien Didelot
2016-04-16  0:01   ` Andrew Lunn
2016-04-15 23:21 ` [PATCH net-next v2 7/7] net: dsa: mv88e6xxx: remove switch ID Vivien Didelot
2016-04-16  0:03   ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).