Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755185AbbKWS6O (ORCPT ); Mon, 23 Nov 2015 13:58:14 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:50163 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754851AbbKWS6M (ORCPT ); Mon, 23 Nov 2015 13:58:12 -0500 Date: Mon, 23 Nov 2015 10:58:08 -0800 From: Darren Hart To: Azael Avalos Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] toshiba_acpi: Fix keyboard backight sysfs entries not being updated Message-ID: <20151123185808.GT7413@malice.jf.intel.com> References: <1448301090-5545-1-git-send-email-coproscefalo@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1448301090-5545-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: 1112 Lines: 28 On Mon, Nov 23, 2015 at 10:51:30AM -0700, Azael Avalos wrote: > Certain Toshiba models with the second generation keyboard backlight > (type 2) do not generate the keyboard backlight changed event (0x92), > and thus, the sysfs entries are never being updated. > > This patch adds a workquee and a global boolean variable to address > the issue. > > For those models that do generate the event, the sysfs entries are > being updated via the *notify function and the boolean is set to > true to avoid a second call to update the entries. > > For those models that do not generate the event, the workquee is > used to update the sysfs entries and also to emulate the event via > netlink, to make userspace aware of such change. > > Signed-off-by: Azael Avalos Queued to testing, thanks! -- 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/