Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4453039ybi; Tue, 11 Jun 2019 06:58:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxqBJAPXRH3Vji01V4nkeyU/tToxkoPtLYM/Co9CuxK9lPZs0d/8rhuVUsrk23hPxAAyzS X-Received: by 2002:a17:90a:ad89:: with SMTP id s9mr6551723pjq.41.1560261495039; Tue, 11 Jun 2019 06:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560261495; cv=none; d=google.com; s=arc-20160816; b=PpV7Q2MZICHRk85fsVTTzKIPNwDF2ofK7YQuZC8d32ckZQGbX+4dJrlys1u8mL0PN3 w9viHPir9IKyfwytEobZgQsQH7YTeoSCWtiTjO40SfexSOkiVOdsgZ6QUVpFH4rBykf2 MCxERsEVYiFtvZLMklpL/ujvj7b8RwRGb0szSZPjZWUv7e41J5rlVkojsdWT0ZyMV5lN zuxFDL0KwLWNALt6IMWNpcnKPl/acNabTOkr4+HocCVOy7HoM6/T2yfe/Z/vbRreJ7gz T9r9GhK38EjimgtJZtTfuKplXyqqXm1XCpw6zEsGKEmWKBojR4/eINfGTRpEauPSfug7 IjvQ== 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=BnTiJXUly7IiViY7bm96FgUDCQ+PMq3C2gCR/pmS0p0=; b=JFtxTu2Hz/e+J6qDzmqaaIvx2ki2rAV60EhhZuDlEM+skzonXa2bBRO1Y4LwAR3LZ5 DPRLasTqohkvkI8EyzsgxsWC9ta4kltJ7fVsKDyWP8DtmAjJpcPnT1TmUxhQu6k0NRvn rlTGjvmhbWi17hrGNUJvpolJJhWpimqPPhc/guFsUY5PQoNAZiATkEIRjgDypuVBPhqC ht5gBrPHr1jaXwy2/WDrz1pMxXXm0Kg6ff0ZN45iv5b2bgANRItdUN9Bnh62sek64Sml ZPAEwtZOc42WJeYhmm66BfX0UuU6v9PNX2wYIs4pr/zUNjOVeiEaPNxy8A8HyA1YeU3O LRpg== 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 q16si12536987pgi.222.2019.06.11.06.56.56; Tue, 11 Jun 2019 06:58:15 -0700 (PDT) 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 S1728661AbfFKMvc (ORCPT + 99 others); Tue, 11 Jun 2019 08:51:32 -0400 Received: from mga18.intel.com ([134.134.136.126]:7600 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727225AbfFKMvc (ORCPT ); Tue, 11 Jun 2019 08:51:32 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jun 2019 05:51:31 -0700 X-ExtLoop1: 1 Received: from smile.fi.intel.com (HELO smile) ([10.237.68.145]) by orsmga008.jf.intel.com with ESMTP; 11 Jun 2019 05:51:29 -0700 Received: from andy by smile with local (Exim 4.92) (envelope-from ) id 1hagFM-0005EC-E8; Tue, 11 Jun 2019 15:51:28 +0300 Date: Tue, 11 Jun 2019 15:51:28 +0300 From: Andy Shevchenko To: Charles Keepax Cc: wsa@the-dreams.de, mika.westerberg@linux.intel.com, jarkko.nikula@linux.intel.com, linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, benjamin.tissoires@redhat.com, jbroadus@gmail.com, patches@opensource.cirrus.com Subject: Re: [PATCH v4 0/7] I2C IRQ Probe Improvements Message-ID: <20190611125128.GV9224@smile.fi.intel.com> References: <20190611123101.25264-1-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190611123101.25264-1-ckeepax@opensource.cirrus.com> 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 On Tue, Jun 11, 2019 at 01:30:54PM +0100, Charles Keepax wrote: > This series attempts to align as much IRQ handling into the > probe path as possible. Note that I don't have a great setup > for testing these patches so they are mostly just build tested > and need careful review and testing before any of them are > merged. > > The series brings the ACPI path inline with the way the device > tree path handles the IRQ entirely at probe time. However, > it still leaves any IRQ specified through the board_info as > being handled at device time. In that case we need to cache > something from the board_info until probe time, which leaves > any alternative solution with something basically the same as > the current handling although perhaps caching more stuff. Thank you! This one looks good. Reviewed-by: Andy Shevchenko > > Thanks, > Charles > > See previous discussions: > - https://lkml.org/lkml/2019/2/15/989 > - https://www.spinics.net/lists/linux-i2c/msg39541.html > > Charles Keepax (7): > i2c: core: Allow whole core to use i2c_dev_irq_from_resources > i2c: acpi: Use available IRQ helper functions > i2c: acpi: Factor out getting the IRQ from ACPI > i2c: core: Make i2c_acpi_get_irq available to the rest of the I2C core > i2c: core: Move ACPI IRQ handling to probe time > i2c: core: Move ACPI gpio IRQ handling into i2c_acpi_get_irq > i2c: core: Tidy up handling of init_irq > > drivers/i2c/i2c-core-acpi.c | 58 ++++++++++++++++++++++++++++++++------------- > drivers/i2c/i2c-core-base.c | 11 +++++---- > drivers/i2c/i2c-core.h | 9 +++++++ > 3 files changed, 56 insertions(+), 22 deletions(-) > > -- > 2.11.0 > -- With Best Regards, Andy Shevchenko