<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/net/rfkill, branch v2.6.28.10</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/net/rfkill?h=v2.6.28.10</id>
<link rel='self' href='https://git.amat.us/linux/atom/net/rfkill?h=v2.6.28.10'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2008-11-06T21:37:09Z</updated>
<entry>
<title>Fix logic error in rfkill_check_duplicity</title>
<updated>2008-11-06T21:37:09Z</updated>
<author>
<name>Jonathan McDowell</name>
<email>noodles@earth.li</email>
</author>
<published>2008-10-30T22:46:48Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4a9d916717de0aab4313d43817164577255242fb'/>
<id>urn:sha1:4a9d916717de0aab4313d43817164577255242fb</id>
<content type='text'>
&gt; I'll have a prod at why the [hso] rfkill stuff isn't working next

Ok, I believe this is due to the addition of rfkill_check_duplicity in
rfkill and the fact that test_bit actually returns a negative value
rather than the postive one expected (which is of course equally true).
So when the second WLAN device (the hso device, with the EEE PC WLAN
being the first) comes along rfkill_check_duplicity returns a negative
value and so rfkill_register returns an error. Patch below fixes this
for me.

Signed-Off-By: Jonathan McDowell &lt;noodles@earth.li&gt;
Acked-by: Henrique de Moraes Holschuh &lt;hmh@hmh.eng.br&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>RFKILL: fix input layer initialisation</title>
<updated>2008-10-27T21:46:11Z</updated>
<author>
<name>Dmitry Baryshkov</name>
<email>dbaryshkov@gmail.com</email>
</author>
<published>2008-10-22T16:52:55Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d8b105f900d93bd103c002bf4c923f50f16c5441'/>
<id>urn:sha1:d8b105f900d93bd103c002bf4c923f50f16c5441</id>
<content type='text'>
Initialise correctly last fields, so tasks can be actually executed.
On some architectures the initial jiffies value is not zero, so later
all rfkill incorrectly decides that rfkill_*.last is in future.

Signed-off-by: Dmitry Baryshkov &lt;dbaryshkov@gmail.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>net/rfkill/rfkill-input.c needs &lt;linux/sched.h&gt;</title>
<updated>2008-10-14T17:23:27Z</updated>
<author>
<name>Geert Uytterhoeven</name>
<email>geert@linux-m68k.org</email>
</author>
<published>2008-10-13T19:59:03Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=56f26f7b78af36d0f048a9403084870d2ffb549f'/>
<id>urn:sha1:56f26f7b78af36d0f048a9403084870d2ffb549f</id>
<content type='text'>
For some m68k configs, I get:

| net/rfkill/rfkill-input.c: In function 'rfkill_start':
| net/rfkill/rfkill-input.c:208: error: dereferencing pointer to incomplete type

