diff options
author | Christian Riesch <christian.riesch@omicron.at> | 2012-04-16 04:35:25 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-18 02:31:59 (GMT) |
commit | 5b76d0600b2b08eef77f8e9226938b7b6bde3099 (patch) | |
tree | e30784093458a10899489d2cced27eb3641074dd /drivers/virt | |
parent | cda31e10baf47a8a7d9360d9488fb76294be1ca3 (diff) | |
download | linux-fsl-qoriq-5b76d0600b2b08eef77f8e9226938b7b6bde3099.tar.xz |
davinci_mdio: Fix MDIO timeout check
Under heavy load (flood ping) it is possible for the MDIO timeout to
expire before the loop checks the GO bit again. This patch adds an
additional check whether the operation was done before actually
returning -ETIMEDOUT.
To reproduce this bug, flood ping the device, e.g., ping -f -l 1000
After some time, a "timed out waiting for user access" warning
may appear. And even worse, link may go down since the PHY reported a
timeout.
Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: <stable@vger.kernel.org>
Cc: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/virt')
0 files changed, 0 insertions, 0 deletions