Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3979301ybb; Mon, 6 Apr 2020 21:03:18 -0700 (PDT) X-Google-Smtp-Source: APiQypJycV8pCjzRr5cFuj33HgXIHsIxCIRcRIRlLDczdcxZe8hsHQGy8fKU2l4PZzTwuB/zsj49 X-Received: by 2002:a05:6830:15a:: with SMTP id j26mr48503otp.248.1586232198812; Mon, 06 Apr 2020 21:03:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586232198; cv=none; d=google.com; s=arc-20160816; b=X1wl0sc6Bwwjij7z/96swkTB0m1O9Kv8FmcrEt3LxAGup+Z444JUvHbIvnYZmTue/p s/heE4Vldyya/5DnOZ0hxtT99Z8GNqciRTG4rKIdM0EeIKY/GPkjm6i+MNPIoU/71qeR Xo39i6Dg2yYCeg0nnGrWP2ziu7JIBpV0W0QQe8zCaRWLX3aNpDx+nXQlWzYYY5Dl5vYg fhwMXoBNz0tIc0GoLv95BgDzo7swfJ2eF1bSJD/WsC7GEh0J3+Cnd2er7nuomj91hKOy 38x9Xda9RMGy308Yr/4VEE/WAObR4/nZZNrrqOuBzjtQ4qm/Z4NQUqLwL4IlY3upXKo6 z/DQ== 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 :dkim-signature; bh=tDfNg15w+Ek3LL7rOou7wOOIqGnTslzbpPXl9hJyd+0=; b=L/r0TDoCW30kfIcg9VP+lMyrketsmCa/0DWC6Ee6nUJabl8B9H0S30WogP/PrykQ2+ rWVlovur5F+Z00Eq0zZNfcs2JKuR/6IWtDDHdq3iR0V8cEq4azHXYhAhBON7Dy8vCN/I e2q07DdU0uyp8cKFwBkvXL6fDdh+hGYrUl2zUq2AHJHWzDC4cpne6fpgTRqSbE//u1eA Xzs554fNmzEo/Kk0PFlRrVAwERqvApoO2ygVNaWaUiMeJpt4zA3SvYCM/cLaQj/BiXpE y+cWvEKIdY2H9ObDHfqBkj8EjWLz5LCcWzxc5POT89TbzjVIpbJUk+96H5IW5fJxR39e 6imw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Q6VjkvOn; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m185si180629oib.102.2020.04.06.21.03.07; Mon, 06 Apr 2020 21:03:18 -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; dkim=pass header.i=@mediatek.com header.s=dk header.b=Q6VjkvOn; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726657AbgDGEBQ (ORCPT + 99 others); Tue, 7 Apr 2020 00:01:16 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:31731 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725802AbgDGEBQ (ORCPT ); Tue, 7 Apr 2020 00:01:16 -0400 X-UUID: 01ecef53abd240e3b45fe3e134db50d8-20200407 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=tDfNg15w+Ek3LL7rOou7wOOIqGnTslzbpPXl9hJyd+0=; b=Q6VjkvOnS8xSsd7Yb90johBvvQVleE/Z7yyQ8y8gZn9YdLTQkCDvFvaW9TECp6w0c9oO5Yte8zsKWfe8eesrqFoV5TKKfdDGYDzmvgHPJAOAc6r/zVpxEhqv20hiPrPTw5Qs9Cze1rdXNCArf/j/zL2fy4A9nXS66LzKay177gs=; X-UUID: 01ecef53abd240e3b45fe3e134db50d8-20200407 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1589193616; Tue, 07 Apr 2020 12:01:08 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 7 Apr 2020 12:01:02 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 7 Apr 2020 12:01:03 +0800 Message-ID: <1586232063.17821.2.camel@mtksdaap41> Subject: Re: [PATCH v11 4/5] rtc: mt6397: Add support for the MediaTek MT6358 RTC From: Yingjoe Chen To: Hsin-Hsiung Wang CC: Lee Jones , Rob Herring , Matthias Brugger , Alexandre Belloni , Mark Rutland , Alessandro Zummo , Josef Friedl , Nicolas Boichat , , Frank Wunderlich , Ran Bi , Sean Wang , , Sebastian Reichel , , Richard Fontana , , , , Thomas Gleixner , Eddie Huang , Kate Stewart , Date: Tue, 7 Apr 2020 12:01:03 +0800 In-Reply-To: <1585627657-3265-5-git-send-email-hsin-hsiung.wang@mediatek.com> References: <1585627657-3265-1-git-send-email-hsin-hsiung.wang@mediatek.com> <1585627657-3265-5-git-send-email-hsin-hsiung.wang@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-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