Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp971049pxb; Wed, 6 Apr 2022 05:40:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6OFv0lYOWBXdKo4F2y8qLySVFVM3EDLBxZcoowgZGBGEhqSyqL5a+Fx4LuCKtP9yDQxZC X-Received: by 2002:a17:903:110c:b0:153:1293:5624 with SMTP id n12-20020a170903110c00b0015312935624mr8373571plh.149.1649248849207; Wed, 06 Apr 2022 05:40:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649248849; cv=none; d=google.com; s=arc-20160816; b=HuGt/8gy5ZkFSkNEeT8eKlUM4rwezEAT45Qhvjox5xET5MYnLQmSnk9tsLxpQ0dDnA ++I/EckVFAQxqkSqpRg8/LNwIOncUb58FAuRLfliPFElSbyMQk67WkMpb8TnLB4vgNGa /nKRENDvaH0qssLCAMWIaVaZ4YhHzdBZckh/jYdQPhQ1NPjYE0Po/VVPQXSk/u0BjYXh oIezAe97ZsAcWN/06Tc+7dg1u8x+zSaj1rhXXiQXHTg83SPHruhR92CFpX+Ok8Po3HwP nPv8i1r8FX9rsn8Roq+/ftbgeqlfxpPCdnZRdKu++25Mmw+WEERSZMxT94pOMuFaoQl7 PIww== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IQbFdsIycaKMPC2WtqAU6bZcJ0n+YEHMU/Uu+zlGT7I=; b=1BOj8fzsDpe12xeWR3GNj6gyyjjwyDqbP97yXknmvyTe6hGv9VW7vPaYukKigWah/R C8Vho2Z8GVJo/ZrbmtoKp8RSQXdRo4T5P/V4VBOLjf/W0H01kkofc4Tvgm0kxvUkXvNp 9J9HJmkc/ehepscqY1sOdN9ZgnuKMCSkUy/mY7TP1+hSoZfum6reKR1UH1IRPkBrz0+f 7LvRz4HjcjI2XXyKfgB5eYYB9aNaqfK3BVgBSL8zEO8kuO6xKDlCpBhbwrjslbeElGY0 X2NYwss3EBFd7EQH1pDq0fiLIqS5Gt+9DMrJcxvZaDFicAVMgYDgwXsTsYFb8d9AjDV/ gQQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=ae7dSkD7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 32-20020a631260000000b00399460d7fc4si6290759pgs.458.2022.04.06.05.40.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:40:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=ae7dSkD7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7769154E7F3; Wed, 6 Apr 2022 02:15:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1587008AbiDFAHB (ORCPT + 99 others); Tue, 5 Apr 2022 20:07:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380267AbiDENOA (ORCPT ); Tue, 5 Apr 2022 09:14:00 -0400 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 307D312343F; Tue, 5 Apr 2022 05:16:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1649160997; x=1680696997; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IQbFdsIycaKMPC2WtqAU6bZcJ0n+YEHMU/Uu+zlGT7I=; b=ae7dSkD7GoCDc2NTaNCq3XgDrTcm4p7/80S49gpON3AX+mYkUIK84gnr jnK5D2akK5XnMwxmSBJSt231FFA755yUKQmY1aQUTnPi9SeTtJHyHSeH6 oGk/xBHyVyz1j12hQ7Xp41SzTa4gGfwUDk4nfaHC+xxEfhzwM2A7ypP6T 6wdpGzTOU+WO5QoCummNdb2bJR8dtJBVNjeRYBNMFuJ6VEpDF8P/yP8We qLCVY+WiFMpZq2DdG73QIP4oDnbwP9A56lVtoP0WpqP3jcnKcndsP7d01 R4wu1f2NXr88o+GsfnvzlQRc6npEroX8psnY3nyn8gyebdVTuznsxNq+T Q==; From: Vincent Whitchurch To: CC: , Vincent Whitchurch , , , , , Subject: [PATCH 1/2] i2c: add binding to prevent device detection Date: Tue, 5 Apr 2022 14:16:26 +0200 Message-ID: <20220405121627.1560949-2-vincent.whitchurch@axis.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220405121627.1560949-1-vincent.whitchurch@axis.com> References: <20220405121627.1560949-1-vincent.whitchurch@axis.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 When drivers with ->detect callbacks are loaded, the I2C core does a bunch of transactions to try to probe for these devices, regardless of whether they are specified in the devicetree or not. (This only happens on I2C controllers whose drivers enable the I2C_CLASS* flags, but this is the case for generic drivers like i2c-gpio.) These kinds of transactions are unnecessary on systems where the devicetree specifies all the devices on the I2C bus, so add a property to allow them to be disabled. Signed-off-by: Vincent Whitchurch --- Documentation/devicetree/bindings/i2c/i2c.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c.txt b/Documentation/devicetree/bindings/i2c/i2c.txt index fc3dd7ec0445..5f7bdf4851e8 100644 --- a/Documentation/devicetree/bindings/i2c/i2c.txt +++ b/Documentation/devicetree/bindings/i2c/i2c.txt @@ -72,6 +72,10 @@ wants to support one of the below features, it should adapt these bindings. this information to adapt power management to keep the arbitration awake all the time, for example. Can not be combined with 'single-master'. +- no-detect + states that the system should not attempt to automatically detect + devices which are not explicitly specified as child nodes. + - pinctrl add extra pinctrl to configure SCL/SDA pins to GPIO function for bus recovery, call it "gpio" or "recovery" (deprecated) state -- 2.34.1