Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753263AbdF2UWx (ORCPT ); Thu, 29 Jun 2017 16:22:53 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:36321 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751615AbdF2UWv (ORCPT ); Thu, 29 Jun 2017 16:22:51 -0400 MIME-Version: 1.0 In-Reply-To: References: <20170629121009.30234-1-benjamin.tissoires@redhat.com> From: "Rafael J. Wysocki" Date: Thu, 29 Jun 2017 22:22:50 +0200 X-Google-Sender-Auth: Otb3W1caYIguw7LCKca2M4dXrA8 Message-ID: Subject: Re: [PATCH v2] ACPI: surface3_power: MSHW0011 rev-eng implementation To: Andy Shevchenko , Benjamin Tissoires Cc: Hans de Goede , Bastien Nocera , Stephen Just , Sebastian Reichel , "Rafael J . Wysocki" , Len Brown , Robert Moore , Lv Zheng , Mika Westerberg , "linux-acpi@vger.kernel.org" , "devel@acpica.org" , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1197 Lines: 39 On Thu, Jun 29, 2017 at 4:22 PM, Andy Shevchenko wrote: > +Cc: Hans (he might give some advice regarding to the below) > > On Thu, Jun 29, 2017 at 3:10 PM, Benjamin Tissoires > wrote: >> MSHW0011 replaces the battery firmware by using ACPI operation regions. >> The values have been obtained by reverse engineering, and are subject to >> errors. Looks like it works on overall pretty well. > > What devices (laptops, tablets) have it? > Surface 3. What else? > >> I couldn't manage to get the IRQ correctly triggered, so I am using a >> good old polling thread to check for changes. > > It might be > >> >> Link: https://bugzilla.kernel.org/show_bug.cgi?id=106231 > >> +config ACPI_SURFACE3_POWER_OPREGION >> + tristate "Surface 3 battery platform operation region support" > > depends on ACPI ? > >> + help >> + Select this option to enable support for ACPI operation >> + region of the Surface 3 battery platform driver. > >> +/* >> + * Supports for the power IC on the Surface 3 tablet. > > Shouldn't it go to drivers/acpi/pmic folder ? Surely not directly into drivers/acpi/ in any case. Thanks, Rafael