[PATCH v2 1/2] net/fsl_pq_mdio: check TBI address for consistency with mapped range

David Miller davem at davemloft.net
Tue Oct 13 22:30:16 AEDT 2015


From: Gerlando Falauto <gerlando.falauto at keymile.com>
Date: Mon, 12 Oct 2015 09:18:40 +0200

> 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 at keymile.com>
> Cc: Timur Tabi <timur at tabi.org>
> Cc: David S. Miller <davem at davemloft.net>
> Cc: Kumar Gala <galak at kernel.crashing.org>
> ---
> Changes from v1:
> - Added type cast & fixed range
> - removed freescale recipients

Applied.


More information about the Linuxppc-dev mailing list