Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1085698rdh; Fri, 27 Oct 2023 04:33:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIC1Im7YyFSOcXg6H2GvGEQiDplG7frkl8lOOX0o3D9QqVe2Q2wTCj/speHrQJYyKXNjhv X-Received: by 2002:a05:6830:14c6:b0:6bd:db8:db with SMTP id t6-20020a05683014c600b006bd0db800dbmr2230167otq.32.1698406399321; Fri, 27 Oct 2023 04:33:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698406399; cv=none; d=google.com; s=arc-20160816; b=bGQJRyK8SQ+0Bjk4ZXum4YlcPLFkJp9mpNB/WI7bSJJdvDISH/Khf4P6oAV+PeEDAE hpOOH1PcN0foK0AvGPZ1nh69gnnIkgMYHeeG5J/PxRTES/8N0VNl1JsfYL7rgg3l0zGm Etw1puqOitZJAJE+z+69xgsYxCmlZ9C7LhOsBlfVetw9Z23BMLl+s8x9BKCEgB6TEADC YtmOey9/nWrJdEfzIk5mPTdUiSP9Jop/spo7qOG0ww2fBeSdxl1bPcXrHnSavcR5zTSz JzyeehfKu0xzoNJEBIcoMJIwoSfr9U9SUrMsRzYzrc+TlMAXzAhT0Ea0OIAsW+Io9gC2 0sqg== 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=YmoC43LQXGK/Cpy4jQF2qO5xaL73FtpB2FgCcpe7HkM=; fh=0dfSBSkrpfhdvwmy97gQ6MhpJu2TYy9nuG6mNWfyoVA=; b=coS4bB/BhKfPjaQmbYNjK4lKqCif30J32grRNBzenQm4DouQxS5u1xBQAxjtx2NfcB FRg0weo814qKUnTZu48sZF0/bzmF93qNr4+gGsFc5KM8nsH8jn2eUj3d8PJdBHAkV7jt 5bxJm/O0RJON4RH1mAOG355R/jlHmDw24LM8L7mDP6ZdZJLeGgirFfbY3qevgt8D3Il5 pUM2+WpcBP/yHJjoNpumNTQxlJPdS7Nny6AnBPhWgaESe1JaoAE4Lgdl1YoLyBUSYxQ2 8YpBK62XjRqOJgPv0mXkeQ3napqB/4d3TDoWbjTRsX9FtpESzesWQSKrYjf4usEuahwP 7pKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IRq+7+iu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id s5-20020a815e05000000b00589b2fcfbaasi2515424ywb.201.2023.10.27.04.33.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 04:33:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IRq+7+iu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B9F118074681; Fri, 27 Oct 2023 04:33:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231760AbjJ0LdJ (ORCPT + 99 others); Fri, 27 Oct 2023 07:33:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231770AbjJ0LdG (ORCPT ); Fri, 27 Oct 2023 07:33:06 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACA3F1AC; Fri, 27 Oct 2023 04:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698406385; x=1729942385; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=dRYmGR3I5MgS4CYaxSz229MI2vtrH0ER7fq+BA+NuSw=; b=IRq+7+iuLpp+aOuNLs8AoySMCizgMlrwWTnLCfAp4d4ZSi0sfsxrd6/q iGJ3Rt1jtyBJt1TCEt/b/3fHWttX7pt+gCkHoWoCPF+BF5FmsW4d4KpWq kffNMXUd5l3VOKNt2zoiv9774lNm3zSgIBdgqHsNbhee9+A8jlygMW77O ipGGDspjxvimZ5kPTy1GeqPdZ8uP9tNwoTkbqKPG73Zol8oF5KBQP4KuV 0tD+pLM/Vf7fRXKS0UbtXGgxE3YadFpF1JOccUh1fd2ff30HBwPCcQbxP 9mQzEVr//INsQMr9Rb4F8iG163Swz/t4neLZxrhOravlIf3g5xnfnBRGl w==; X-IronPort-AV: E=McAfee;i="6600,9927,10875"; a="9297396" X-IronPort-AV: E=Sophos;i="6.03,256,1694761200"; d="scan'208";a="9297396" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2023 04:33:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10875"; a="825314891" X-IronPort-AV: E=Sophos;i="6.03,256,1694761200"; d="scan'208";a="825314891" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga008.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2023 04:33:01 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC3) (envelope-from ) id 1qwL1o-0000000988M-2LVq; Fri, 27 Oct 2023 14:29:24 +0300 Date: Fri, 27 Oct 2023 14:29:24 +0300 From: Andy Shevchenko To: Linhua Xu Cc: Linus Walleij , Orson Zhai , Baolin Wang , Chunyan Zhang , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, lh xu , Zhirong Qiu , Xiongpeng Wu Subject: Re: [PATCH V3 1/6] pinctrl: sprd: Modify pull-up parameters Message-ID: References: <20231027071426.17724-1-Linhua.xu@unisoc.com> <20231027071426.17724-2-Linhua.xu@unisoc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231027071426.17724-2-Linhua.xu@unisoc.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 27 Oct 2023 04:33:16 -0700 (PDT) On Fri, Oct 27, 2023 at 03:14:21PM +0800, Linhua Xu wrote: > From: Linhua Xu > > For UNISOC pin controller, there are three different configurations of > pull-up drive current. Modify the 20K pull-up resistor configuration and > add the 1.8K pull-up resistor configuration. > Fixes:<1fb4b907e808> ("pinctrl: sprd: Add Spreadtrum pin control driver") > > Signed-off-by: Linhua Xu I guess I already pointed out that there must not be blank lines in the tag block, besides that read "Submitting Patches" document to see how properly format the Fixes: tag. ... > -#define PULL_UP_4_7K (BIT(12) | BIT(7)) > +#define PULL_UP_1_8K (BIT(12) | BIT(7)) > +#define PULL_UP_4_7K BIT(12) > #define PULL_UP_20K BIT(7) > #define PULL_UP_MASK 0x21 > #define PULL_UP_SHIFT 7 Basically these two repeat the above 1.8K case. But I see that you try to take care in the next patch about them. Still, the better is to use those _MASKs and _SHIFTs in the code. See below. ... > if ((reg & (SLEEP_PULL_DOWN | SLEEP_PULL_UP)) || > - (reg & (PULL_DOWN | PULL_UP_4_7K | PULL_UP_20K))) > + (reg & (PULL_DOWN | PULL_UP_4_7K | PULL_UP_20K | PULL_UP_1_8K))) if ((reg & (SLEEP_PULL_DOWN | SLEEP_PULL_UP)) || (reg & (PULL_DOWN | (PULL_UP_MASK << PULL_UP_SHIFT)))) > return -EINVAL; ... > mask = PULL_DOWN | PULL_UP_20K | > - PULL_UP_4_7K; > + PULL_UP_4_7K | PULL_UP_1_8K; mask = PULL_DOWN | (PULL_UP_MASK << PULL_UP_SHIFT); Ditto. -- With Best Regards, Andy Shevchenko