Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp653303rwd; Sun, 14 May 2023 04:18:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6v65KdKfpVn9RQvtk60u7Mg+hrryY5vJeZT/ILYDe4jG8ES45dqLQuuQ4+h9CLcu/BQWcB X-Received: by 2002:a05:6a20:4296:b0:103:a9ee:d732 with SMTP id o22-20020a056a20429600b00103a9eed732mr16766341pzj.9.1684063108793; Sun, 14 May 2023 04:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684063108; cv=none; d=google.com; s=arc-20160816; b=yZNhaquRMvT6pApD/cbcY27lCWQ4Z/Ks/Ybuk3to9K0gejaPg0tvJS4/BAZ+Ot10N8 KUnvJKnQJRTcmw4GsD61f+3omYL5IIuH24rSpYQwfqmSwDa3N3Sk7Og6ylrUzevzCu1v NuzseQpLw57a36L9EE3CjvTHA/i1PDVG5GaLKIvcrPJGs3QeqOLNZU3WHI5RlnDIr8Z6 8gq7UH+hFuucb6HL6sBU8kel8Fs0UZfVrS/1tb3KvU5u0M5d3Oi9/s504D2+ushoNJeZ ESe8qcfLvFEAHPAPC0ZhES/ONWBsSlgBk1hBvfkVoH7LZDFopLjAyf1o/hgZu2XXTzi7 Kbdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=8baYsZfID1cDBWsKQ+Tl9JvjVfWku8D961NRVTSlUC8=; b=pW2Wyp9HsffjvmY5CFKdrznVyYB0Yj/LtPVdLjoU7pI2tjyc3Irz77FtbFM/WOJvIJ OFbrlJeBqciTqiBCtvtUG2DKFjfHCoL2mIU3zbW0Ed3ltdktOxvJtxdB3PtbgAHcUp2b 1e0F/daq6sUd+9Ui8O9Rvzmtn49DLfKLDuD286P+fBJKTjkeUYOdTKb5WTGB0JA4GGAC aeQNo1SLQ86IT9B8j9PbA7fApRHS/6r3QHz9nj/CWitzP653vMrXi5MRWUB6Uy/HrppL N+pXPXLTSpSQa+Rj1Au5gW0f+ucWaYNah7noRDpTlOSsaPVr+d/GI2E5GAJHqU+CQ2sQ Vg8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mariushoch.de header.s=MBO0001 header.b=ZadC+9t9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u189-20020a6385c6000000b005250ac2d7c9si13604798pgd.693.2023.05.14.04.18.16; Sun, 14 May 2023 04:18:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mariushoch.de header.s=MBO0001 header.b=ZadC+9t9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232116AbjENKhM (ORCPT + 99 others); Sun, 14 May 2023 06:37:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbjENKhL (ORCPT ); Sun, 14 May 2023 06:37:11 -0400 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [IPv6:2001:67c:2050:0:465::202]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FBB71715 for ; Sun, 14 May 2023 03:37:03 -0700 (PDT) Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4QJzT51PsDz9sQZ; Sun, 14 May 2023 12:36:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mariushoch.de; s=MBO0001; t=1684060617; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=8baYsZfID1cDBWsKQ+Tl9JvjVfWku8D961NRVTSlUC8=; b=ZadC+9t9TgwNFdyPDJs52Nh3Db7XuQ2MUO0dApPLjBgxaXfAq90jZ79cXUuhmRXjR7w/x1 dt5VmcR8JYnx/RfCpMA6oidIRYqwXaCUPsvFqfRtvmXxQMNxNh7OLwuPz3BIjfSE9XPr57 7UImYbkhp6aVRL+I3jmzPPOCw1Q7WakzlBl+K4nV2DqviLpdaORigx3yPxijgpgjfofKFP ExFOwYi5C/vS0ptJdtR9bpLG8uJaGegVb20zwff/s8Wuu2G0pXnV9lPzy+Hl7QOkKl3G5J zSEajznveG7jhl5nESHsPVvqqiaDOEggk75B0AKGjmhxTiseQNFwSb59CD72OA== From: Marius Hoch To: Jean Delvare , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marius Hoch Subject: [PATCH 0/2] i2c: i801: Force no IRQ for Dell Latitude E7450 Date: Sun, 14 May 2023 12:36:32 +0200 Message-Id: <20230514103634.235917-1-mail@mariushoch.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4QJzT51PsDz9sQZ X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, T_SPF_TEMPERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Dell Latitude E7450 uses IRQ 18 for the accelerometer, but also claims that the SMBus uses IRQ 18. This will result in: i801_smbus 0000:00:1f.3: PCI INT C: failed to register GSI i801_smbus 0000:00:1f.3: Failed to enable SMBus PCI device (-16) i801_smbus: probe of 0000:00:1f.3 failed with error -16 Force the SMBus IRQ to IRQ_NOTCONNECTED in this case, so that we fall back to polling, which also seems to be what the (very dated) Windows 7 drivers on the Dell Latitude E7450 do. This was tested on Dell Latitude E7450. I chose to explicitly list all affected devices here, but alternatively it would be possible to do this programmatically: If the initial pcim_enable_device fails and we're on (any) Dell Latitude, re-try with IRQ_NOTCONNECTED. Marius Hoch (2): i2c: i801: Force no IRQ for Dell Latitude E7450 i2c: i801: Force no IRQ for further Dell Latitudes drivers/i2c/busses/i2c-i801.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) base-commit: cc3c44c9fda264c6d401be04e95449a57c1231c6 -- 2.40.1