Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1170167ybk; Sat, 16 May 2020 03:15:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1lGu5coOWBxxv0isbEm5SGac+h5ABYZHyMeTTYR9u2rojctCLx3gxsonxDMM7t5JNmZ5Y X-Received: by 2002:a05:6402:1b0e:: with SMTP id by14mr6112637edb.329.1589624107026; Sat, 16 May 2020 03:15:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589624107; cv=none; d=google.com; s=arc-20160816; b=V88t++NuigGxbAxUisEAcIL6LZ4XX4r0a5cgMCi4EfZxnTdnWdiaky/4EYOko1iefV RVEuPZrhCeXCJUt6t4zPXepSf1PbDPvCLsCl2+XsFyo3FqYJRzH2THV0HVR//pRkaxeH Jr4HTotG4eNQABeF8qMFjviR7rwoM7Ffp9Wa14bjqEgE5Sr/oFLyhPnjQ2pxFDYHV16u P7p/r8IBVULm4kayzxB1y06+Zk58modKgUNfCNjjZtSzyBbWPOW/MQuRPm4muySZZVa0 eDL3gmLA0gy6bmCvWM/AQRHO1f9fS3J9NW3Y8vnyLaEF823rbKwaAgeRIYbu6H87DUNr LA/g== 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=zStSSHGq5gQmDYLVefWI5JuXKhK3ughKSmR37kNuD1M=; b=HoBMZsbUEaNvpjalIUXJgmnz3SNRRCD+RgQF5zfwuOSVNnSNhDcQl7wgXSOSXSvXq9 NUDyrz8fcIaI0r1HoojkJ6+LQUbTHlW5Ou3oFtyiEKMwVdixfpz1GQURrT5UcZOcaP2E jRQ2UA/vHy87XuS7Aqgq18E7TGgXDfM5lx1j8jFTu+kcwghTTXSp/yQLrnFj2/dT/lz1 S3IIGB0BvjlOXyK4LFY35qcI6ProuuC6aRzGDk7tvXPUZX0iyyZHr6LYJHHLrHHkTphh Yb1S2RCQc2erYcoArdzd1AweWKt+2iCfMNCVjejsH4QEXeUoZ4qfp6/+64v/MNpBBv3L yCBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uUvSF0rd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id p11si2683160edx.300.2020.05.16.03.14.42; Sat, 16 May 2020 03:15:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uUvSF0rd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726237AbgEPKNE (ORCPT + 99 others); Sat, 16 May 2020 06:13:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725853AbgEPKNE (ORCPT ); Sat, 16 May 2020 06:13:04 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4283EC061A0C for ; Sat, 16 May 2020 03:13:04 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id u35so2251677pgk.6 for ; Sat, 16 May 2020 03:13:04 -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=zStSSHGq5gQmDYLVefWI5JuXKhK3ughKSmR37kNuD1M=; b=uUvSF0rd51cC55NRN/sKuf1dDFDOpo+/2DWzqnoiAD8CGMXfdng1fgx+/ZUMYdtn5x u86nmq7Hs0RFpZZy0Ed9u+K8f4Jq2GCVgmPRc7Og6X5/ocgos+5fZeab8ni5KqYA9hh+ bzY0cEV2Nl3QSVlhjuOiaV4WjvL7sFNMHd7Qh3JMs9LLmSlgwIdFtZXXRdCCkXrZprfu SYlTpo89ZauEf8kcjxfmfLdW5zQGR5uehvwc/IqmkoF5vTZUcYTHUNfDlyKrlaMvm41T vU/4lcZpoA+AFU0obKLa0QSl3V07eCsFhXHcRqVqvxuzyK7j9FKI/DqAWeL5ZhfHe6Hg kjvg== 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=zStSSHGq5gQmDYLVefWI5JuXKhK3ughKSmR37kNuD1M=; b=GAxVlqMG1qHa7SbCEF13sGaA2KSSQFk6nKfCK5/JqBvnh/eqAfTGTsIhHErec9ZlQw WeHcRrXD5ChHZ8VXse4K0VRDx707hKAkJWHUxSZIt7xOak70hSybL0UisvMWDjTIDPuX DPbuX8fxzfS+Of1JVaqebrnqCTqFZgK+EyW9zHDX+hKwgS46np1KPw2fU8i/5xwdL/4w rOPHOIoCOGzl8EcpSpWBc90v9JCOHtS0Vi1P5Q1CD6zAFo+NMIXQ15LVTxqiUQ49BKIo M+Y+kC9BrgWGZzVeLigirccMrZMYvXVFRftAuwf//EByMzGh/4jgp8pg2z8fxLVsxf8C LSjw== X-Gm-Message-State: AOAM533OftlZMpTrAW/o4arC2JSjx5/EArZtwyS5YKb/UCTIndr6EjM0 +1xl1HtvYg7/ATC+IU7edgc= X-Received: by 2002:a63:e809:: with SMTP id s9mr6997696pgh.191.1589623983347; Sat, 16 May 2020 03:13:03 -0700 (PDT) Received: from localhost.localdomain ([45.135.186.16]) by smtp.gmail.com with ESMTPSA id x10sm3554542pgr.65.2020.05.16.03.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 May 2020 03:13:02 -0700 (PDT) From: Baolin Wang To: lee.jones@linaro.org, arnd@arndb.de Cc: broonie@kernel.org, baolin.wang7@gmail.com, orsonzhai@gmail.com, zhang.lyra@gmail.com, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/2] Add new physical regmap bus support Date: Sat, 16 May 2020 18:12:27 +0800 Message-Id: X-Mailer: git-send-email 2.17.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 exports a weak function to allow to register a physical regmap bus to support this feature instead of using the MMIO bus, which is not a physical regmap bus. Any comments are welcome. Thanks. Changes from v3: - Remove vendor specific support from the syscon driver, and export a weak function to support physical regmap bus. Changes from v2: - Fix building errors without enabling CONFIG_ARCH_SPRD. Changes from v1: - Add WARN_ONCE() for seting bits and clearing bits at the same time. - Remove the Spreadtrum SoC syscon driver, instead moving the regmap_bus instance into syscon.c driver. Changes from RFC v2: - Drop regmap change, which was applied by Mark. - Add more information about how to use set/clear. - Add checking to ensure the platform is compatible with using a new physical regmap bus. Changes from RFC v1: - Add new helper to registers a physical regmap bus instead of using the MMIO bus. Baolin Wang (2): mfd: syscon: Support physical regmap bus soc: sprd: Add Spreadtrum special bits updating support drivers/mfd/syscon.c | 9 +++- drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/sprd/Kconfig | 16 +++++++ drivers/soc/sprd/Makefile | 2 + drivers/soc/sprd/sprd_syscon.c | 86 ++++++++++++++++++++++++++++++++++ include/linux/mfd/syscon.h | 11 +++++ 7 files changed, 125 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 -- 2.17.1