From: Gertjan van Wingerde Date: Fri, 31 Aug 2012 17:22:11 +0000 (+0200) Subject: rt2x00: Fix rfkill polling prior to interface start. X-Git-Tag: v3.2.30~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1a0322803c21b12abeb9070959d7aeb549634e4;p=pandora-kernel.git rt2x00: Fix rfkill polling prior to interface start. commit a396e10019eaf3809b0219c966865aaafec12630 upstream. 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 Signed-off-by: Gertjan van Wingerde Acked-by: Ivo Van Doorn Signed-off-by: John W. Linville Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed