Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2419368imj; Mon, 11 Feb 2019 02:31:52 -0800 (PST) X-Google-Smtp-Source: AHgI3IYSQoTI17YmoZHyI2s7K4dtrnttPm3hltHG5CkkxF+Kb8HM1JJnaeOZsiQKMaf5wJihZ181 X-Received: by 2002:a63:5ec6:: with SMTP id s189mr31707127pgb.357.1549881112793; Mon, 11 Feb 2019 02:31:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549881112; cv=none; d=google.com; s=arc-20160816; b=t3vCBx8iJOXEAAG8ZMbgtWrnaHoF1ZBTgtaNq1Fp3b2MiTA563GwumHaCyNF3AyOTe ZiJJE6px/VyEhCH33aNWYQJIamaLaOkI6d6E+PB6jzWP7Cc/gOTdGYzjGF42xzsn6C2J ma7Z1+BxReQA4SMnEnos/uH3Z40710V0KT6qQmCGSdwi6Sl//YTPZlYv30pyqxZulrP4 STkng1gpWA9iyngqDl43maXxLLLZjXoZMqsa2ahwZHsryN9k9I9A7oGMXdGvsKEBsOr6 lOpaxzLgdOGYkZ+B2+nKHiwd2C0IF+cvJr7dpQ/pVdeGo56kQqGO++CQ7tXGXkCBE5al 3WwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=fEkgI8uldExp5rYrP/QLeo78gsTQBMqjljyZ81d9s1I=; b=mVEsdgzRuk83UOD7tkgNutO48l56o9ofBSO4TQsv6s3obC7pOMl4Ogi0bYkp4WrpjP qvP5V6G9mv/SQu0ka3UoL6lVc2znje9REKGuPGyAaPqapNVR8584BgHNEE4AwAx+N4Pp b/pMNWdBmZnDE1ok6d1dfsf13bTZ+/ASWtkq9Xjs1JFjY2y9BYPHGmHBWQluk0BFmrI7 I46ulwpKGXPUG2QZOEPnCyVP6Uq3yFCNB9Zm18f7OFHFDX9WttGrxb6yg8LDVyhfpyM7 64zoJrk+8nMY5NCSxrH4degH9OZLdQR2x0K7Ty+IXlnVBuoF2ozS6i0YCXsYFMQpqLj6 E+LA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si10180368pls.16.2019.02.11.02.31.36; Mon, 11 Feb 2019 02:31:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726891AbfBKKab (ORCPT + 99 others); Mon, 11 Feb 2019 05:30:31 -0500 Received: from mga02.intel.com ([134.134.136.20]:57344 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726170AbfBKKaa (ORCPT ); Mon, 11 Feb 2019 05:30:30 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Feb 2019 02:30:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,358,1544515200"; d="scan'208";a="142399600" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga002.fm.intel.com with SMTP; 11 Feb 2019 02:30:25 -0800 Received: by lahna (sSMTP sendmail emulation); Mon, 11 Feb 2019 12:30:24 +0200 Date: Mon, 11 Feb 2019 12:30:24 +0200 From: Mika Westerberg To: Dmitry Torokhov Cc: Andy Shevchenko , Enrico Granata , "Rafael J. Wysocki" , Greg Kroah-Hartman , Enric Balletbo i Serra , Linux Kernel Mailing List , Gwendal Grignou , ACPI Devel Maling List , Brian Norris , Enrico Granata , Andy Shevchenko , Hans de Goede Subject: Re: [PATCH] driver: platform: Add support for GpioInt() ACPI to platform_get_irq() Message-ID: <20190211103024.GY7875@lahna.fi.intel.com> References: <20190207185917.167829-1-egranata@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Feb 07, 2019 at 12:29:17PM -0800, Dmitry Torokhov wrote: > > > > > Do you have a suggestion as to how to write ACPI tables to avoid the issue? > > > > 1. Allocate new ID and use it (perhaps not the best path). > > 2. Use GPE(s). > > > > Or just solve the issue of intermixing Interrupt() with GpioInt(). We > have similar issue with i2c and spi, but we sidestep that there as we > only parse the first interrupt and do not give option of fetching 2nd, > 3rd, etc. Maybe we should only GpioInt parsing for the first interrupt > in platform_get_irq() as well for the first iteration and then see if > we need to improve it if we see devices with multiple interrupts. I think it should be fine to intermix them or do what you suggest and start supporting index 0 for now and then maybe extend it in the future to cover more.