Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5939559ybi; Wed, 12 Jun 2019 11:03:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyVBXQWn3qJEaCI4mmBZ1Wr+fo96wMKCjn3y8hpPZd6zplzQTKLJDGqeCkuKzEZ0XMsL3g X-Received: by 2002:a17:902:5c2:: with SMTP id f60mr82563307plf.61.1560362633791; Wed, 12 Jun 2019 11:03:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560362633; cv=none; d=google.com; s=arc-20160816; b=K6dK98fomhiqDhNOAYnFbWz9ejJgnfNphsRNdbq86lJ1wdMnOpmx4TMzQMFYNGQ48u EnpZfGq7baSUFS2TguTSqwy2BHbh8v2DkfQZNHqKWNja/kcZEPdV4WeIKjmuu/Jpfa+n bRbUwQbhNEc3WYCE5qLdhtNThr5to7rjmNF8HHo3pXsRHtduglzodCVQIM10HNvEoM+v PUL2fTKMPA2IFLxoiXYMIaacNNUC0YAYGxUu7Qdwxgtrq9jG2t39emmFsX8VBQgFEPht wObrsXIaYzk54Fw7GBKTLOG2Mf20sf73f44Urg0Ne3ljCPCGucPWJckRZVrSxld51fKr an9g== 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=BwIDmOAGcEki3RdvfGMK1ES9aAPDYLop/FJjdHjbbH0=; b=RkL+ugpxXnnYCX1jqCZPd9cjqeJ7UQAdPnRPYtuOTc6ZwGSR0EIdkhZfAxcQ9z2pCR N+4S53vCbCxCsMHG+lWeP4SrVIEPkxUh9OrFgMBkzhLzwEqiMwqmwmXnb2TDy3odJ771 thnj9pNil0ZI3vZfpwbbjWLbx95/Nc7zoGFyE+O4nSCIBJdlvMGVMxGBPVRpYi8pkuXr mbSB3ecPm36MLKSOzgfK3qZCboWSe5RGU7ezpv62Eq1rW1mNGoX4BzoWi8jdEur2lE5m mP1OUdVhdJmviaSFk8hkjmu81u6XuVsPMoKE2MXkL5+97c33Jm+66Cy1KGgLzqPizZ18 wzuw== 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 d2si459879pjs.10.2019.06.12.11.03.38; Wed, 12 Jun 2019 11:03:53 -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 S2501889AbfFLPNm (ORCPT + 99 others); Wed, 12 Jun 2019 11:13:42 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:44201 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2501881AbfFLPNl (ORCPT ); Wed, 12 Jun 2019 11:13:41 -0400 Received: by mail-qk1-f193.google.com with SMTP id w187so10470528qkb.11 for ; Wed, 12 Jun 2019 08:13:41 -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=BwIDmOAGcEki3RdvfGMK1ES9aAPDYLop/FJjdHjbbH0=; b=HreBYpb3fvdb7Lx557ITd9johVSQgejBGbKoy8E2PSWW0hh7IeA9vNNUt272fHNbPa 8DGSuSxhKt7cPD+nsA/p43fCN52psAjVB6ULPzGrt0ARQbyLUJR8V2PSXSl5KJukuI7r Vp/qIYxqb+9XGwEXV/OndJ1+d200yce/+vFmOP2uHFP4f7taofLob00hRCFD1b5PJLE+ un6SLwtom75ThyL8CQXbiKOMO73yKfBiiMmNJKyS3MbLrcZ/k0dAEANvBRBtpE5/A3pQ j3FF6DnmjzDM2vwyHcV1MJ6Ii/QH50jOlTctf/7LwZn2htJJRBiqld79s94SUJRv7c9l yJ5Q== X-Gm-Message-State: APjAAAXkyLx66FjGGzmpJ3eUkptnsh8ZvqKLFkLGpw4VMjIa6cXtIcW+ Dz92rqekhDPIuasV8HQwUVwCIDdcKvSujTmcQCF93w== X-Received: by 2002:a05:620a:16c1:: with SMTP id a1mr23929067qkn.269.1560352421153; Wed, 12 Jun 2019 08:13:41 -0700 (PDT) MIME-Version: 1.0 References: <20190611123101.25264-1-ckeepax@opensource.cirrus.com> <20190611152833.GR28362@ediswmail.ad.cirrus.com> In-Reply-To: <20190611152833.GR28362@ediswmail.ad.cirrus.com> From: Benjamin Tissoires Date: Wed, 12 Jun 2019 17:13:29 +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 5:29 PM Charles Keepax wrote: > > On Tue, Jun 11, 2019 at 05:16:58PM +0200, Benjamin Tissoires wrote: > > 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. > > > > I have a sneaking suspision, does this diff fix it: > > diff --git a/drivers/i2c/i2c-core-acpi.c > b/drivers/i2c/i2c-core-acpi.c > index 57be6342ba508..a90b05a269c36 100644 > --- a/drivers/i2c/i2c-core-acpi.c > +++ b/drivers/i2c/i2c-core-acpi.c > @@ -169,7 +169,7 @@ int i2c_acpi_get_irq(struct i2c_client *client) > acpi_dev_free_resource_list(&resource_list); > > if (irq == -ENOENT) > - irq = acpi_dev_gpio_irq_get(adev, 0); > + irq = acpi_dev_gpio_irq_get(ACPI_COMPANION(&client->dev), 0); > > return irq; > } > Unfortunately, this doesn't solve the issue. The problem is either in 4/7 or 5/7 (4/7 doesn't boot AFAICT). (chasing multiple rabbits at the same time, so hard to get to the bottom of it) Cheers, Benjamin > There was some earlier discussion about which device was suitable > for this call. > > Thanks, > Charles