diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2012-08-31 19:22:11 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-09-05 14:53:36 -0400 |
commit | a396e10019eaf3809b0219c966865aaafec12630 (patch) | |
tree | 5cb623e3695bb2e504afe121866007d8aa2478d3 /drivers/net/wireless/rt2x00/rt2400pci.h | |
parent | 6ced58a5dbb94dbfbea1b33ca3c56d1e929cd548 (diff) | |
download | op-kernel-dev-a396e10019eaf3809b0219c966865aaafec12630.zip op-kernel-dev-a396e10019eaf3809b0219c966865aaafec12630.tar.gz |
rt2x00: Fix rfkill polling prior to interface start.
We need to program the rfkill switch GPIO pin direction to input at
device initialization time, not only when the interface is brought up.
Doing this only when the interface is brought up could lead to rfkill
detecting the switch is turned on erroneously and inability to create
the interface and bringing it up.
Reported-and-tested-by: Andreas Messer <andi@bastelmap.de>
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Cc: <stable@vger.kernel.org>
Acked-by: Ivo Van Doorn <ivdoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2400pci.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2400pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.h b/drivers/net/wireless/rt2x00/rt2400pci.h index d3a4a68..7564ae9 100644 --- a/drivers/net/wireless/rt2x00/rt2400pci.h +++ b/drivers/net/wireless/rt2x00/rt2400pci.h @@ -670,6 +670,7 @@ #define GPIOCSR_BIT5 FIELD32(0x00000020) #define GPIOCSR_BIT6 FIELD32(0x00000040) #define GPIOCSR_BIT7 FIELD32(0x00000080) +#define GPIOCSR_BIT8 FIELD32(0x00000100) /* * BBPPCSR: BBP Pin control register. |