]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bcmgenet-utilize-MDIO-unimac-driver'
authorDavid S. Miller <davem@davemloft.net>
Mon, 31 Jul 2017 21:40:59 +0000 (14:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Jul 2017 21:40:59 +0000 (14:40 -0700)
commit1804e53d98e990b210b02b3d0326d20be3f3c29d
tree492f1691b1214fe2d23d550df9a8d4b4f7c2e170
parent075e57f2c264ffc96c8c73360fb20be7d7c8865e
parent756c9f415e02cbc8faf1a47b5af3464b0f6660f6
Merge branch 'bcmgenet-utilize-MDIO-unimac-driver'

Florian Fainelli says:

====================
net: bcmgenet: utilize MDIO unimac driver

This patch series migrates the Broadcom GENET driver to use the mdio-bcm-unimac
driver. This MDIO HW is the same as the one GENET internally embedds, yet for
historical reasons the two drivers lived their own lives. Because of the GENET
interrupt situation, we let it specify how it wants to signal MDIO operations
completion using its driver-private waitqueue.

The diffstat is not super impressive, but it's still negative! This would
make it easier in the future to absorb possible workarounds/bugs/features
within the same location.

This was tested on BCM7260 (GENETv5, single instance), BCM7439 (GENETv4, triple
instance) and BCM7445 (bcm_sf2 + mdio-bcm-unimac).

We also now have a nice /proc/iomem output:

f0b00000-f0b0fc4b : /rdb/ethernet@f0b00000
  f0b00e14-f0b00e1c : unimac-mdio.0
f0b20000-f0b2fc4b : /rdb/ethernet@f0b20000
  f0b20e14-f0b20e1c : unimac-mdio.1
f0b40000-f0b4fc4b : /rdb/ethernet@f0b40000
  f0b40e14-f0b40e1c : unimac-mdio.2
====================

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