Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: rfkill v9: fixes and thinkpad-acpi conversion
Date: Thu, 21 May 2009 12:52:02 +0200	[thread overview]
Message-ID: <1242903125.5471.56.camel@johannes.local> (raw)
In-Reply-To: <1242875059-9627-1-git-send-email-hmh@hmh.eng.br>

[-- Attachment #1: Type: text/plain, Size: 1752 bytes --]

On Thu, 2009-05-21 at 00:04 -0300, Henrique de Moraes Holschuh wrote:
> John,

I think you mean me ;)

> Here are two patches for the rfkill core rewrite, plus the thinkpad-acpi
> conversion.
> 
> Just fold them into your latest rfkill rewrite patch.

Done.

> HOWEVER, the thing doesn't work right.  Now, I am pretty sure I might have
> done something wrong somewhere in the thinkpad-acpi conversion (for
> example: the UWB switch never registers with its hw-block state right, but
> all others do), and I would appreciate if you could look it over and tell
> me what I am doing that upsets the core.

I don't see anything obviously wrong with the code. Can't say I
completely understand it though, and I don't seem to be able to decode
what it's doing with what feels like half an emulation layer for rfkill
inside the driver.

> The core might have some bugs left, too.  It seems to ignore set_sw_state
> changes, I can't see it reflected on rfkill/state, and it is _not_ because
> it is trying to set it back to whatever it wanted properly (or I'd get
> calls to the set_block hook).  Maybe it is something in my thinkpad-acpi
> conversion, though.

But you're not in hard block are you? The sysfs file works like this:
0  !hard, !soft
1  !hard, soft
2  hard, !soft AND hard, soft

> Anyway, the core needs proper coverage testing of its full functionality
> before it can be merged in mainline.  Just like you found that the old core
> never worked right for LEDs, the new rewrite was not processing any KEY_*
> input events, which is a quite important functionality...

Actually it was working for me for WLAN :) But that's because WLAN is
the first, as you found in input.c, thanks for that.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  parent reply	other threads:[~2009-05-21 10:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-21  3:04 rfkill v9: fixes and thinkpad-acpi conversion Henrique de Moraes Holschuh
2009-05-21  3:04 ` [PATCH 1/3] rfkill: add missing static Henrique de Moraes Holschuh
2009-05-21  3:04 ` [PATCH 2/3] rfkill: fix input event handling in rfkill conversion Henrique de Moraes Holschuh
2009-05-21  3:04 ` [PATCH 3/3] thinkpad-acpi: convert to new rfkill API Henrique de Moraes Holschuh
2009-05-21 10:52 ` Johannes Berg [this message]
2009-05-21 19:57 ` rfkill v9: fixes and thinkpad-acpi conversion Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1242903125.5471.56.camel@johannes.local \
    --to=johannes@sipsolutions.net \
    --cc=hmh@hmh.eng.br \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox