]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'dsa-mv88e6xxx-g2-cleanup-stp'
authorDavid S. Miller <davem@davemloft.net>
Wed, 20 Jul 2016 02:42:02 +0000 (19:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Jul 2016 02:42:02 +0000 (19:42 -0700)
commit6af37140628d1a3aa4bb4c71b1cb5156db801ddc
tree25edd602c203442ec3fe5f74cb290b692742149f
parentdc3ce514711e2468f18e9b6e0492dec36e653c6d
parenta4cf7f9396ebc87008778e276183c22960bcad8f
Merge branch 'dsa-mv88e6xxx-g2-cleanup-stp'

Vivien Didelot says:

====================
net: dsa: mv88e6xxx: Global2 cleanup and STP

The Marvell switches registers are organized in distinct internal SMI
devices, such as PHY, Port, Global 1 or Global 2 registers sets.

Since not all chips support every registers sets or have slightly
differences in them (such as old 88E6060 or new 88E6390 likely to be
supported soon), make the setup code clearer now by removing a few
family checks and adding flags to describe the Global 2 registers map.

This patchset enables basic STP support and bridging on most chips when
getting rid of a few inconsistencies in chip descriptions (patch 1) and
add bridge Ageing Time support to DSA and the mv88e6xxx driver.

Changes v2 -> v3:
  - rename mv88e6xxx_update_write to mv88e6xxx_update
  - set fastest ageing time in use in the chip for multiple bridges,
    tested with a few printk

Changes v1 -> v2:
  - add a write helper for pointer-data Update registers
  - add ageing time support
====================

Signed-off-by: David S. Miller <davem@davemloft.net>