Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1113545rwb; Thu, 15 Dec 2022 06:36:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXvpxNVzHUecZO+7tdJrM6UIbZMD2eucQXsveBpxmntAHa9x9sTQQEau/IQ31iY5hP8dnlAN X-Received: by 2002:a05:6402:3226:b0:472:1f66:abb with SMTP id g38-20020a056402322600b004721f660abbmr7552352eda.40.1671115007526; Thu, 15 Dec 2022 06:36:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671115007; cv=none; d=google.com; s=arc-20160816; b=0bifpB3VYe5ahOVkSK2AFQgUZHnqO1Z/rSmLRBp4oMpr9AZ8xaLedvmezmpzVfWhpV 7vBlhJ/k0tHXU6OJozCPL0QCyzHhxt/r1PtHZDT5l0ZQzpx90bIhAaZBEhZEC52sSysH i3sm7Y33B/MmX9Ln5jHNr9wjoRsGJG6Lgs/clhu0Y/zQc4h46Y2ghdMy5GD0w8G1cOP/ vcU+Pddq3fcu+fMdftHqR//lkb+r9mzBWHez/EAl6/GNC1DOYYluqtO4MISto08HFDCQ V2TVqfYiuhNJWx9Kloz9+W18muB7cqruURVGYv0mXBJafEOU2EbyAgRT9fd39B+7poxR +BVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:user-agent:mime-version:date :message-id:subject:dkim-signature; bh=fB0YJoTNZ13u7b2pqa9Vd0vWw8xXi7NcxGaEYks4tfA=; b=vtx2ksJSpV1VzgrdL/hQq3ZQF9NNNe6/Hl4ro5iL7Q6dY1YEDU1iIh30KHPt+Vo4qH 70hAahReLwJvnm1COX3Dm3GIeAig2cbbXgidw2m9zbm3DMbEsTJMM9rZ1aX21FJKzpWH dxrZoIhP3LRMY1NlF5fwwKbLDxA9VA5FGHvrAt4hICoojCHJWSd6PCbGV1J2JEocyC3p p+KXDUhfyG37UMGu0B+A/UhSuFLCmbIM6zh9Rjqs3yLXV0/K0rA+hEU0GFS8mO4APUY7 E9OnMoLTrgYmQxV7j7BofMdBWBU9fzVobrbwBjCk/mGlXvzBVfaAlvB1Q0AnH/rojEYT OMjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=gKIoJFpc; 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 dr11-20020a170907720b00b007c103ce0cc7si13445236ejc.740.2022.12.15.06.36.31; Thu, 15 Dec 2022 06:36:47 -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=gKIoJFpc; 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 S229611AbiLOOZh (ORCPT + 68 others); Thu, 15 Dec 2022 09:25:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbiLOOZg (ORCPT ); Thu, 15 Dec 2022 09:25:36 -0500 Received: from smtp-fw-80007.amazon.com (smtp-fw-80007.amazon.com [99.78.197.218]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81F212A271; Thu, 15 Dec 2022 06:25:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1671114336; x=1702650336; h=message-id:date:mime-version:to:cc:references:from: in-reply-to:content-transfer-encoding:subject; bh=fB0YJoTNZ13u7b2pqa9Vd0vWw8xXi7NcxGaEYks4tfA=; b=gKIoJFpcY80ieHrgK6Ur86U8vYFs6i0G4lMGVecIwJUxkTW9HNaqYNPU S5y5+eVHy71qOAn5BKTfh+GqVGVnC0p14L9hKpNBI8WHv9AhjnpYRP9bW 52oQUoO44Gm27E7K9Tl25ulDT6fd91IDNiuE/pPyvmu50WtNiZPjQcXuG 0=; X-IronPort-AV: E=Sophos;i="5.96,247,1665446400"; d="scan'208";a="161790187" Subject: Re: [PATCH v2 1/1] i2c: designware: set pinctrl recovery information from device pinctrl Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO email-inbound-relay-iad-1e-m6i4x-6e7a78d7.us-east-1.amazon.com) ([10.25.36.214]) by smtp-border-fw-80007.pdx80.corp.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2022 14:25:33 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan2.iad.amazon.com [10.40.163.34]) by email-inbound-relay-iad-1e-m6i4x-6e7a78d7.us-east-1.amazon.com (Postfix) with ESMTPS id CAAE78224C; Thu, 15 Dec 2022 14:25:29 +0000 (UTC) Received: from EX19D013UWB003.ant.amazon.com (10.13.138.111) by EX13MTAUWB001.ant.amazon.com (10.43.161.207) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 15 Dec 2022 14:25:29 +0000 Received: from EX13MTAUWB001.ant.amazon.com (10.43.161.207) by EX19D013UWB003.ant.amazon.com (10.13.138.111) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1118.20; Thu, 15 Dec 2022 14:25:29 +0000 Received: from [192.168.110.120] (10.85.143.173) by mail-relay.amazon.com (10.43.161.249) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Thu, 15 Dec 2022 14:25:24 +0000 Message-ID: <9a31329e-ca83-84de-7958-4c795c2ccda6@amazon.com> Date: Thu, 15 Dec 2022 16:25:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Content-Language: en-US To: Linus Walleij , Andy Shevchenko CC: Wolfram Sang , , , , , , , , , , , , , References: <20221214142725.23881-1-hhhawa@amazon.com> From: "Hawa, Hanna" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 On 12/15/2022 4:06 PM, Linus Walleij wrote: >> Getter with a stub sounds better to me, so you won't access some device core >> fields. >> >> Linus, what do you think about all these (including previous paragraph)? > A getter may be a good solution, it depends, it can also be pushed > somewhere local in the designware i2c driver can it not? > I am thinking that the rest of the code that is using that field is > certainly not going to work without pinctrl either. the compilation failure occurs on platform which not define the CONFIG_PINCTRL , most of the pinctrl APIs are wrapped with PINCTRL config, for example pinctrl_select_state() or devm_pinctrl_get(). In addition if we add the getter in pinctrl/devinfo.h other drivers may access the pins field without re-call devm_pinctrl_get(). Thanks, Hanna