From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756998Ab1JRJCq (ORCPT ); Tue, 18 Oct 2011 05:02:46 -0400 Received: from oceanic.CalvaEDI.COM ([89.202.194.168]:46728 "EHLO oceanic.CalvaEDI.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751831Ab1JRJCp (ORCPT ); Tue, 18 Oct 2011 05:02:45 -0400 Message-ID: <4E9D40AB.2060009@Calva.COM> Date: Tue, 18 Oct 2011 11:02:35 +0200 From: John Hughes User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20110818 Icedove/3.0.11 MIME-Version: 1.0 To: Mattia Dongili CC: Valdis.Kletnieks@vt.edu, linux-kernel@vger.kernel.org, Stelian Pop , platform-driver-x86 Subject: Re: sony-laptop driver: Volume keys on Sony Vaio TX3 don't work References: <4E9ABBF6.3000504@calvaedi.com> <4E9ADBD3.4070404@calvaedi.com> <4E9B182A.3020101@calvaedi.com> <74494.1318789218@turing-police.cc.vt.edu> <20111016213800.GA12703@kamineko.org> <81436.1318801813@turing-police.cc.vt.edu> <4E9B65EC.7020303@calvaedi.com> <20111017214326.GA1311@kamineko.org> In-Reply-To: <20111017214326.GA1311@kamineko.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/10/11 23:43, Mattia Dongili wrote: > On Mon, Oct 17, 2011 at 01:17:00AM +0200, John Hughes wrote: > >> Ok, what is "two phase hotkey decoding?" >> > basically the driver receives in IRQ, reads from the IO port a value > that turns out to be a generic value that means "got a hotkey" and needs > to write one more command to the IO port and wait for another IRQ that > potentially has the information about what hotkey was pressed. > > The part we're currently missing is what to write to the IO port for > some models. > > See type3_handle_irq in the source and type3_events: most of those with > data=0x05 require extra handling that we are not doing. > On the second IRQ you get some data=0x31 and the actual event. > > Oh, I see. Poking around in the dark. What fun. I'll see if I can think of any useful experiments.