Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1107159ybl; Thu, 22 Aug 2019 09:26:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFsVRgyFbCBbotteubvuyT+1pgK8MS5VIQS9/y2OLGDe/zC9Bayl5Ox8AE6PsmbhhnrJW8 X-Received: by 2002:a17:902:566:: with SMTP id 93mr40883901plf.172.1566491191659; Thu, 22 Aug 2019 09:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566491191; cv=none; d=google.com; s=arc-20160816; b=EMR3Z+VFlPYvZ0I1Z0rWcpKlZ/hY4bsVXjqBq2qGLJjoxJW8jLezApzj4AsD/3Ud7N cA3pXaxBtazwex2G3gS5anL9tjql8dqPWLIgBZqtSaXbO+K1RlW3+NIWmY+ThUymL1gM kXuQM2yi9UchGwawAcv2cRnm8/C2FHa2dLpvGxZhpeCQBmG6vSriGpBN6k3p8/ijeXVI PYornbN8kKLb4rz+UwgpPNiGFs1WjNuWjF2wHzBPiJiSOkQm0v1CueblGxorETeATfKM 8E8nVrZLkdyXX0ThpJ+92N73RvQTNft6bzYs3gCb9ZsYDBuswn75SMWxpw8Txq+b6NXH OyEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=ighPq1Ts3M5q00uXUfceljvvpqVYJS2unKUEak25kQo=; b=rx5+LhwijC8AeBjFvW5/m7XQBV9/9Dg0IrX5KUS14HLFFCT23ccf//LIqdcz7JLX7W qfdSSfV4U5lj+DaDNJ0QWHisASe1310MSlEP7Ohy4k1u5zbbz9gwwwM0LffQhO9z1E8S 1iCZiDWEHETFls+TemVECgjYtLZNx0jgOa3gsmAyO3osCTAJYqjp2RD6KuNBqLBKpLXx XYsYuydCYoh370h7fbISp+zOT/g1OwPhElJFjRotqWvP1Z8bIPXCjCWhdv1J5rBdFaAm GDWTky8O8gfYOwB0spxMVsV9xuPLGHAqf3MbpVtL23rlXyh6RBWOtBHrsWAzAMtNEw+W 2s2g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v14si103158pjb.82.2019.08.22.09.26.15; Thu, 22 Aug 2019 09:26:31 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732929AbfHVLr5 (ORCPT + 99 others); Thu, 22 Aug 2019 07:47:57 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:29466 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727310AbfHVLr5 (ORCPT ); Thu, 22 Aug 2019 07:47:57 -0400 X-UUID: b1ba783c964143cabbdbb3840f5fdad6-20190822 X-UUID: b1ba783c964143cabbdbb3840f5fdad6-20190822 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 790826270; Thu, 22 Aug 2019 19:47:52 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 22 Aug 2019 19:47:46 +0800 Received: from [10.17.3.153] (172.27.4.253) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 22 Aug 2019 19:47:44 +0800 Message-ID: <1566474469.12318.7.camel@mhfsdcap03> Subject: Re: [PATCH v2 2/4] rtc: Add support for the MediaTek MT2712 RTC From: Ran Bi To: Matthias Brugger CC: Alexandre Belloni , Rob Herring , Alessandro Zummo , Mark Rutland , Mauro Carvalho Chehab , "David S . Miller" , Greg Kroah-Hartman , Jonathan Cameron , Linus Walleij , Nicolas Ferre , , , , , , , YT Shen , Eddie Huang , Yingjoe Chen , "Flora Fu" , Sean Wang Date: Thu, 22 Aug 2019 19:47:49 +0800 In-Reply-To: References: <20190801110122.26834-1-ran.bi@mediatek.com> <20190801110122.26834-3-ran.bi@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-SNTS-SMTP: 07BEDA87CE6DE420B3D64B7B18F56819C1B1580EC0478AB37A2E93247614A2FB2000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-08-22 at 11:12 +0200, Matthias Brugger wrote: > > On 01/08/2019 13:01, Ran Bi wrote: > > This add support for the MediaTek MT2712 RTC. It was SoC based RTC, but > > had different architecture compared with MT7622 RTC. > > > > Signed-off-by: Ran Bi > > --- > > drivers/rtc/Kconfig | 10 + > > drivers/rtc/Makefile | 1 + > > drivers/rtc/rtc-mt2712.c | 444 +++++++++++++++++++++++++++++++++++++++ > > Can't we just adjust rtc-mt7622.c (and rename it) to unify the source for both > devices. What is the difference that we need to write a driver of our own? > > Regards, > Matthias We cannot merge rtc-mt7622.c and rtc-mt2712.c together. These two rtc hardwares have totally different design. Registers naming, registers offset and operating method are different.