From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933269AbbD2Rp5 (ORCPT ); Wed, 29 Apr 2015 13:45:57 -0400 Received: from mga01.intel.com ([192.55.52.88]:49229 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751702AbbD2Rpy (ORCPT ); Wed, 29 Apr 2015 13:45:54 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,671,1422950400"; d="scan'208";a="717927552" Message-ID: <554118C8.4020204@linux.intel.com> Date: Wed, 29 Apr 2015 10:45:44 -0700 From: sathyanarayanan kuppuswamy Reply-To: sathyanarayanan.kuppuswamy@linux.intel.com Organization: Intel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Mika Westerberg CC: "Rafael J. Wysocki" , Linus Walleij , Alexandre Courbot , Wolfram Sang , Octavian Purdila , Robert Dolca , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH 0/2] ACPI: Translate Linux IRQ number directly from GpioInt References: <1430233507-29389-1-git-send-email-mika.westerberg@linux.intel.com> <553FC530.1020305@linux.intel.com> <20150429092609.GP1534@lahna.fi.intel.com> In-Reply-To: <20150429092609.GP1534@lahna.fi.intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/29/2015 02:26 AM, Mika Westerberg wrote: > On Tue, Apr 28, 2015 at 10:36:48AM -0700, sathyanarayanan kuppuswamy wrote: >>> This requires that the boot firmware (BIOS/coreboot) configures these pins >>> correctly (input, etc) before handing over to OS. I've tested this on Intel >>> Baytrail, Braswell and Skylake based machines where this is true. >> Why not configure the GPIO pin as input in the API itself ? > IIRC Octavian tried to do just that but it turned out that some of the > irqchip functions are called with spinlock held, which means you can't > call all gpiod_* functions there (as they might sleep). Got it. Thanks. > -- > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Sathyanarayanan Kuppuswamy Android kernel developer