Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1154944ybd; Wed, 26 Jun 2019 12:11:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwR2T9Rcg8gx+OkWB7zaNuy9lGATPiYvX+t6K2OU9D6FnWvxjieTHiVGWEtrKtFw6h4vCA9 X-Received: by 2002:a17:902:9898:: with SMTP id s24mr7118955plp.226.1561576315060; Wed, 26 Jun 2019 12:11:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561576315; cv=none; d=google.com; s=arc-20160816; b=p/967BwdagV8kOixJpehT/mpoqwfMvwU2GGmjR5tQWWOlDK9/w9wDG+1y72fwihAAo fZEdNzgL/MNrPsZKeCSahUpKOrgzbSDA3oaJW9tar1DI10NsZw60TJPriesWvjFRwQAi 8oJA5AAEm5gNf0MLXzQZ9qb8LSXMY4Fe0JilLf2vp3RREpWDV6mbRFbPe//BwV+wjnQV LmLxn4XvLSMOJxIv+amWGT5qLiDdagVcTEtO0oKvaNYS1ly8l737g8THvKtYdDVXG2pN w5ouYsLIRLlGdTZz5l2lNbBMASXkwzzkW1R+ie8LDMnkyeBcvkwyeudyda8UVm3TrjL3 wh8A== 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=8f3jLy+sThTT8kadLn2wpqLOXyk7grfOaICbICukOWQ=; b=ILnt/0PU/MrDzjAmDhM9NdeVVqyG/nsfcSEv+VWL9CkzV+tNZ1HPKiNnP8Mm/5u8t+ KFKjGa/K67Iv8lqRAbz3anUBlz9aWTXwnXW4rG+KjLTRlZfZR7h+ZB/1dVmh1RlZSj9G mmfWPHhCCBoEXEjWu2Dt6C2YgTulxDrbGn0+Uf/LREHw2/f6DZSAlzrD+YqqUiK1/PFJ zsyK8F8xWxS/1fPREEoV1KjTO4zoeib+SVz+chSK1hnOPoj8DqLphdASIdG3KnkN0Ijr 0tfmgUOyWUdFQtx53ffsX5CQWd3OVndxBu5y6nKSrXLr/C9gjHSYwmRwHOGQeAAOUvK6 uclg== 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 bj5si4027403plb.227.2019.06.26.12.11.38; Wed, 26 Jun 2019 12:11:55 -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 S1726396AbfFZTLP (ORCPT + 99 others); Wed, 26 Jun 2019 15:11:15 -0400 Received: from mga05.intel.com ([192.55.52.43]:24809 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbfFZTLP (ORCPT ); Wed, 26 Jun 2019 15:11:15 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2019 12:11:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,420,1557212400"; d="scan'208";a="167141508" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.145]) by orsmga006.jf.intel.com with ESMTP; 26 Jun 2019 12:11:11 -0700 Received: from andy by smile with local (Exim 4.92) (envelope-from ) id 1hgDK2-0002SX-2f; Wed, 26 Jun 2019 22:11:10 +0300 Date: Wed, 26 Jun 2019 22:11:10 +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 v7 0/6] I2C IRQ Probe Improvements Message-ID: <20190626191110.GB9224@smile.fi.intel.com> References: <20190626150302.22703-1-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190626150302.22703-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 Wed, Jun 26, 2019 at 04:02:56PM +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. > Thanks! After addressing one comment, take my Reviewed-by: Andy Shevchenko for all patches which lack it now. > Thanks, > Charles > > See previous discussions: > - https://lkml.org/lkml/2019/2/15/989 > - https://www.spinics.net/lists/linux-i2c/msg39541.html > > Charles Keepax (6): > 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: 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 | 59 ++++++++++++++++++++++++++++++++------------- > drivers/i2c/i2c-core-base.c | 11 +++++---- > drivers/i2c/i2c-core.h | 9 +++++++ > 3 files changed, 57 insertions(+), 22 deletions(-) > > -- > 2.11.0 > -- With Best Regards, Andy Shevchenko