From: Matt Carlson Date: Wed, 22 Feb 2012 12:35:20 +0000 (+0000) Subject: tg3: Clear RECOVERY_PENDING with reset_task_cancel X-Git-Tag: v3.4-rc1~177^2~223 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c71013597d49c7ca8bb5049f0c7873df2643fad5;p=pandora-kernel.git tg3: Clear RECOVERY_PENDING with reset_task_cancel If an error happens in the tx completion thread, tg3_reset_task will be scheduled and TX_RECOVERY_PENDING will be set. The TX_RECOVERY_PENDING flag causes tg3_poll[_msix] to return early before doing much of its work. Tg3_reset_task() gets canceled when the configuration of the device is changing, which always results in a chip reset. When this happens, the TX_RECOVERY_PENDING flag may be left set, which would unnecessarily hinder tg3_poll from doing work. This patch fixes the problem. Signed-off-by: Matt Carlson Signed-off-by: David S. Miller --- Reading git-diff-tree failed