All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mattia Dongili <malattia@linux.it>
To: Daniel Serpell <daniel.serpell@gmail.com>,
	Arthur Wirski <awirski@gmail.com>
Cc: platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH] sony-laptop: Reading gfx_switch_status in SVS13A15GLB
Date: Mon, 27 May 2013 07:16:07 +0900	[thread overview]
Message-ID: <20130526221607.GA9539@kamineko.org> (raw)
In-Reply-To: <CANepG=Ot72gY8qacyTvte1oGO8ymEj69xgrvdKg1Q8McMddKLw@mail.gmail.com>

On Sat, May 25, 2013 at 08:12:43PM -0400, Daniel Serpell wrote:
> Hi,
> 
> Thank you for your work in the sony-laptop kernel module.
> 
> I have a Vaio SVS13A15GLB laptop, and today tried the module in the
> kernel version 3.10-rc2, that allows reading back the status of the
> "gfx" switch.
> 
> But in my laptop, when the switch is in the STAMINA position, the
> driver reports "speed", and in the "SPEED" position, reports "stamina"
> :-(
> 
> Reading the status produced the following log in dmesg, with "debug=1":
> 
> In SPEED position:
> [30084.337256] sony_laptop: found handle 0x015b (offset: 0x05)
> [30084.337613] sony_laptop: __call_snc_method: [SN07:0x0000000000000005]
> [30084.337618] sony_laptop: called SN07 with 0x0005 (result: 0x0000)
> 
> In STAMINA position:
> [29976.398723] sony_laptop: found handle 0x015b (offset: 0x05)
> [29976.399087] sony_laptop: __call_snc_method: [SN07:0x0000000000000005]
> [29976.399092] sony_laptop: called SN07 with 0x0005 (result: 0x0001)
> 
> Reading the code, it seems that the status shown is not ok.
> 
> Attached is a patch to fix this.

oh, nice. we've been reporting the opposite for all this time... And it
looks like we're missing the AUTO value of the enum when setting the
buffer.
Mind adding that and resending the patch (as inline attachment)?

Arthur,
just in case, it's unlikely that two models of the same series have an
opposite behaviour, could you double check Daniel's comment?

Thanks!
-- 
mattia
:wq!

  reply	other threads:[~2013-05-26 22:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-26  0:12 [PATCH] sony-laptop: Reading gfx_switch_status in SVS13A15GLB Daniel Serpell
2013-05-26 22:16 ` Mattia Dongili [this message]
2013-05-26 23:37   ` Daniel Serpell
2013-05-27 17:34   ` Arthur Wirski

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=20130526221607.GA9539@kamineko.org \
    --to=malattia@linux.it \
    --cc=awirski@gmail.com \
    --cc=daniel.serpell@gmail.com \
    --cc=platform-driver-x86@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.