As the incomplete type is `struct task_struct', including &lt;linux/sched.h&gt; fixes
it.

Signed-off-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>rfkill: update LEDs for all state changes</title>
<updated>2008-10-06T22:14:57Z</updated>
<author>
<name>Henrique de Moraes Holschuh</name>
<email>hmh@hmh.eng.br</email>
</author>
<published>2008-10-03T19:58:05Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=417bd25ac4c6f76c8aafe8a584f3620f4a936b72'/>
<id>urn:sha1:417bd25ac4c6f76c8aafe8a584f3620f4a936b72</id>
<content type='text'>
The LED state was not being updated by rfkill_force_state(), which
will cause regressions in wireless drivers that had old-style rfkill
support and are updated to use rfkill_force_state().

The LED state was not being updated when a change was detected through
the rfkill-&gt;get_state() hook, either.

Move the LED trigger update calls into notify_rfkill_state_change(),
where it should have been in the first place.  This takes care of both
issues above.

Signed-off-by: Henrique de Moraes Holschuh &lt;hmh@hmh.eng.br&gt;
Acked-by: Ivo van Doorn &lt;IvDoorn@gmail.com&gt;
Cc: stable@kernel.org
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>rfkill: remove transmitter blocking on suspend</title>
<updated>2008-09-15T20:48:25Z</updated>
<author>
<name>Henrique de Moraes Holschuh</name>
<email>hmh@hmh.eng.br</email>
</author>
<published>2008-08-26T14:58:01Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=bed7aac9416f50425d2200df32bcc9bf248ff8cb'/>
<id>urn:sha1:bed7aac9416f50425d2200df32bcc9bf248ff8cb</id>
<content type='text'>
Currently, rfkill would stand in the way of properly supporting wireless
devices that are capable of waking the system up from sleep or hibernation
when they receive a special wireless message.  It would also get in the way
of mesh devices that need to remain operational even during platform
suspend.

To avoid that, stop trying to block the transmitters on the rfkill class
suspend handler.

Drivers that need rfkill's older behaviour will have to implement it by
themselves in their own suspend handling.

Do note that rfkill *will* attempt to restore the transmitter state on
resume in any situation.  This happens after the driver's resume method is
called by the suspend core (class devices resume after the devices they are
attached to have been resumed).

The following drivers need to check if they need to explicitly block
their transmitters in their own suspend handlers (maintainers Cc'd):
	arch/arm/mach-pxa/tosa-bt.c
	drivers/net/usb/hso.c
	drivers/net/wireless/rt2x00/* (USB might need it?)
	drivers/net/wireless/b43/ (SSB over USB might need it?)
	drivers/misc/hp-wmi.c
	eeepc-laptop w/rfkill support (not in mainline yet)
	Compal laptop w/rfkill support (not in mainline yet)
	toshiba-acpi w/rfkill support (not in mainline yet)

Signed-off-by: Henrique de Moraes Holschuh &lt;hmh@hmh.eng.br&gt;
Cc: Ivo van Doorn &lt;IvDoorn@gmail.com&gt;
Cc: Matthew Garrett &lt;mjg@redhat.com&gt;
Cc: Andrew Bird &lt;ajb@spheresystems.co.uk&gt;
Cc: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
Cc: Cezary Jackiewicz &lt;cezary.jackiewicz@gmail.com&gt;
Cc: Philip Langdale &lt;philipl@overt.org&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>rfkill: rename rfkill_mutex to rfkill_global_mutex</title>
<updated>2008-08-29T20:24:11Z</updated>
<author>
<name>Henrique de Moraes Holschuh</name>
<email>hmh@hmh.eng.br</email>
</author>
<published>2008-08-26T14:58:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=15635744484d4255778fc641261be27179c51f9a'/>
<id>urn:sha1:15635744484d4255778fc641261be27179c51f9a</id>
<content type='text'>
rfkill_mutex and rfkill-&gt;mutex are too easy to confuse with each other.

Rename rfkill_mutex to rfkill_global_mutex, so that they are easier to tell
apart with just one glance.

Signed-off-by: Henrique de Moraes Holschuh &lt;hmh@hmh.eng.br&gt;
Acked-by: Ivo van Doorn &lt;IvDoorn@gmail.com&gt;
Cc: Michael Buesch &lt;mb@bu3sch.de&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>rfkill: add WARN and BUG_ON paranoia (v2)</title>
<updated>2008-08-29T20:24:10Z</updated>
<author>
<name>Henrique de Moraes Holschuh</name>
<email>hmh@hmh.eng.br</email>
</author>
<published>2008-08-26T14:57:59Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f745ba03a12a1c4b98a88a96ab39d9b58ac677a2'/>
<id>urn:sha1:f745ba03a12a1c4b98a88a96ab39d9b58ac677a2</id>
<content type='text'>
BUG_ON() and WARN() the heck out of buggy drivers calling into the rfkill
subsystem.

Also switch from WARN_ON(1) to the new descriptive WARN().

Signed-off-by: Henrique de Moraes Holschuh &lt;hmh@hmh.eng.br&gt;
Acked-by: Ivo van Doorn &lt;IvDoorn@gmail.com&gt;
Cc: Johannes Berg &lt;johannes@sipsolutions.net&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>rfkill: add missing line break</title>
<updated>2008-08-29T20:24:10Z</updated>
<author>
<name>Felipe Balbi</name>
<email>felipe.balbi@nokia.com</email>
</author>
<published>2008-08-26T14:57:58Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=01b510b9c29caf2134c31d2bc8c2c5cc73987eb6'/>
<id>urn:sha1:01b510b9c29caf2134c31d2bc8c2c5cc73987eb6</id>
<content type='text'>
Trivial patch adding a missing line break on
rfkill_claim_show().

Signed-off-by: Felipe Balbi &lt;felipe.balbi@nokia.com&gt;
Acked-by: Henrique de Moraes Holschuh &lt;hmh@hmh.eng.br&gt;
Acked-by: Ivo van Doorn &lt;IvDoorn@gmail.co&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>rfkill: use strict_strtoul (v2)</title>
<updated>2008-08-29T20:24:10Z</updated>
<author>
<name>Henrique de Moraes Holschuh</name>
<email>hmh@hmh.eng.br</email>
</author>
<published>2008-08-26T14:57:57Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=849e0576a76bc421aacd782f97948856f487726c'/>
<id>urn:sha1:849e0576a76bc421aacd782f97948856f487726c</id>
<content type='text'>
Switch sysfs parsing to something that actually works properly.

Signed-off-by: Henrique de Moraes Holschuh &lt;hmh@hmh.eng.br&gt;
Acked-by: Ivo van Doorn &lt;IvDoorn@gmail.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>rfkill: introduce RFKILL_STATE_MAX</title>
<updated>2008-08-22T20:29:57Z</updated>
<author>
<name>Henrique de Moraes Holschuh</name>
<email>hmh@hmh.eng.br</email>
</author>
<published>2008-08-02T18:11:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=96c87607ac8f9b0e641d11ba6e57f8ec0214ea1c'/>
<id>urn:sha1:96c87607ac8f9b0e641d11ba6e57f8ec0214ea1c</id>
<content type='text'>
While it is interesting to not add last-enum-markers because it allows gcc
to warn us of switch() statements missing a valid state, we really should
be handling memory corruption on a rfkill state with default clauses,
anyway.

So add RFKILL_STATE_MAX and use it where applicable.  It makes for safer
code in the long run.

Signed-off-by: Henrique de Moraes Holschuh &lt;hmh@hmh.eng.br&gt;
Acked-by: Ivo van Doorn &lt;IvDoorn@gmail.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
</feed>
