Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3449622ybl; Tue, 21 Jan 2020 00:40:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxuXJIwu0oRuMTC72dmrmDIoVmROXlm29MXLxRFK6KEwRR430Drc0AoDfeLGV7RK520noj/ X-Received: by 2002:a9d:c02:: with SMTP id 2mr2778649otr.183.1579596011596; Tue, 21 Jan 2020 00:40:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579596011; cv=none; d=google.com; s=arc-20160816; b=EXRA8GdQiiU1Tshiws77i0hW/KJI3JpGq7uoXeFTWEZQonXFCHD0Lwsa1q5kcY/viF 3tyvhSj74N0fTxJcc2gzDAtKHPAcznmXd13hVz5Qu2YfcffGJ7Llbg8N33r3mRQvW2Xx iAU+P4iDHKuLu2SoBMi1BENqagVJUfoLMzWckMk1SBuo6Q5WpIbXWnhq09KOpTgYHagz HV/Dwz/g02ECse0BJV+9lSMmTMaZB/5g3VPJFVm5/cW1cDDanja4tJ3xtwAAVEcXchEv +l80fCQkWyVc6WEREb0Am2I+1qcuTG86a6vRg084de+40E+JkZQ/kWU7aZ56r2g678L5 A2fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jk5Wx13aALIRFc9OEyWr5O2M9z/s/X8a3dyscVUUbeM=; b=Rg2KywLX0Uv73utnziT4pMDfkyXCuJOP8CRSfZwATI4eONNkgOsqIUwW511pPVZgLp xgmYiCX7+JM2yr3dJpgqMttgnpW8qsLT0rHDAFevaWRlbcDoC89GuSOjL0tP8gRtRrJa XfOqtctBb60Jtlw0TKDCOqWQnru7Fy3tNZw+wSL39bzJ/ZYrG/aKDFRghZs0TlM+JNdT O6O40/d+o3Tbwl1JSSOOLf3+4kE92kT0c7owqqaR/8N8G/VFIbKGwJQ0h4aD0AAyZsa2 w7bEj8Oc/HSFvbSKGONvb+2I67AuaXPjTeJl/t1O0M02cVNpPJw2vsuPfNe5t+4Uns8I Uqnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Vu72ipY4; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si21607108otk.215.2020.01.21.00.40.00; Tue, 21 Jan 2020 00:40:11 -0800 (PST) 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=@linaro.org header.s=google header.b=Vu72ipY4; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728799AbgAUIiN (ORCPT + 99 others); Tue, 21 Jan 2020 03:38:13 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:43524 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725890AbgAUIiM (ORCPT ); Tue, 21 Jan 2020 03:38:12 -0500 Received: by mail-wr1-f67.google.com with SMTP id d16so2109806wre.10 for ; Tue, 21 Jan 2020 00:38:11 -0800 (PST) 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 :user-agent; bh=jk5Wx13aALIRFc9OEyWr5O2M9z/s/X8a3dyscVUUbeM=; b=Vu72ipY46bRKQQcMO0zOsxUNH1XRZcBQX9175sZt0Z4vkWD93rkpHHRMg4bSceUiHD NnwG3kiEKtI7pvIXFGVoJ3aTsXCFLMmSxBxzL51EGbkSBQoCOvVTp1T+qMuPCJUJS7R3 5VkgPuErnwfzuIzckGG3n3ks+OxbFz4rfuURVjQN2qn3IXAE8umVqYE0c0YhVxys0WmO cxelVH0LHVLQVmIJhdNpDvltOD8R02JCq6KXuKOeq7kocD1yc3EZXa9fuX665zzSajZA zzd3OUOcOWi9OXIa/4YBLgr8GBRlksdRq0mk0vEswoPJttwcG3u89QQVJma65/taCebk 6srA== 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:user-agent; bh=jk5Wx13aALIRFc9OEyWr5O2M9z/s/X8a3dyscVUUbeM=; b=KI3b4JruWnhSf8Fe8JF02PO4dWImnFzp2SooH0bodKa8IXNeOO4gs+9lo7caoNwX58 7xg3mJxPhipotelNqZ0SLWkuD30K1je1htEqvynBBaBE9CmdvxTdaWVZrl1kVqQjEgru OTYDlMHuY+E6DWPOyebmSetsnMJz/ra5LGqYnoijPJMnGkPlLPL6Q+ALn4zwYpf8yZZO oOXjrPmQCK61Ti+7v6P8E6FoGXsjaLFuYAJ1AxOegLsVyWcyoWEB9KJca0X3OO424Rk6 HEpSqQGK/2ztF1sF1cLHN02gTNovRki2mDSlzaUaQAHuldv/ovESOsBwSADGaC7Wy6/n Bbuw== X-Gm-Message-State: APjAAAXrUkexzv3SxqWT2JXM4AR77MIJWj5bzXbyr6eB9mwcN0xSGYTU fUS7S1fIiljhMOZTve15H83dNQ== X-Received: by 2002:a5d:6408:: with SMTP id z8mr3920795wru.122.1579595890851; Tue, 21 Jan 2020 00:38:10 -0800 (PST) Received: from dell ([2.27.35.227]) by smtp.gmail.com with ESMTPSA id b17sm50814845wrp.49.2020.01.21.00.38.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2020 00:38:10 -0800 (PST) Date: Tue, 21 Jan 2020 08:38:25 +0000 From: Lee Jones To: Orson Zhai Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, baolin.wang@unisoc.com, chunyan.zhang@unisoc.com, Orson Zhai Subject: Re: [PATCH V5] mfd: syscon: Add arguments support for syscon reference Message-ID: <20200121083825.GI15507@dell> References: <1579590578-8709-1-git-send-email-orson.unisoc@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1579590578-8709-1-git-send-email-orson.unisoc@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 21 Jan 2020, Orson Zhai wrote: > From: Orson Zhai > > There are a lot of similar global registers being used across multiple SoCs > from Unisoc. But most of these registers are assigned with different offset > for different SoCs. It is hard to handle all of them in an all-in-one > kernel image. > > Add a helper function to get regmap with arguments where we could put some > extra information such as the offset value. > > Signed-off-by: Orson Zhai > Tested-by: Baolin Wang > Reviewed-by: Arnd Bergmann > Acked-by: Lee Jones > --- > Change V5: > Removed unexpected preceding spaces replaced by email system. > The patch has been tested for local mailing and applying. > > drivers/mfd/syscon.c | 29 +++++++++++++++++++++++++++++ > include/linux/mfd/syscon.h | 14 ++++++++++++++ > 2 files changed, 43 insertions(+) Applied, thanks. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog