OSDN Git Service

amd-xgbe-phy: Updates to rate change complete check
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Tue, 29 Jul 2014 13:57:37 +0000 (08:57 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Jul 2014 01:46:53 +0000 (18:46 -0700)
commit169a6303b89a99c807328f6f9772a81605b17116
treead517fe0043d5ed6e3f0db706bda004411a40736
parent853eb16b8b6a347315443f2ef010e5b97d8c1577
amd-xgbe-phy: Updates to rate change complete check

Currently, the logic will loop endlessly waiting for a rate change
to complete.  Add a counter so that if the rate change signals
never indicate complete the loop will eventually exit.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/amd-xgbe-phy.c