]> git.baikalelectronics.ru Git - kernel.git/commit
net/fsl_pq_mdio: Allow explicit speficition of TBIPA address
authorEsben Haabendal <eha@deif.com>
Fri, 6 Apr 2018 12:38:34 +0000 (14:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Apr 2018 16:44:49 +0000 (12:44 -0400)
commit8dfdb7a2407b116fae4ea7a9ebcd3d6334ccabc3
treef80e863cb9606d77dfdccde878c01cefff64563a
parent8b36a50e452be451b0b403cd8560e93c7b4ff11e
net/fsl_pq_mdio: Allow explicit speficition of TBIPA address

This introduces a simpler and generic method for for finding (and mapping)
the TBIPA register.

Instead of relying of complicated logic for finding the TBIPA register
address based on the MDIO or MII register block base
address, which even in some cases relies on undocumented shadow registers,
a second "reg" entry for the mdio bus devicetree node specifies the TBIPA
register.

Backwards compatibility is kept, as the existing logic is applied when
only a single "reg" mapping is specified.

Signed-off-by: Esben Haabendal <eha@deif.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/fsl-tsec-phy.txt
drivers/net/ethernet/freescale/fsl_pq_mdio.c