]> git.baikalelectronics.ru Git - kernel.git/commit
net/fsl_pq_mdio: check TBI address for consistency with mapped range
authorGerlando Falauto <gerlando.falauto@keymile.com>
Mon, 12 Oct 2015 07:18:40 +0000 (09:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Oct 2015 11:29:54 +0000 (04:29 -0700)
commit0766ca370433213b22825e854d5073f83a4aad02
treebb27be497f95f01a2aa2e3c5b4d0e4f0b418da42
parent96ab9f752d8d63e9344b2505f429066a1a238cc4
net/fsl_pq_mdio: check TBI address for consistency with mapped range

When configuring the MDIO subsystem it is also necessary to configure
the TBI register. Make sure the TBI is contained within the mapped
register range in order to:
a) make sure the address is computed correctly
b) make users aware that we're actually accessing that register

In case of error, print a message but continue anyway.

Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Cc: Timur Tabi <timur@tabi.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fsl_pq_mdio.c