Re: [PATCH] davinci_mdio: Fix MDIO timeout check

2012-04-17 Thread David Miller
From: Christian Riesch christian.rie...@omicron.at Date: Mon, 16 Apr 2012 16:35:25 +0200 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

[PATCH] davinci_mdio: Fix MDIO timeout check

2012-04-16 Thread Christian Riesch
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