From: Darren Hart <dvhart@infradead.org>
To: "Maciej S. Szmigiero" <mail@maciej.szmigiero.name>
Cc: platform-driver-x86@vger.kernel.org,
linux-kernel <linux-kernel@vger.kernel.org>,
"Trepák Vilmos" <trepo@netcomga.sk>
Subject: Re: [PATCH 2/2] hp-wmi: remove GPS rfkill support via pre-2009 interface
Date: Tue, 8 Mar 2016 05:11:31 -0800 [thread overview]
Message-ID: <20160308131131.GD31742@dvhart-mobl5.amr.corp.intel.com> (raw)
In-Reply-To: <56DCB1D3.9070403@maciej.szmigiero.name>
On Sun, Mar 06, 2016 at 11:40:19PM +0100, Maciej S. Szmigiero wrote:
> GPS rfkill support via pre-2009 WMI interface uses
> hp_wmi_get_sw_state() and hp_wmi_get_hw_state()
> to query its current hard and soft block state,
> respectively.
>
> In hp_wmi_get_sw_state() a mask is calculated which
> bit should be checked in an int value returned by
> firmware to get current block state:
> 0x200 << (r * 8) which with r being 3 for GPS
> results in overflow and mask of zero.
> The same goes for hp_wmi_get_hw_state().
>
> This effectively means that GPS rfkill on this
> WMI interface is considered always both hard and
> soft blocked.
>
> Unfortunately, later when rfkill subsystem calls
> hp_wmi_set_block() to sync this block to hardware
> firmware at least on my old nc6400 gets confused
> and sets both hard and soft blocks on WiFi and BT.
>
> This happens for example on hp-wmi module load.
>
> Since due to overflow described above it is dubious that
> this ever worked correctly and HP laptops with modems
> having GPS support seem to all have been released well past
> year 2009 let's just remove GPS rfkill support via
> pre-2009 WMI interface.
>
This looks reasonable. As it fails to apply without patch 1/2, please resubmit
along with my feedback for 1/2.
Also, please update your line wrap to 75 characters for commit messages.
(see Documentation/SubmittingPatches "14) The canonical patch format").
Thanks,
--
Darren Hart
Intel Open Source Technology Center
prev parent reply other threads:[~2016-03-08 13:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-06 22:40 Maciej S. Szmigiero
2016-03-08 13:11 ` Darren Hart [this message]
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=20160308131131.GD31742@dvhart-mobl5.amr.corp.intel.com \
--to=dvhart@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mail@maciej.szmigiero.name \
--cc=platform-driver-x86@vger.kernel.org \
--cc=trepo@netcomga.sk \
/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
all inboxes | Powered by JetHome®