Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1433803ybb; Thu, 9 Apr 2020 01:59:14 -0700 (PDT) X-Google-Smtp-Source: APiQypKU+pyWSXP4XIYzJOPM8wnlB5hNLDzZICHLhnwIYrzmdb4i9VBczjcuQogbWT4Hplti5xhe X-Received: by 2002:a9d:7a45:: with SMTP id z5mr8589025otm.181.1586422754655; Thu, 09 Apr 2020 01:59:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586422754; cv=none; d=google.com; s=arc-20160816; b=OWOHi/U6oxzFN3c1YdMv9H2w0jOUl1kFHPVw9ADFVfwKPKDNg1/yoQuiwbVamLYdlI D8j8N7uqxpl/b/CLNqQTA0+O04lkEheNMTOffqlxvifttyQb38ccdErs9sCsRF1Ez8rr i7TDF7P2I4DFYiDvDu236Z24JMQRluVkWi2RVBWX+9rtHjoLdfxrcDc+SyAseDs6ELBa jabgdVPKJ7JMoCany75f8WnN5lDtYCGCv4IoHrBmSNYUbe3YshGiqCgToNiAtxPjtyCO VGCZplkwPzIQgHt4vTW8kZsvNKS648yQTbsMP2uE5zk7pERize3nJFmMj+d3TsmnRmwp L4cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=pFn4OMnDDLKgXIP5nx2xdBewzGyuxCTnvHNcK/l63Co=; b=IY1s6ZarneozssWH4swX9LUEcUgAGExK5RIMdBeHpUzYi5Sbicl8bFlSJ5OiQmhMug oBKxDxVU3jJB6Oh0aKdOiZtQ4rsvxMU60AoRIwGNiItfzNJcuPzlSpphSdsqgmAXZF8s fXzN/MlnJ4Hpe2LSyP399nqzSo4eO9S+z2ZdhfbGSOaCUaTNgDYCl8MVsVUQgrFLNkh6 UDNAIzIczKaZByTGpzntyst31wJb9TaXh5ejli42zbVdFJ0+NbrMCPaKs4QCeNzdki5H 82cb4svXgLIAecNXp8ngEUb80uNNObnO8u3DYSESeGwF84oEXCqVpLsTFZ8m9LuGZRhK ne1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rgRZyxiG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c22si3088570oib.266.2020.04.09.01.58.58; Thu, 09 Apr 2020 01:59:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rgRZyxiG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726583AbgDII6N (ORCPT + 99 others); Thu, 9 Apr 2020 04:58:13 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:33647 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725997AbgDII6N (ORCPT ); Thu, 9 Apr 2020 04:58:13 -0400 Received: by mail-pg1-f194.google.com with SMTP id d17so4703477pgo.0 for ; Thu, 09 Apr 2020 01:58:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=pFn4OMnDDLKgXIP5nx2xdBewzGyuxCTnvHNcK/l63Co=; b=rgRZyxiGRReNfcQhXzvTpaRnHsy9eJajInQtX7EkOxSOmx1M39WdAbF+Fq0mwigk2o 6ts80SIi33sfi/mrOBsTrHxypz2K5Ki5vTWCsbzWcJTRRGBlLdUKaaRuPC2X7YPS/tLG UEMfN2ZIvF9ZYZKbxkHCdOlKqVOGLaFHyo8ANPvc7cNJXw9JZKys9kavmgFWWxyXwdeD caehXiqEt897fjcwKCX6yZhO3T00pQwGOpfxqmgIwPTBowjBrPVpMXvT/kApytTpgRDi rkMHM5aWE8BomFudyUKcLeor0BXq2TD+3Drf9hio5xjT8pmOutMUqXtLFvasXvMKRg6k UVZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=pFn4OMnDDLKgXIP5nx2xdBewzGyuxCTnvHNcK/l63Co=; b=lj59mdS5pGxZg5eP7y9/spBXzlsQ4HB8RdZYP0SWmsTR1iXHBR2a/q9hJUKLYbIVWE 9qSMnPqkbBx4NrLiLPcmiBHcOP23ly9FZQ1hr8mG6bljO4HCpFlSSsedwQcaAojEHPq9 mcx2xw3MuQg6JDDNuFTjoWXHjk1bMlG8/ow1G8xAgJRkzrTaiuxedwc8kUmNI1cPP/mL 4Q9MTqMw2YRs8WB1abmVcrJV8Ia+roHResfsqm5YsuY3+PijUBhpy5+UZ31P1CKWb/B6 ux03vEjwkAq0b0jAryyD3UJo1PZzqC2XHOJ2tkoY+4dqw7nkD6lo95pB5IeiHEhNOo7p bQTA== X-Gm-Message-State: AGi0PuYuRKPVLKef9KqPKiU9ELeyjCUHusem9P5OQrcTAqEdU0jcuxgw rP2lwrrTYkbrNqVeWFIAhrY= X-Received: by 2002:a63:5716:: with SMTP id l22mr11039119pgb.164.1586422693333; Thu, 09 Apr 2020 01:58:13 -0700 (PDT) Received: from sh03840pcu.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id s9sm1561712pjr.5.2020.04.09.01.58.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Apr 2020 01:58:12 -0700 (PDT) From: Baolin Wang To: lee.jones@linaro.org, arnd@arndb.de, broonie@kernel.org Cc: orsonzhai@gmail.com, zhang.lyra@gmail.com, baolin.wang7@gmail.com, linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/3] Add new reg_update_bits() support Date: Thu, 9 Apr 2020 16:57:56 +0800 Message-Id: X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Spreadtrum platform uses a special set/clear method to update registers' bits, thus this patch set introduces a new reg_update_bits() callback, as well as adding a helper in syscon driver to support this feature. Any comments are welcome. Thanks. Baolin Wang (3): mfd: syscon: Add reg_update_bits() callback support regmap: Add reg_update_bits() support soc: sprd: Add Spreadtrum special bits updating support drivers/base/regmap/regmap-mmio.c | 29 +++++++++++++++++++++- drivers/base/regmap/regmap.c | 1 + drivers/mfd/syscon.c | 10 ++++++++ drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/sprd/Kconfig | 16 ++++++++++++ drivers/soc/sprd/Makefile | 2 ++ drivers/soc/sprd/sprd_syscon.c | 51 +++++++++++++++++++++++++++++++++++++++ include/linux/mfd/syscon.h | 8 ++++++ include/linux/regmap.h | 4 +++ 10 files changed, 122 insertions(+), 1 deletion(-) create mode 100644 drivers/soc/sprd/Kconfig create mode 100644 drivers/soc/sprd/Makefile create mode 100644 drivers/soc/sprd/sprd_syscon.c -- 1.9.1