From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sender4-pp-o94.zoho.com (sender4-pp-o94.zoho.com [136.143.188.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7721336D for ; Mon, 23 May 2022 03:27:42 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1653276382; cv=none; d=zohomail.com; s=zohoarc; b=fkmQofsjO+98dyFjLpGMGHm1rCncUDAyVURj/wuCa1Lwf4gfnPPWTJ4eVbyKW+T1GP1bn8lPJqJuksKgyv6s1m5bCVeY55DIqpZnA+fdVNXc0W5AIiIAK98u8YfinXmuR8RSkoGhcLi0MzAz10cd5ApLkdCLkVHGmaOIY22nk6A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1653276382; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=C742maqsDCBLsWwyHCaXutaNY0ihb9hU+CWHxStgtiQ=; b=Uf9nSk3CbEfQlRubo7rS6lacSEy/SmD9PRx31jpTNojQlCi8J9GTI+UHJE1QS3jXHPBNqOO8QmHqYGVoZ7IdlSpBV91qsNgerfOAbMA8q9LKv7wzi/Afzbc6UuqpnOPZLs+pOTRCpl0Ag+tc5UG93/xEIGSxEPUSwHvk6qhctk8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=zohomail.com; spf=pass smtp.mailfrom=lchen.firstlove@zohomail.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1653276382; s=zm2022; d=zohomail.com; i=lchen.firstlove@zohomail.com; h=Date:Date:From:From:To:To:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Feedback-ID:Message-Id:Reply-To:Cc; bh=C742maqsDCBLsWwyHCaXutaNY0ihb9hU+CWHxStgtiQ=; b=MuiXSWXaQblyXU7N2UOjDIDgh3hROh2SwxbZzygJZAqpm9FQVDs571CiXWFBwNCn LlFwrsPCP/x3657WxjDPscduScjNo/YjyoEpFeQOBi528cGFUdUJjNJn253VRcBI+LO 3AE639LQvAyyIzj3R8aN2Og7se3E1wHPiznkfzfg= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1653276381726254.10901340424653; Sun, 22 May 2022 20:26:21 -0700 (PDT) Received: from [45.12.140.94] by mail.zoho.com with HTTP;Sun, 22 May 2022 20:26:21 -0700 (PDT) Date: Sun, 22 May 2022 20:26:21 -0700 From: Li Chen To: "Mark Brown" , "linux-kernel" , "Greg Kroah-Hartman" , "Rafael J. Wysocki" , "linux-gpio" , "Linus Walleij" , "linux-arm-kernel" , "Patrice Chotard" , "linux-sunxi" , "Liam Girdwood" , "Jaroslav Kysela" , "Takashi Iwai" , "Chen-Yu Tsai" , "Jernej Skrabec" , "Samuel Holland" , "Philipp Zabel" Message-ID: <180eef39205.122d47c8260721.2430302798386025245@zohomail.com> In-Reply-To: <180e702a15f.e737e37e45859.3135149506136486394@zohomail.com> References: <180e702a15f.e737e37e45859.3135149506136486394@zohomail.com> Subject: [PATCH v3 0/4] Add regmap_field helpers for simple bit operations Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Feedback-ID: rr0801122609b6495b0c41cf82ced2a6ad0000f903c0e7190508f10076ffa5cdb32a023e35d13ed8b5d0ab:zu08011227bd8716150e3321602f2377d5000022b88056309117e13cdd01d78586ed1f8e0a64231e3faced36:rf0801122cc6807eb4e9570bc3e723b81f0000ff2f6e76105ff9bb52a1afb89282b1e4a8b4dd0f7d4d1861ae81fe261e2c:ZohoMail From: Li Chen This series proposes to add simple bit operations for setting, clearing and testing specific bits with regmap_field. Li Chen (4): regmap: provide regmap_field helpers for simple bit operations ASoC: sunxi: Use {regmap/regmap_field}_{set/clear}_bits helpers pinctrl: bcm: Use regmap_field_{set/clear}_bits helpers pinctrl: st: Switch to use regmap_field_test_bits Changelogs: v2: fix regmap_field_test_bits compile error in drivers/pinctrl/pinctrl-st.c v3: fix regmap_field_clear_bits and regmap_field_set_bits implementation, reported by Samuel Holland drivers/base/regmap/regmap.c | 22 ++++++++ drivers/pinctrl/bcm/pinctrl-bcm6358.c | 2 +- drivers/pinctrl/pinctrl-st.c | 23 ++++---- include/linux/regmap.h | 37 +++++++++++++ sound/soc/sunxi/sun4i-codec.c | 78 +++++++++++---------------- 5 files changed, 99 insertions(+), 63 deletions(-) -- 2.36.1 From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 58114C433EF for ; Mon, 23 May 2022 09:25:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Subject:References: In-Reply-To:Message-ID:To:From:Date:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=X5VZ/jTUPeS3Y5JZiDZdNzyd/azGh2YJsKSoJFRnbZo=; b=AYOyAOVq7Wp9lgQ9h+TFnGosVs G57+fpTKiJl1xpzdUyr0XK+OwxfPA/OmFPbpOvZP832dUIu/ExMpwTIeejLiH7qkiz/xLieyVhJXU HgRcUS2IsBFYXb6KFyPZkwgK+WobWVVJ+LrjuXCZVk1JKam2CaRgIpuVHyWy/dEISoXHINjzsXTU3 AbfaAss7fyvSDDN5lSWufqBcUb+IkDsiG+4MFn67dBHVcJuKL8N+5jT9F/88Hl+olTIQCkYbEaiim 9Z1EnRmWE97xnr0S/vV7DBzy48i8o6BL39FrSY9r3Q9cbP0MOLBinnQX8wkff5tHiBszMfhpchIG3 k2ehMm8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nt4Hw-002oLn-24; Mon, 23 May 2022 09:23:44 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nt2rY-002AAA-Uj for linux-arm-kernel@bombadil.infradead.org; Mon, 23 May 2022 07:52:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From:Date:Sender: Reply-To:Cc:Content-ID:Content-Description; bh=C742maqsDCBLsWwyHCaXutaNY0ihb9hU+CWHxStgtiQ=; b=offKzkQJ9RytLGDSVe+Q65lMH3 mn6juLT7SZBSWjLJEAKOAduuKYHKBcFcOgyfn4eG3F25dFios2YumOfFbtbIwHFzLds/uB3AKUZzV wst7MLrllwo7stEqdhx/38UMmNbncmAYjB4+Qg6E7DkxFkzcOLzZcKGrUdvXw4W5bx/gfXKSCB2wV adtK6DG0OLS+CvWvoVa6/YL4py03CYYcV9Fa/kNCIv/T62Qb8mrgvhK4KmOv98MVFJpaMuWcHe4es JC4pfSHBuOdsiBzGuyEuv/dPCJ47Zc6sveTeETfxCKuYiMKLosYnfLkQPGEyy1089lV9b2uB7VCi5 +mcF8w+A==; Received: from sender4-pp-o94.zoho.com ([136.143.188.94]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nsyjJ-000nF4-VA for linux-arm-kernel@lists.infradead.org; Mon, 23 May 2022 03:27:40 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1653276382; cv=none; d=zohomail.com; s=zohoarc; b=fkmQofsjO+98dyFjLpGMGHm1rCncUDAyVURj/wuCa1Lwf4gfnPPWTJ4eVbyKW+T1GP1bn8lPJqJuksKgyv6s1m5bCVeY55DIqpZnA+fdVNXc0W5AIiIAK98u8YfinXmuR8RSkoGhcLi0MzAz10cd5ApLkdCLkVHGmaOIY22nk6A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1653276382; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=C742maqsDCBLsWwyHCaXutaNY0ihb9hU+CWHxStgtiQ=; b=Uf9nSk3CbEfQlRubo7rS6lacSEy/SmD9PRx31jpTNojQlCi8J9GTI+UHJE1QS3jXHPBNqOO8QmHqYGVoZ7IdlSpBV91qsNgerfOAbMA8q9LKv7wzi/Afzbc6UuqpnOPZLs+pOTRCpl0Ag+tc5UG93/xEIGSxEPUSwHvk6qhctk8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=zohomail.com; spf=pass smtp.mailfrom=lchen.firstlove@zohomail.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1653276382; s=zm2022; d=zohomail.com; i=lchen.firstlove@zohomail.com; h=Date:Date:From:From:To:To:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Feedback-ID:Message-Id:Reply-To:Cc; bh=C742maqsDCBLsWwyHCaXutaNY0ihb9hU+CWHxStgtiQ=; b=MuiXSWXaQblyXU7N2UOjDIDgh3hROh2SwxbZzygJZAqpm9FQVDs571CiXWFBwNCn LlFwrsPCP/x3657WxjDPscduScjNo/YjyoEpFeQOBi528cGFUdUJjNJn253VRcBI+LO 3AE639LQvAyyIzj3R8aN2Og7se3E1wHPiznkfzfg= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1653276381726254.10901340424653; Sun, 22 May 2022 20:26:21 -0700 (PDT) Received: from [45.12.140.94] by mail.zoho.com with HTTP;Sun, 22 May 2022 20:26:21 -0700 (PDT) Date: Sun, 22 May 2022 20:26:21 -0700 From: Li Chen To: "Mark Brown" , "linux-kernel" , "Greg Kroah-Hartman" , "Rafael J. Wysocki" , "linux-gpio" , "Linus Walleij" , "linux-arm-kernel" , "Patrice Chotard" , "linux-sunxi" , "Liam Girdwood" , "Jaroslav Kysela" , "Takashi Iwai" , "Chen-Yu Tsai" , "Jernej Skrabec" , "Samuel Holland" , "Philipp Zabel" Message-ID: <180eef39205.122d47c8260721.2430302798386025245@zohomail.com> In-Reply-To: <180e702a15f.e737e37e45859.3135149506136486394@zohomail.com> References: <180e702a15f.e737e37e45859.3135149506136486394@zohomail.com> Subject: [PATCH v3 0/4] Add regmap_field helpers for simple bit operations MIME-Version: 1.0 Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Feedback-ID: rr0801122609b6495b0c41cf82ced2a6ad0000f903c0e7190508f10076ffa5cdb32a023e35d13ed8b5d0ab:zu08011227bd8716150e3321602f2377d5000022b88056309117e13cdd01d78586ed1f8e0a64231e3faced36:rf0801122cc6807eb4e9570bc3e723b81f0000ff2f6e76105ff9bb52a1afb89282b1e4a8b4dd0f7d4d1861ae81fe261e2c:ZohoMail X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220523_042738_772823_B7B3DE95 X-CRM114-Status: UNSURE ( 9.71 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Li Chen This series proposes to add simple bit operations for setting, clearing and testing specific bits with regmap_field. Li Chen (4): regmap: provide regmap_field helpers for simple bit operations ASoC: sunxi: Use {regmap/regmap_field}_{set/clear}_bits helpers pinctrl: bcm: Use regmap_field_{set/clear}_bits helpers pinctrl: st: Switch to use regmap_field_test_bits Changelogs: v2: fix regmap_field_test_bits compile error in drivers/pinctrl/pinctrl-st.c v3: fix regmap_field_clear_bits and regmap_field_set_bits implementation, reported by Samuel Holland drivers/base/regmap/regmap.c | 22 ++++++++ drivers/pinctrl/bcm/pinctrl-bcm6358.c | 2 +- drivers/pinctrl/pinctrl-st.c | 23 ++++---- include/linux/regmap.h | 37 +++++++++++++ sound/soc/sunxi/sun4i-codec.c | 78 +++++++++++---------------- 5 files changed, 99 insertions(+), 63 deletions(-) -- 2.36.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel