]> git.sur5r.net Git - u-boot/commit
MIIPHYBB: Return 0xFFFF if the PHY is not asserting TA.
authorRichard Retanubun <RichardRetanubun@RuggedCom.com>
Thu, 2 Jul 2009 17:21:22 +0000 (13:21 -0400)
committerBen Warren <biggerbadderben@gmail.com>
Thu, 23 Jul 2009 05:53:44 +0000 (22:53 -0700)
commit3f6b18ffd94621625de961bc566022b0266790f5
tree94ae090c1353ce752edc731c1a7e9d4d08c35e4f
parent736fead8fdbf8a8407048bebc373cd551d01ec98
MIIPHYBB: Return 0xFFFF if the PHY is not asserting TA.

This patch sets the returned value to 0xFFFF if the PHY does not exist
and does not assert Transfer Acknowledge. A NULL check for the value
pointer is also added for buffer overflow protection.

Without this patch 'mii info' will  show 'phantom' devices because the
value will be not be initialized and return with some random value.

Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
drivers/net/phy/miiphybb.c