Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1108266ybl; Thu, 22 Aug 2019 09:27:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDRpPcwUuQAvHFgTWXpA5AJmg75Xx5UEVHg5Q8YMdgq8/UnpsZHBYwaMfqm/uC+vJORK0o X-Received: by 2002:a17:902:12d:: with SMTP id 42mr13141509plb.125.1566491251150; Thu, 22 Aug 2019 09:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566491251; cv=none; d=google.com; s=arc-20160816; b=lZVeB6iNTp62Mk7Ea2pLHdeUhbQDLb6BAXAGuoEVuCbpnFlqg10H21MURMcE13YcAh +ZBwYTWY1pstT0rp8Fy03QmpmtYe5+m5+Mf3laRGdOoGcr8z0tz+5f79pEkvAE/+PjcY Csc82gGFbeix87TkYpLC61VuZnHBLIFVSkv3NTmQ14JhaiEq1ZQx8gmLjOUGmuX8pPL+ 7cY5brM/aMJ8fZLw9cvR1VWrCWXeYetw04Hbo8J20h/KnAvH/1E2UiEDHQgQnA00tj2G EujeMkIJ8o5fC+lyeUD2DhDGc3h+U2PCbfApudum1Cek+mruxQgPY0xF5QSMIll1Ffvt E66g== 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=stFPWQD4OB42jUkY0/WdGv+7wBODXIM2eM7goVh11GE=; b=HUJuEdRwjJwOtgcmDfe6vBTZNAkktLivDXU3acviElOSyJIB0/RutTFtvdpXrUrrkC cjtlIkfITXBvi8t2i0goXXxNKR6k2FWm1WR0ZEZTV7mJ1tfx3zseNFx3yxZ1+/7KWDp2 MMgaO85KMuZ3milwEea7/oqn8M1ZK3BbmQ0RUugfSJURtuhOeuYi3yOrGniK46iWU1WA G8wyWWTrIY4IF9mpbD43L5/V3nTKF+ovTpFPdMPO3CMziffADLo6FKG4D7jgQPP019yy 0SK/z4wRV/dmqzZAYNdiiczleSxzjp4Xwq0xziL99h5e9UNl+262/xCLHrIUI3CoRC01 Ue2w== 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 f22si10236207plj.247.2019.08.22.09.27.16; Thu, 22 Aug 2019 09:27: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 S1733047AbfHVLuU (ORCPT + 99 others); Thu, 22 Aug 2019 07:50:20 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:58326 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1731963AbfHVLuU (ORCPT ); Thu, 22 Aug 2019 07:50:20 -0400 X-UUID: 71a13bff9db64a2fa70989b6ffec4cbb-20190822 X-UUID: 71a13bff9db64a2fa70989b6ffec4cbb-20190822 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 1308780366; Thu, 22 Aug 2019 19:50:14 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 22 Aug 2019 19:50:08 +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:50:06 +0800 Message-ID: <1566474611.12318.9.camel@mhfsdcap03> Subject: Re: [PATCH v2 2/4] rtc: Add support for the MediaTek MT2712 RTC From: Ran Bi To: Alexandre Belloni CC: Matthias Brugger , 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:50:11 +0800 In-Reply-To: <20190822092008.GR27031@piout.net> References: <20190801110122.26834-1-ran.bi@mediatek.com> <20190801110122.26834-3-ran.bi@mediatek.com> <20190822092008.GR27031@piout.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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:20 +0200, Alexandre Belloni wrote: > On 22/08/2019 11:12:29+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? > > > > If they are compatible, this is the way to go but the file can't be > renamed (and that is fine). > > They are not compatible. Both registers and operating methods are different. Best Regards, Ran