Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1388513rwb; Wed, 14 Dec 2022 09:33:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf46Z9qSPpx9aWEFhmA/wocJkJkRnSsR/qQJFt94f+5oJ4j9ysNRvStcUJVmt1HN/PSogf5E X-Received: by 2002:a17:90a:d78b:b0:219:20b8:a6fe with SMTP id z11-20020a17090ad78b00b0021920b8a6femr25081581pju.46.1671039188370; Wed, 14 Dec 2022 09:33:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671039188; cv=none; d=google.com; s=arc-20160816; b=fa6OmCvmEJHAkanl+whTcnX9dGA6rfvVng84cxcPUjMQp5Ty665Wx8QMGp96bfDgQw YaONRIgX8/EWQDij7wwHdwdQ/EkRzlpr7yIx5wfDAuB/SulJwLsH+cG9xS6WbBxq0Q5C SCIkN+7CrEnjxQ+We/3lieoj9O+8AGxIh1W/35T1i6HYOUVu4dZ/P8iAC9R8AlhcZZfK pEJod48uW3IXVrMuL3Gh1kZl1BXVSvhuvuj8JDLgefOOyVrlVKN/ecAvqP9N01zvM0x0 VoX8G/2bhpbsNa+gbhy794KlQVfQ7MPibkJ8Kys0l+knG0mop0TjODpA66ZYOJC897Rt uxuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=QrVuOH/3wJGoN8XD0CvfqgkQzfIFhiMjXzR3Vh6C210=; b=OxB5te84HKmfdEaDBxijR0NI6Ed+GZCj7y/gWHKg7AOjKrtSbovyS0SbAyyaPOHrbg POH7FKCKroArdp7rtUq6VV+JDA0iS4xycTH0xAeTtL92uodSdALg0PBcNgeKcRR+W/rr ya/q0Y+If1wpMJT9JXr/gB+1U4xAOFQQQCgIGtCXAK0I1cL/LN5HNCeWVCb44+lakBVV Qj1YaaozXeAO0xGI6d+9WVZi0Epm9Y7k3I+67hK5QqLEBnf7xplFfHbSaCC7bCuKUz6J lFei6ujbhLCWfvt85HB30JES92PH0TySO+4RZViUc6fHg2KJYPRIagG7AdGD5215oaR8 t7Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oG+md+kG; 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t23-20020a17090ad51700b00219c87a6928si2237191pju.90.2022.12.14.09.32.59; Wed, 14 Dec 2022 09:33:08 -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=@intel.com header.s=Intel header.b=oG+md+kG; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238826AbiLNQLj (ORCPT + 69 others); Wed, 14 Dec 2022 11:11:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238245AbiLNQLh (ORCPT ); Wed, 14 Dec 2022 11:11:37 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E806240B0; Wed, 14 Dec 2022 08:11:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671034296; x=1702570296; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=WjlEJHTSDyOZEITG6UIbC1rxW77QU7I7fDlGXpi7XAg=; b=oG+md+kGyUheCRLZDnWYOUzF+b+vGJ19HTR1KtSolUkKp+dvkzrBZQj4 Qqb8+zMaeAhqZ8sVxiF6UzTWxO5LyrKpCuhoWVdkWclgDg7TJAUn+Iehq 3JPLFP4FKOFSCx6N/rJS0aCXjJz+NEfUvsUeNrtFbrwcaWFm49LpDAurd hiC3hLE+9ImvhqJc0SqAhD1uo0xpwjX/h+4SqaMlFhsAdAvpfFcqvt50V kWqHWnUEpIuzTWULbqIo1JL2QcpIPEm8y+9ohJokDInz6naCAtdUU3CCW dTGYX+4vtF/pXUEaN1n8Yk1KUsYXT5aM4tz7f19YJwsyYHg9Y8hhUGInB Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="320302171" X-IronPort-AV: E=Sophos;i="5.96,244,1665471600"; d="scan'208";a="320302171" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2022 08:10:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="681552262" X-IronPort-AV: E=Sophos;i="5.96,244,1665471600"; d="scan'208";a="681552262" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga001.jf.intel.com with ESMTP; 14 Dec 2022 08:09:57 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1p5UKR-009tOe-1t; Wed, 14 Dec 2022 18:09:55 +0200 Date: Wed, 14 Dec 2022 18:09:55 +0200 From: Andy Shevchenko To: Hanna Hawa Cc: jarkko.nikula@linux.intel.com, mika.westerberg@linux.intel.com, jsd@semihalf.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, dwmw@amazon.co.uk, benh@amazon.com, ronenk@amazon.com, talel@amazon.com, jonnyc@amazon.com, hanochu@amazon.com, farbere@amazon.com, itamark@amazon.com Subject: Re: [PATCH v2 1/1] i2c: designware: set pinctrl recovery information from device pinctrl Message-ID: References: <20221214142725.23881-1-hhhawa@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221214142725.23881-1-hhhawa@amazon.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 On Wed, Dec 14, 2022 at 02:27:25PM +0000, Hanna Hawa wrote: > The current implementation of designware recovery mechanism fit for > specific device (Intel / Altera Cyclone V SOC) which have two separated > "wired" GPIOs to the i2c bus via the SOC FPGA for the i2c recovery. > > Make pinctrl recovery information to points to the device pinctrl by > setting the rinfo->pinctrl to dev->pins->p. > Change Log v1->v2: > - set the rinfo->pinctrl to dev->pins->p instead calling > devm_pinctrl_get(). Wrong place for a changelog... > Signed-off-by: Hanna Hawa > --- ...should be located here. ... > + if (dev->dev->pins && dev->dev->pins->p) > + rinfo->pinctrl = dev->dev->pins->p; Hmm... I don't see how this field is being used. Can you elaborate? -- With Best Regards, Andy Shevchenko