These two patches are a couple of preparation steps for supporting the
the MV88E6390 family of chips. This is a new generation from Marvell,
and will need more feature flags than are currently available in an
unsigned long. Expand to an unsigned long long. The MV88E6390 also
places its port registers somewhere else, so add a wrapper around port
register access.
v2:
Rework wrappers to use mv88e6xxx_{read|write}
Simpliy some (err < ) to (err)
Add Reviewed by tag.
v3::
reg = reg & foo -> reg &= foo
Fix over zealous s/ret/err
Andrew Lunn (2):
net: dsa: mv88e6xxx: Add helper for accessing port registers
net: dsa: mv88e6xxx: Convert flag bits to unsigned long long
drivers/net/dsa/mv88e6xxx/chip.c | 370 +++++++++++++++++-----------------
drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 63 +++---
2 files changed, 213 insertions(+), 220 deletions(-)
--
2.9.3