From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753567AbaIPVyv (ORCPT ); Tue, 16 Sep 2014 17:54:51 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:42551 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752900AbaIPVys (ORCPT ); Tue, 16 Sep 2014 17:54:48 -0400 Date: Tue, 16 Sep 2014 14:54:40 -0700 From: Lee Jones To: Mika Westerberg Cc: "Rafael J. Wysocki" , linux-acpi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Linus Walleij , Alexandre Courbot , Dmitry Torokhov , Bryan Wu , Grant Likely , Arnd Bergmann , Aaron Lu , Darren Hart Subject: Re: [RFC PATCH v2 05/16] mfd: Add ACPI support Message-ID: <20140916215440.GP25162@lee--X1> References: <1410868367-11056-1-git-send-email-mika.westerberg@linux.intel.com> <1410868367-11056-6-git-send-email-mika.westerberg@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1410868367-11056-6-git-send-email-mika.westerberg@linux.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 Sep 2014, Mika Westerberg wrote: > If an MFD device is backed by ACPI namespace, we should allow subdevice > drivers to access their corresponding ACPI companion devices through normal > means (e.g using ACPI_COMPANION()). > > This patch adds such support to the MFD core. If the MFD parent device > does not specify any ACPI _HID/_CID for the child device, the child > device will share the parent ACPI companion device. Otherwise the child > device will be assigned with the corresponding ACPI companion, if found > in the namespace below the parent. > > Signed-off-by: Mika Westerberg > Reviewed-by: Darren Hart > --- > Lee, I tried to get rid of #ifdefs in the below patch but it wasn't > possible because we are using functions that are not available when > !CONFIG_ACPI. > > Documentation/acpi/enumeration.txt | 27 +++++++++++++++++++++++++ > drivers/mfd/mfd-core.c | 40 ++++++++++++++++++++++++++++++++++++++ > include/linux/mfd/core.h | 3 +++ > 3 files changed, 70 insertions(+) Acked-by: Lee Jones -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog