Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2666949ybz; Mon, 27 Apr 2020 02:07:35 -0700 (PDT) X-Google-Smtp-Source: APiQypL0HxopjekGtOLjw20d3LbI7Ij0//uIEfVeNXvFbakv1+I8yEjTbx+k5NnjE+WEwZRs0Ps7 X-Received: by 2002:aa7:cc03:: with SMTP id q3mr18005589edt.131.1587978455559; Mon, 27 Apr 2020 02:07:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587978455; cv=none; d=google.com; s=arc-20160816; b=jO73s8ZIsVLWirjn5CT83kOLsEwMsHX5aSxufb2iIGOKAuP1qLoXSWn47OBTE3YTrT l/M0nho/JS32cgVqKluMCgEGkTwGF345NDb7APlesS+Oo1+exTZjV9/vRxEEPICemv0P 4QRzwe2nVpA2Thh/5B1iF+nP0OCrg7oVqNe45nIHQiuk/BxHG/HZSDdJGssi+NHDhWIe hHz/Xb0tX5Qkmwa5G/uzrVribzWO0Jt5Ue8S7h6kK0eJfn50bnTUaBCqga5Uq0TclOIb qtw4uNgTKVOTGp1Pgd9LjgJ8O9SPymnXYH47p7BwHH7fve0qNZ2a7cX04xb9XsQ0ze+b 4Ttg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=t0Qb3M+KoO7rshy7LxfHgJoujvSz6frs1GElCox2b5s=; b=HBMtEm3pjtJh1LCkyXvDErQLWJUFbyUbHgTXS02fdDvE2W7Y2PJxgA9NayCUeCWTT0 E/En5eJ8pAAcHwzUoYyaoEuu9pYJeNrT8PV5U7bKYNvLU6sU4HPDEoMJrgblf4c24JBA hr78wg0cjk8wGBcmRq5EBw61Z+fGmWPf4liUA4z4gOG2soswP3eVhlAjGTs5Z1HoUIv3 15ky8eaZnR+GpM00Ar0ksx4RI4gNPM9aDhsieAHPYmuwjpzEvOgoDnO3vbQnd+p1M5S+ ioYI5tOMV9fREL4iT9P7fGI7iDvG/hQRiDHsBczc3BRR/a0HKn1FfF8DifzTCtbhgUnw bPUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KiFPn5ig; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lu44si8223358ejb.394.2020.04.27.02.07.12; Mon, 27 Apr 2020 02:07:35 -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=@linaro.org header.s=google header.b=KiFPn5ig; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726867AbgD0JFZ (ORCPT + 99 others); Mon, 27 Apr 2020 05:05:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726183AbgD0JFY (ORCPT ); Mon, 27 Apr 2020 05:05:24 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59E01C061A41 for ; Mon, 27 Apr 2020 02:05:23 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id d17so19582932wrg.11 for ; Mon, 27 Apr 2020 02:05:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=t0Qb3M+KoO7rshy7LxfHgJoujvSz6frs1GElCox2b5s=; b=KiFPn5ig/JKiOhaz02UnaLlnM3E8H8eyZzRXSgpgUO41XBVvN2o0dl8F35rNzr5/fP M6d4vtcAdWrgC2ZqKCoTgLP4AgzuIMc1qN/3l/+HxvYd1zY0rJhpp9LNNi9k1kFhlyBZ ymqiZ6+D/a+5NUOtNineXVJL593LPnBbBKiTxurunGLd5ELXd8bYFwg+xhk6NNxKfTNf 6CBdSmQY8GKAzYPVGKG53XQ3FeoIaZXG7yq5nsIEtHFm0L9lO4N80M2L0xDLhGiegXKx tigV4d7V10rfAc9U9fdzaXGRfJKJAMq7gifpJIt6BDgTeVY+pEsAGXTqg18enuabO6YL UPEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=t0Qb3M+KoO7rshy7LxfHgJoujvSz6frs1GElCox2b5s=; b=KiNUCGZYgaoDfiUcwDQWVCDoyAZBZcqbUzUqEv615AwUF6Df8B007Fsf64KvypLOYU gGWOeF7q2vPPBIdSVig29mRXYEyz2OFUbFuVM/M1KDOPK/c1ximj7ZrOdMvR59bRYq0M jOpt2xwqsGtIuIpxpTqviLedD2xkFhRLvFDK2serNL+N1kCO3mjjctAWUxYuZtXRIV0Y r86c/brsArCek7K9ZscNGRb9BXu9rjrJ/ecL6qGbKKqdp1cIehtDeueUaXvtGDpc7nEM gYAcuLBztiL33ClQ5K187h+WeouWtvLMyudAGty7SIOjTx+n8bz3f/aSHA/0Fka/gOtm NS3A== X-Gm-Message-State: AGi0PuZ+qB0DtaeYB7adH6/HfshBJnMcYM4yD42FhvlpnKN5K1Qvb5/b KTuECDNMaC8heIHLI+Bxq+6QeQ== X-Received: by 2002:a05:6000:11cb:: with SMTP id i11mr26886292wrx.339.1587978321185; Mon, 27 Apr 2020 02:05:21 -0700 (PDT) Received: from dell ([2.31.163.63]) by smtp.gmail.com with ESMTPSA id l9sm19962876wrq.83.2020.04.27.02.05.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Apr 2020 02:05:20 -0700 (PDT) Date: Mon, 27 Apr 2020 10:05:18 +0100 From: Lee Jones To: Baolin Wang Cc: Arnd Bergmann , Mark Brown , Orson Zhai , Chunyan Zhang , LKML Subject: Re: [PATCH v3] mfd: syscon: Add Spreadtrum physical regmap bus support Message-ID: <20200427090518.GG3559@dell> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 27 Apr 2020, Baolin Wang wrote: > Hi Arnd and Lee, > > On Tue, Apr 21, 2020 at 10:13 PM Baolin Wang wrote: > > > > Some platforms such as Spreadtrum platform, define a special method to > > update bits of the registers instead of read-modify-write, which means > > we should use a physical regmap bus to define the reg_update_bits() > > operation instead of the MMIO regmap bus. Thus we can register a new > > physical regmap bus into syscon core to support this. > > > > Signed-off-by: Baolin Wang > > Do you have any comments for this patch? Thanks. Yes. I'm not accepting it, sorry. I'd rather you duplicate the things you need from of_syscon_register() in your own driver than taint this one. > > --- > > 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. > > --- > > drivers/mfd/syscon.c | 83 ++++++++++++++++++++++++++++++++++++++++++-- > > 1 file changed, 81 insertions(+), 2 deletions(-) -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog