Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761082AbbKTXTj (ORCPT ); Fri, 20 Nov 2015 18:19:39 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:56564 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760087AbbKTXTi (ORCPT ); Fri, 20 Nov 2015 18:19:38 -0500 Date: Fri, 20 Nov 2015 15:19:37 -0800 From: Darren Hart To: Azael Avalos Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] toshiba_acpi: Propagate the hotkey value via genetlink Message-ID: <20151120231937.GD7413@malice.jf.intel.com> References: <1447644827-404-1-git-send-email-coproscefalo@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1447644827-404-1-git-send-email-coproscefalo@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1565 Lines: 50 On Sun, Nov 15, 2015 at 08:33:46PM -0700, Azael Avalos wrote: > The driver uses genetlink to inform userspace of events generated by > the system, but the data passed is always zero as there is no data to > pass, except for the hotkey event. > > This patch propagates the hotkey value via genetlink so userspace can > make use of it. Which keys were not working previously? My concern is that we introduce new events that then get "double handled". Some more context about the problem experienced and how this resolves it would be helpful. Thanks, > > Signed-off-by: Azael Avalos > --- > drivers/platform/x86/toshiba_acpi.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c > index 7f71f8f..63c231a 100644 > --- a/drivers/platform/x86/toshiba_acpi.c > +++ b/drivers/platform/x86/toshiba_acpi.c > @@ -2966,7 +2966,8 @@ static void toshiba_acpi_notify(struct acpi_device *acpi_dev, u32 event) > > acpi_bus_generate_netlink_event(acpi_dev->pnp.device_class, > dev_name(&acpi_dev->dev), > - event, 0); > + event, (event == 0x80) ? > + dev->last_key_event : 0); > } > > #ifdef CONFIG_PM_SLEEP > -- > 2.6.2 > > -- Darren Hart Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/