Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3106323ybb; Mon, 30 Mar 2020 21:08:20 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsRTB8kFDQzX3e5xMPhuL389OACupVcPPM3jz94UqDAXge6UoPZuLiHTAMXqTNreK3VTYn0 X-Received: by 2002:a4a:92cd:: with SMTP id j13mr12111976ooh.96.1585627700703; Mon, 30 Mar 2020 21:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585627700; cv=none; d=google.com; s=arc-20160816; b=AiMac4gwVgb9MpdFgK+YqfKd2v+c/k6e/kTjawz0c3C3UyaeJuqrvgxMaT3H8zl+u9 cIq+KOzBPxOS5GpTNcuygnbLiB5eYfFQvoNOHkQ5w5IOJtD8eQE2XgdvEWvIUINCzHYK vVnQwNIMtYepY7Nh1fCszdXSVrCU80KDjZtgcMTHf/h7Fl6kYUGvMYxXOfLLiA4smg8D Wwu0W8geE+4Tw9AKqfur88fNSc6UKDPK4HeGdPxns6dNVf84mI5+O6dj0HbT8QO4LcAj Ns1hd/2Y8HEzF9PoVlMAiGROKoJaZo7uoOIakhoLmFFVsoQ0A8eZmwVpTfh3p4w47Nq4 BJNw== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=U6Q1mnGYOtg9IfYqJ21CXjqAm8LRNeM9DhjP0Pg/xQ0=; b=gJ4gqHQvMOFofVDu0c6UFypuIYT0xv6eNoDdCTXPV54f1XywaKBLn8EPz1JI1dFU4/ CyY0HeIC/8aQUztFs/IgznnLKXXzLJMau2azFQyv4g/ENly2hk4dczPa+GtIrQ0Nqith SrMhZ9FvQ/3N2BlgQ9g3MU/y4Da9Qe0Jp8SJoa18YStlHTY497NXnUOdIqKdNGPskVQR MEj0yWGJpUnCNOekm7hTurVmI7WlmXs0yAuAfqoK8CY1yjkpv4R8hP8on9786dBMJQgN PhU756sO7FIKd1UJOaeZYomL/jxQAE/zc5/XRRrcpSWG5lACRM1uI/GMcVtDm9OHzwpd rONQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="REPe9Fg/"; 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 y10si7343456otk.128.2020.03.30.21.08.08; Mon, 30 Mar 2020 21:08:20 -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="REPe9Fg/"; 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 S1726426AbgCaEHs (ORCPT + 99 others); Tue, 31 Mar 2020 00:07:48 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:58280 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725792AbgCaEHr (ORCPT ); Tue, 31 Mar 2020 00:07:47 -0400 X-UUID: 628a8654f425445eacba6045dd5d9d9c-20200331 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=U6Q1mnGYOtg9IfYqJ21CXjqAm8LRNeM9DhjP0Pg/xQ0=; b=REPe9Fg/MnD6nr55rTIbHeFZexNFa97hcuRIC7wuyqIps3sVAmJQ0n8VpWDB+vNYnsvHpwpVKvZbpmJqjp7iQqgjGlUPinzbY1czgd5ce0PpPq7zshrsRJeWuiSZEes5FIOXWcUqzgZbV6MPFK+sSHQW1zmaI5U2Lvb3AWru6xg=; X-UUID: 628a8654f425445eacba6045dd5d9d9c-20200331 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 38801241; Tue, 31 Mar 2020 12:07:41 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 31 Mar 2020 12:07:39 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 31 Mar 2020 12:07:40 +0800 From: Hsin-Hsiung Wang To: Lee Jones , Rob Herring , Matthias Brugger , Alexandre Belloni CC: Nicolas Boichat , Mark Rutland , Sean Wang , Sebastian Reichel , Eddie Huang , Alessandro Zummo , Kate Stewart , Richard Fontana , Frank Wunderlich , Josef Friedl , Thomas Gleixner , Hsin-Hsiung Wang , Ran Bi , , , , , , , Subject: [PATCH v11 4/5] rtc: mt6397: Add support for the MediaTek MT6358 RTC Date: Tue, 31 Mar 2020 12:07:36 +0800 Message-ID: <1585627657-3265-5-git-send-email-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1585627657-3265-1-git-send-email-hsin-hsiung.wang@mediatek.com> References: <1585627657-3265-1-git-send-email-hsin-hsiung.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJv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