Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4826538rwl; Wed, 28 Dec 2022 09:18:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXv3L0SJw6lAaDv/a07PC7sng3RBIXA4aDj7AQHe74M0IJSbBc1f9KpdSu60eIY5Bwo+YjWO X-Received: by 2002:a17:902:ebca:b0:191:117a:414f with SMTP id p10-20020a170902ebca00b00191117a414fmr30892618plg.27.1672247892441; Wed, 28 Dec 2022 09:18:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672247892; cv=none; d=google.com; s=arc-20160816; b=hFvHuiI4s41asNNjWMT2t1qaJKmmLG92zP6mAWZR0wyrDkgEq9kqHSmM5YDgcmrYUY yq5TfIl5Svb1rDvSkrvgWZ1+i/I3EGw0m2IC3D80UR1h88LbQPM0NQcS7+jlPqIY3xEH S9C3UVddUsiNiz5silqaAkBEEd3j4eBAUdXZgeVukxr66nurDV+ab3Fq+HzJXkuyZtyf Dyfil1G54edI/EgfpKnOstDWMl6Y0cDqQS+xwTJnbPsGwosOqImi7Ib74ykCzscqyRfK y0z5zmFyajkYvdcw83MTxj18jICLxQzpj8UWU44WUTbKcM5Ua/jBzsvxPn7CAMSXb7m1 toyQ== 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=oV5KmD1JqWhMOcg/v2h5Ej3qrgiz0SurJdCHTs0jtjY=; b=ODwoV1oY54Kdd06AP1mY5+JICTzNaW6mldr7Q+FNIp+trcBXWwFe8Nud4hXK4GXpZz bpRU7ikoI9dzbgxUMIu70ycHP8T+aCisQu1vl+O28l6j8+pKH/DZkkQlbhgxrnKP7lEG /cAJQxVRYilfzOh3fxaqvRb+Dwb7K1FQohyBX6sqSzYG4H4MgUhKyfk5cMYVJe53+gHA nexEw8FcCgAMUcJTJKfv9riLG2j3JpzNeaOkokdki2wjfJpY75U/SFAw8mTLW77OUgGH OuBTW4z0JqSfSKtb0CwMH4zgJDTzPq3gHZV0POviqV6+AWTWbVLvJYRjEtwppjaElUtL Kthg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=BCiAsO08; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h5-20020a170902748500b00192740ff757si9951990pll.50.2022.12.28.09.18.03; Wed, 28 Dec 2022 09:18:12 -0800 (PST) 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=@amazon.com header.s=amazon201209 header.b=BCiAsO08; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235221AbiL1Qx6 (ORCPT + 63 others); Wed, 28 Dec 2022 11:53:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235259AbiL1QxL (ORCPT ); Wed, 28 Dec 2022 11:53:11 -0500 Received: from smtp-fw-9103.amazon.com (smtp-fw-9103.amazon.com [207.171.188.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F2E61B1C9; Wed, 28 Dec 2022 08:48:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1672246114; x=1703782114; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=oV5KmD1JqWhMOcg/v2h5Ej3qrgiz0SurJdCHTs0jtjY=; b=BCiAsO08ZJIsq9j3aOjMSEBunCfnOhnMFZQrg6X6ncwYVrfPbMykZdQh 1KuzF++KH9+VjdNNWqIjCqLe2Wu+udQ8e1tLG5LTDM2A3ChJ0K5QfM4lw VfW7fa04AU+UEoqJsk1BOQh4G5tE8iQmXRyBn0zsleqNjWHz21QVmGSG4 o=; X-IronPort-AV: E=Sophos;i="5.96,281,1665446400"; d="scan'208";a="1087586436" Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO email-inbound-relay-iad-1d-m6i4x-b404fda3.us-east-1.amazon.com) ([10.25.36.214]) by smtp-border-fw-9103.sea19.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Dec 2022 16:48:33 +0000 Received: from EX13D48EUA001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-iad-1d-m6i4x-b404fda3.us-east-1.amazon.com (Postfix) with ESMTPS id 130FA84BA3; Wed, 28 Dec 2022 16:48:30 +0000 (UTC) Received: from EX19D019EUA002.ant.amazon.com (10.252.50.84) by EX13D48EUA001.ant.amazon.com (10.43.165.83) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 28 Dec 2022 16:48:29 +0000 Received: from dev-dsk-hhhawa-1b-84e0d7ff.eu-west-1.amazon.com (10.43.162.56) by EX19D019EUA002.ant.amazon.com (10.252.50.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1118.20; Wed, 28 Dec 2022 16:48:25 +0000 From: Hanna Hawa To: , , , , , CC: , , , , , , , , , "kernel test robot" Subject: [PATCH v5 0/2] i2c: Set i2c pinctrl recovery info from it's device pinctrl Date: Wed, 28 Dec 2022 16:48:11 +0000 Message-ID: <20221228164813.67964-1-hhhawa@amazon.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.43.162.56] X-ClientProxiedBy: EX13D45UWA001.ant.amazon.com (10.43.160.91) To EX19D019EUA002.ant.amazon.com (10.252.50.84) X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_SPF_WL 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 This series include two changes: 1. Adding new API to get the device pinctrl information when it's initialized before device probed. 2. Make the i2c init recovery to get the device pins if it's not initialized by the driver from the device pins. Change Log v4->v5: - Fix include misplaced - Update variable set order to reduce one line - Add Reviewed-by: Andy Shevchenko Change Log v3->v4: - Split the change into 2 commits - Add cover letter and remove change log from commit message - Fix compilation failure when CONFIG_PINCTRL is not defined Reported-by: kernel test robot Change Log v2->v3: - Add API to get the device pinctrl - Make the i2c init recovery to get the device pins Change Log v1->v2: - set the rinfo->pinctrl to dev->pins->p instead calling devm_pinctrl_get() Hanna Hawa (2): pinctrl: Add an API to get the pinctrl pins if initialized i2c: Set i2c pinctrl recovery info from it's device pinctrl drivers/i2c/i2c-core-base.c | 5 ++++- include/linux/pinctrl/devinfo.h | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) -- 2.38.1