Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1075629ybz; Thu, 16 Apr 2020 02:19:27 -0700 (PDT) X-Google-Smtp-Source: APiQypJu1TDTot8Aa90+rmgqAXfRbvY8gFXj7I55BHsFn91QgPj+BBjzU5Awg14VFCLF+q2NSyCK X-Received: by 2002:a17:906:d14b:: with SMTP id br11mr8938802ejb.213.1587028767344; Thu, 16 Apr 2020 02:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587028767; cv=none; d=google.com; s=arc-20160816; b=tLQ2AL0rR5wWwBXNJim2d0bWGTjxDiwmT0OWN4YAE5MRpMo6fxtWdO8N7iZVCg+1rv UjEboDBu61AQht5Clq/x5GdubridF4N3viN2VPZFQnyswaEFPuBfjmcFHXMdki6jx6ol mTwtWjpiODuAADbiYas0jgai0dz2yjtvtr6fpohEvLV13jUd5aJ7E1acYQX+P8TOxtdv RptzguxLN7/UCexkIxNFgVmPzR0U/ltoMNGoXk1xr2NyHy1rt1EDqFaMoggjhEQshnX6 5OejrpW9nqPucHnQwDUkwJrxaKXgfGfFK0n87Vo53S+L3h3uVUx4fv2Gs6xT47olCZI3 gp+Q== 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=AyKKf2vu9ets5qQ05mKeEx+H3HJdeMhyf7LDU6EPmvg=; b=suEPrKU+ZuUuefWqCvLktXdKxIJYxnDz/Fa/Aff/1MiuovRvoy077+52qqOqewWv1B XFjA+Dr/dXiSoV6TCcsCVyg62HSjzxOk1bEVHtBIKV4lyQBPneehzVh3bl7Iyc6eGUmq N3nGTUroj5iJEqTX6FITUdPxQMceMxAWOhmgI4LFFElCch2iC4Pa9dzEbkpCMxLJAONj R2kNjG7MuNdUjhAde9IOmu7yW7H4lLowpCdCIrMwzUXxzS1sUzlNZZV/ITD6lpcwi3Ie pmbHwBMmu+1m1XjXMIOKrSwS7sEAne+AQYxNWCWz/ZzRiXNojDt6FISRsQZ6g6yW64hv +LwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h79u+RID; 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 k5si11898630ejk.345.2020.04.16.02.19.04; Thu, 16 Apr 2020 02:19:27 -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=h79u+RID; 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 S2503805AbgDPJPN (ORCPT + 99 others); Thu, 16 Apr 2020 05:15:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2502571AbgDPJNl (ORCPT ); Thu, 16 Apr 2020 05:13:41 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10B40C061A10 for ; Thu, 16 Apr 2020 02:13:40 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id k1so3950164wrx.4 for ; Thu, 16 Apr 2020 02:13:39 -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=AyKKf2vu9ets5qQ05mKeEx+H3HJdeMhyf7LDU6EPmvg=; b=h79u+RID/Tw8EjEr7PzOeW67I5riBs6/JV027laFW3VtXjta4zpbT4owqSzSYadzXI UooqVXoXGL1A8oAByZdeXkLIJKTO01hEePh4C5fzehOrUdnbfQ1pEs9kiyqYoA/KX+JH 1qMRtfcJSHijAK2OGm7YZmCKbHczogdEeoL22Pw+vKfPbVBWs4ymX9eJohxZQNiYHrt4 ev6JtRiaXOHosoQtEI6ZEvp9wcTaGhtxQIVftu4d8viJsibPKXtJvkzZsh+8sFdMla2G mZm9iRn+HrGu+Q6eydYFxopmA1r46j4zcJCjdDXVsTQRSFhEB8VLG7f5460IgaYT+mVk jnYA== 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=AyKKf2vu9ets5qQ05mKeEx+H3HJdeMhyf7LDU6EPmvg=; b=sdLc/ABF7eknoHDbKB7DbrGudFNAXwd3OnjxH9r5pl1FGPmHGt3N48JxSugSObo5kH wDohtPRLIK2H77Y9mzuEjl84CoRSOlHxK8kO3+9V7sJdoNveqL8WpVkomPmuWIURN0/X phAB/z+JJCDhMyhccHabA/b+lfgAxXJvRRrIW28qKdqJCgthDB9CE26cI5zjcxL/ugxO BSjP+d8mxnj6lGsKOsP7YqGIYrDgnKKzSnpSHcT/P4yzIAf3h3PdYPpQZD8ri95UCtUp CVQYPPxGafj4S7ihEjUmdYTlvzOv3cdSBskKBYm4RXG7SD+aTCFIoVhS1oe7ip9KJch4 SE2Q== X-Gm-Message-State: AGi0PuaUXdf8D9MTBBAbp13Jj32vpVzQq29N24sE0nKMs+GDQw7Va/37 rW+QPydUeyxB5uMDQYVLCKv2NQ== X-Received: by 2002:a5d:68cf:: with SMTP id p15mr4801408wrw.139.1587028418328; Thu, 16 Apr 2020 02:13:38 -0700 (PDT) Received: from dell ([95.149.164.124]) by smtp.gmail.com with ESMTPSA id b4sm21818100wrv.42.2020.04.16.02.13.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Apr 2020 02:13:37 -0700 (PDT) Date: Thu, 16 Apr 2020 10:14:38 +0100 From: Lee Jones To: Hsin-Hsiung Wang Cc: Rob Herring , Matthias Brugger , Alexandre Belloni , Nicolas Boichat , Mark Rutland , Sean Wang , Sebastian Reichel , Eddie Huang , Alessandro Zummo , Kate Stewart , Richard Fontana , Frank Wunderlich , Josef Friedl , Thomas Gleixner , Ran Bi , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-rtc@vger.kernel.org, srv_heupstream@mediatek.com Subject: Re: [PATCH v12 5/6] rtc: mt6397: Add support for the MediaTek MT6358 RTC Message-ID: <20200416091438.GA2167633@dell> References: <1586333531-21641-1-git-send-email-hsin-hsiung.wang@mediatek.com> <1586333531-21641-6-git-send-email-hsin-hsiung.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1586333531-21641-6-git-send-email-hsin-hsiung.wang@mediatek.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 08 Apr 2020, Hsin-Hsiung Wang wrote: > From: Ran Bi > > This add support for the MediaTek MT6358 RTC. Driver using > compatible data to store different RTC_WRTGR address offset. > This replace RTC_WRTGR to RTC_WRTGR_MT6323 in mt6323-poweroff > driver which only needed by armv7 CPU without ATF. > > Reviewed-by: Nicolas Boichat > Reviewed-by: Yingjoe Chen > Acked-by: Alexandre Belloni > Acked-by: Sebastian Reichel > Signed-off-by: Ran Bi > Signed-off-by: Hsin-Hsiung Wang Please place these in chronological order. They should provide some history, rather than a unordered slab list of random sign-offs. > --- > drivers/power/reset/mt6323-poweroff.c | 2 +- > drivers/rtc/rtc-mt6397.c | 18 +++++++++++++++--- > include/linux/mfd/mt6397/rtc.h | 9 ++++++++- > 3 files changed, 24 insertions(+), 5 deletions(-) [...] > diff --git a/include/linux/mfd/mt6397/rtc.h b/include/linux/mfd/mt6397/rtc.h > index 7dfb63b..6200f3b 100644 > --- a/include/linux/mfd/mt6397/rtc.h > +++ b/include/linux/mfd/mt6397/rtc.h > @@ -18,7 +18,9 @@ > #define RTC_BBPU_CBUSY BIT(6) > #define RTC_BBPU_KEY (0x43 << 8) > > -#define RTC_WRTGR 0x003c > +#define RTC_WRTGR_MT6358 0x3a > +#define RTC_WRTGR_MT6397 0x3c Why remove the leading 00's? These are now different to the other regs defined in this header. > +#define RTC_WRTGR_MT6323 RTC_WRTGR_MT6397 > > #define RTC_IRQ_STA 0x0002 Like here for instance --^ > #define RTC_IRQ_STA_AL BIT(0) > @@ -65,6 +67,10 @@ > #define MTK_RTC_POLL_DELAY_US 10 > #define MTK_RTC_POLL_TIMEOUT (jiffies_to_usecs(HZ)) > > +struct mtk_rtc_data { > + u32 wrtgr; > +}; > + > struct mt6397_rtc { > struct device *dev; > struct rtc_device *rtc_dev; > @@ -74,6 +80,7 @@ struct mt6397_rtc { > struct regmap *regmap; > int irq; > u32 addr_base; > + const struct mtk_rtc_data *data; > }; > > #endif /* _LINUX_MFD_MT6397_RTC_H_ */ -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog