]> git.baikalelectronics.ru Git - kernel.git/commit
b43legacy: avoid PPC fault during resume
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 24 Nov 2009 00:42:36 +0000 (18:42 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 4 Dec 2009 18:28:50 +0000 (13:28 -0500)
commit093108dfcac993859fd82fffbe3f10e677b9635e
tree03c864dc62ad4b7aa72bfb9e2b0a916bec056268
parentd9ed868afd30804687237596d254bfbb737816a8
b43legacy: avoid PPC fault during resume

For PPC architecture with PHY Revision < 3, a read of the register
B43_MMIO_HWENABLED_LO will cause a CPU fault unless b43legacy_status()
returns a value of 2 (B43legacy_STAT_STARTED); however, one finds that
the driver is unable to associate after resuming from hibernation unless
this routine returns 1. To satisfy both conditions, the routine is rewritten
to return TRUE whenever b43legacy_status() returns a value < 2.

This patch fixes the second problem listed in the postings for Red Hat
Bugzilla #538523.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43legacy/rfkill.c