Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2259360rdf; Mon, 6 Nov 2023 08:56:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2lCqOdou1rVNhYwgNHi03RzZh/GPtZy7h0q4KIDS2ZP6+xJXi1obd5+r4OrJ9mnzEEA0Q X-Received: by 2002:a17:903:228b:b0:1cc:474a:ddc9 with SMTP id b11-20020a170903228b00b001cc474addc9mr21432687plh.28.1699289767249; Mon, 06 Nov 2023 08:56:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699289767; cv=none; d=google.com; s=arc-20160816; b=BN6DMQ4e+h+uKwrRiClfpLcj7mR+Ts0vcdLCCbmLi7g0SSAoDZkHTSeMRb2pxwq4sR fDvfLNASaHwAfn6HBLOd5+XeQu58mRaRPnxubyI3ETfDJuH5FZKOQ3TqG/R3ZgwiMbGu +E/tWfeikb/rOfEeNLJV0tayr2nX5qhmpr/U2GToRp5W8Tc37aulIRcwMCIdLxZSmeM6 JOpCeRXsXghDx8VWJboR/6EOJVqjxHz75/V8f7yWhOkz5NyvITOubUqYcm9iN5rKbI3j zbyBMWu3sCfk2LcD1e3zVNeoRYAziTuPTt4vg/b/CNT56HQ491uZgbAt9OLmIKeAWPDi s7ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=to0noIKj3smyTslrcSpVW7ThLni5b0+5kFT7uoURHlI=; fh=RHqhgpxwLu5yUEF3b1PP3zKMEdXw8d+SD+gTs6oa1tw=; b=TIo+bwgw1Fl5eB0Ns3LgccTtwOI7A8v2AxqYH5ytqkdTCuib+WWQ4uQAoySwsPDZy9 vO4YmMkrh9SayD/R+BkEopJ/O6x+ira9E5hi8rq2k5/b3nJWspzl7r9LKqRgsnWOFh9o EfhS/PNPKbLFWE14JyUc4g+LhMx+45yK90yqyxjiqp/0+KRDnLg/cTOb6xNU7Zc8oMKS N6Qyrvma6w/BYioSwLyZuKlaD7sXVAb3D7G1uuqiG0mCZXMfbFMtIuFDswBcswsKtaxi FLEUAJd0iwpRbRssVuWdJg4A+4MDiSBR7Di3AB3EoNQNGG32p33PicUYQlYcvn2sUcvG aGCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="RR/0h139"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id s9-20020a170902ea0900b001c72699dcd3si9127341plg.367.2023.11.06.08.56.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 08:56:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="RR/0h139"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id CBA8C8051A31; Mon, 6 Nov 2023 08:55:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232873AbjKFQyo (ORCPT + 99 others); Mon, 6 Nov 2023 11:54:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjKFQyn (ORCPT ); Mon, 6 Nov 2023 11:54:43 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E409C0 for ; Mon, 6 Nov 2023 08:54:41 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FB4CC433C8; Mon, 6 Nov 2023 16:54:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699289680; bh=3xXxDMffdKTQLBQnTzP0e5UhT4Stidfa/ERx0ZrGjwo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RR/0h139Zyd+825gFUPbn/Da1UOshWwS2bhxATJ8tVlAkE/Vr5s+SCCKfWHuErZDt +rPZvHoBjOCF53p/qstq1vAM/cqAxvgLyv7/Fd7uorisjkOknPQaPArzXDW3BuZVH6 dlbonxwgM4VBxpsNo7wAju/M8lUvxRj5cuYJdzAwAvUbJKrZj7Ujn2H/C8Nv41egyE BMaahPFHSla7YttBG32l7jb+epo2eY/kqL74Vc84V16fYUcEuULVjt4kcYS3uCURSw 2nDVwr3tlszQdIYaax8i9uf/f/ttpNiQTdYHNG8KnREZLC0V7kIw95zhieuFczV5yP vhkKe4yHmaBvQ== Date: Mon, 6 Nov 2023 16:54:37 +0000 From: Mark Brown To: Brandon Cheo Fusi Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] regmap: add regmap_update_bits variant to autoshift mask Message-ID: References: <20231106163406.33952-1-fusibrandon13@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fDKSb34zooPaposF" Content-Disposition: inline In-Reply-To: <20231106163406.33952-1-fusibrandon13@gmail.com> X-Cookie: Slow day. Practice crawling. X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Mon, 06 Nov 2023 08:55:01 -0800 (PST) --fDKSb34zooPaposF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Nov 06, 2023 at 05:34:06PM +0100, Brandon Cheo Fusi wrote: > +static inline int regmap_update_bits_autoshift_val(struct regmap *map, unsigned int reg, > + unsigned int mask, unsigned int val) > +{ Really not a fan of the name here, and in any case if the shifting of the value is an issue wouldn't this be a good case for using a field? Please also add kunit testcases for new APIs. --fDKSb34zooPaposF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmVJGksACgkQJNaLcl1U h9BpPAf7Bnykb22GZAW2TLe5X+BWpxuHcrWH3eKNLm7UAzwl03PmGcFmf8bT1C5q jF6nSL1PkO1xyNnpdXDPyC7xi+qMhiK4rc7eA9/1wkydf0aXjVIlpr9Thdfk5XpF yJ+mAPI2RBklovOFxWt6nQJAolu8k4Itfd5WzNXuB/OgrVwVneNzE0CLMZjcoDeM WBnwKFB/3WaTZ3pIeLrd9UCHuOwdNOIV6hm2/a2LWlafjc656/10VpGfjGXj4mR/ vpwVLgeljfz+FkjFAN/InksjJyOSB/fKRUTRlJ7SWfM/8N7e1MrzUbzehpHKO59y pkhgAk7dy2Devl2o7A0RMeiP3ylv3w== =qlyF -----END PGP SIGNATURE----- --fDKSb34zooPaposF--