From patchwork Wed Dec 28 16:48:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanna Hawa X-Patchwork-Id: 637502 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C528FC4708E for ; Wed, 28 Dec 2022 16:54:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233488AbiL1Qxy (ORCPT ); Wed, 28 Dec 2022 11:53:54 -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 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) Precedence: bulk List-ID: X-Mailing-List: linux-i2c@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(-)