Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4581858ybi; Tue, 11 Jun 2019 08:58:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbK+zS5OFBFDdR86PEVVpcYZfeoj918gOyU1fmiMw7aprBt3N9Xq/GyO7Zz64FV+O0czKy X-Received: by 2002:a17:902:8490:: with SMTP id c16mr78750430plo.259.1560268712703; Tue, 11 Jun 2019 08:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560268712; cv=none; d=google.com; s=arc-20160816; b=TG5Pgdu0QNUx0lblfFDTsGS+R3nlkp8Btp8PgAvTSzK+HoRVtx7z9EOtmZ+65chWNz v1IiRKUlCJP/coXsPCbtYQJQyDOPd3mlCMpiyTT7WkIwb+RaZmMy6CFOZiGWztgdmKKY aaXWnfQupruE9BWp2O1z18m0dkEXa53yCUmA+n0kJ1Rbc+bSOYW1id30PObqF20O5Kmu s7YkJmAYtnhng0i2F2yPCn0ANQflX4QcBO0icegBTJYbqDoVj3kmEiEnLRIaJ7tiX4Cc MGKIT28PCfXpN5IiL+cwk9ksFBfM0W12F5Isu0N//qpegjDEChwwVRdA6Lti5GI7jNtX ZITg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=P8EQNdlfEKMSd2en3pkgledmujjaJiojIo3h1kmvnOQ=; b=kgWrUiyTqCXh/CTjR5C+4Jckzca+OBWTCx35LDWGyAluz0dH7Sd9DOaWnYSbSUuo1D K1/osQzhQHptO22d2sHieQbR7gc5JsBtk835dRSZ5xWXl5QOWKPD4NeIQ7FLs5H56MLT jMw8Fy+U3LX7jiI371CJ5ZGA2luYmuNIxrEkMwT+W/ZiswJdm6VXgWoDiwxP5Swr2BBj Szx08eK5L1e6oYFS3lyX0c20AnReQlI1IF6B6+TBjqHm1C3xU+kA+i2J4B86GAEWn+JM RkrsaAbAuUiaQTQhZyzGll10nd6USoxnn1uHrn5W8R9q62JgOUwxg1cT3zbbACAb3FlC 7cqg== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9si2652119pjl.98.2019.06.11.08.58.17; Tue, 11 Jun 2019 08:58:32 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404557AbfFKPRL (ORCPT + 99 others); Tue, 11 Jun 2019 11:17:11 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:37298 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727601AbfFKPRL (ORCPT ); Tue, 11 Jun 2019 11:17:11 -0400 Received: by mail-qt1-f193.google.com with SMTP id y57so14996576qtk.4 for ; Tue, 11 Jun 2019 08:17:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=P8EQNdlfEKMSd2en3pkgledmujjaJiojIo3h1kmvnOQ=; b=ckIs0ZQT0ZQTyavRyAxo1zsbS8aSMUP6pda4+gSHZC7pv6edOFGv8rB1mPTeSovZPx +3X3sHrMhro7Pb/LTaaag0dK95CohY6m4y52C43+GGxrcpNH66FlmaZK+KeQcIpB9Nju 29G0mDHn0OzOqjCE67invoF6pHTgkAyVRLJCYhCEHzE9lOXhi+yuFYIkzORZ6Gh/sBfh zn+FeWKUSAofC7ycMQJhlbwQ4U+wGic2TniEqzOPHtVvMW2y/JkOS6b7qYkZK0YJvSGK AP+eMmg8U5d+qfUaCB0T125XTNveyVYzx9++5Mgmv/XyK+fG6PxMTmsnN78haXGoYNvP 3ldQ== X-Gm-Message-State: APjAAAVwnANJg/I+OomvTUiHrmBzi4mE0m0u3c9EnZjvyi/R2YRphvIy WB7IRWMqlnrvtiA87D/VeTrOYXvQ6+az80ftTr76WQ== X-Received: by 2002:ac8:2998:: with SMTP id 24mr62676416qts.31.1560266230100; Tue, 11 Jun 2019 08:17:10 -0700 (PDT) MIME-Version: 1.0 References: <20190611123101.25264-1-ckeepax@opensource.cirrus.com> In-Reply-To: <20190611123101.25264-1-ckeepax@opensource.cirrus.com> From: Benjamin Tissoires Date: Tue, 11 Jun 2019 17:16:58 +0200 Message-ID: Subject: Re: [PATCH v4 0/7] I2C IRQ Probe Improvements To: Charles Keepax Cc: Wolfram Sang , mika.westerberg@linux.intel.com, Jarkko Nikula , Andy Shevchenko , Linux I2C , linux-acpi@vger.kernel.org, lkml , Jim Broadus , patches@opensource.cirrus.com Content-Type: text/plain; charset="UTF-8" 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 2:31 PM 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. Hmm, I still haven't pinpointed the issue, but I wanted to give a test of the series and I have: [ 5.511806] i2c_hid i2c-DLL075B:01: HID over i2c has not been provided an Int IRQ [ 5.511825] i2c_hid: probe of i2c-DLL075B:01 failed with error -22 So it seems that there is something wrong happening when fetching the IRQ and providing it to i2c-hid. That was on a Dell XPS 9360. Bisecting is starting. Cheers, Benjamin > > 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 >