From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1DE37C2BB55 for ; Fri, 17 Apr 2020 08:30:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E2F6C221EA for ; Fri, 17 Apr 2020 08:30:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="aQt6PWo7"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="jqxe+4/b" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E2F6C221EA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:To:From:Subject:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DJKJ7gR52JKphoV46dtpQ7H/VN0SqAeCZVf/wYuqZ10=; b=aQt6PWo71/ITMn nzI1GXyXhWCW6PvDI8Tz5RoNCVQCGTiQPFGLHmY2pJ3AgQP4fTBhYV5czWw9UONqSe8PLV3mrnkMe OfxsPCzuAjYGug2HKZ8tnmAktiPJjk+Uvzgg1QgMTIxne7UzbgnAmX3yU8g3P3cI9vyxUcdXR4Vdb T2fpRnkeJzZy+dqrTVC9iZzMbuJhFGs5mAMfEXFOBDRaBn2yI2V3qDcmncyfBSDUv7zhdcveyWKNL z5ilZ9mk1fTgW7+DrvxwsLuPMVA6EG+5qRusFySZD1Z62jWnBlULDwtwBcN1gx0o+oURuksNksfLy koIFeV+3fAkhiBFRsR3g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jPMOQ-00013s-93; Fri, 17 Apr 2020 08:30:34 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jPMNy-0007K2-Qx; Fri, 17 Apr 2020 08:30:08 +0000 X-UUID: 57ff5ea3c91f47b2aeb60cca1685d7ed-20200417 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=I69XZhCGCT6PHGSQl+2FE2AZcxuaF8LTOGfpLh230qU=; b=jqxe+4/bHncovWXXVhvU0o0AsCAmL08SKhpRxzft9v+YWGHN/hqpG3sa/ED5QB1DEXD8Fa0Ohs2H8CN1vFBRvAsDyLaVWgjTsP9ICb8I4SgTDZ79Id48q79qrOsA7x7tXpdY4KXhg1Oa+5xAkUI8ugCyReHEstiSE66a9v2a/7k=; X-UUID: 57ff5ea3c91f47b2aeb60cca1685d7ed-20200417 Received: from mtkcas68.mediatek.inc [(172.29.94.19)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1016742161; Fri, 17 Apr 2020 00:29:54 -0800 Received: from MTKMBS01N1.mediatek.inc (172.21.101.68) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 17 Apr 2020 01:29:59 -0700 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 17 Apr 2020 16:29:57 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 17 Apr 2020 16:29:54 +0800 Message-ID: <1587112169.12875.2.camel@mhfsdcap03> Subject: Re: [PATCH v12 5/6] rtc: mt6397: Add support for the MediaTek MT6358 RTC From: Ran Bi To: Lee Jones Date: Fri, 17 Apr 2020 16:29:29 +0800 In-Reply-To: <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> <20200416091438.GA2167633@dell> X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200417_013006_990913_8481B110 X-CRM114-Status: GOOD ( 18.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Kate Stewart , Alexandre Belloni , linux-kernel@vger.kernel.org, Richard Fontana , Hsin-Hsiung Wang , linux-rtc@vger.kernel.org, Nicolas Boichat , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Frank Wunderlich , Sean Wang , Rob Herring , linux-mediatek@lists.infradead.org, Matthias Brugger , Thomas Gleixner , Eddie Huang , linux-arm-kernel@lists.infradead.org, Alessandro Zummo , Josef Friedl , srv_heupstream@mediatek.com, Sebastian Reichel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 2020-04-16 at 10:14 +0100, Lee Jones wrote: > 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. > I suppose that you mean the order should be like below, right? Reviewed-by: Yingjoe Chen Acked-by: Sebastian Reichel Acked-by: Alexandre Belloni Reviewed-by: Nicolas Boichat Signed-off-by: Hsin-Hsiung Wang Signed-off-by: Ran Bi > > --- > > 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. > I will fix this at next patch. > > +#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_ */ > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel