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=-5.5 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT 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 F3C95C43387 for ; Fri, 21 Dec 2018 09:25:06 +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 C38AE21909 for ; Fri, 21 Dec 2018 09:25:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BVgs3E9/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C38AE21909 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.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:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Nk+NxvKIXOCLjJq46kMkM/oNI+8Xpb40t0gaKEJKZbY=; b=BVgs3E9/80OiQ9 KbAM0acNtDXoaYHmJ6rFlXFU0KERWDCFyZN+dmw1C/dkRdDcrsMWZhAge6+DeDXdzKyqvwTWly/tI wBwmKE35XZ7i2OjXAtwi9tbVoVlPmXprL7Rg784KP52CF0m5OgoN8r5uQsiCUnsRJgx/5fohpUR1R pwEmIPWcM0C0KaWVKfmh7SzUKdM5mNLIrRjqQArE4a12T14ds3AlLKtZ+06pubObvq9TpCZ/2vU+j cPAwXxA/eJuOWBJaGSFTmUHklXd9t6cB1CI0vi3eWq7QDuV+HBPm4VrUCeL+OxKycm+CWeaoYMIsl DFxsSLT/SDyuxtXLyslQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gaH3I-00005m-Mo; Fri, 21 Dec 2018 09:25:04 +0000 Received: from mail.bootlin.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gaH3D-0008Fb-GD for linux-arm-kernel@lists.infradead.org; Fri, 21 Dec 2018 09:25:02 +0000 Received: by mail.bootlin.com (Postfix, from userid 110) id F11F120763; Fri, 21 Dec 2018 10:24:47 +0100 (CET) Received: from localhost (lfbn-1-17122-186.w86-248.abo.wanadoo.fr [86.248.186.186]) by mail.bootlin.com (Postfix) with ESMTPSA id C0C5620747; Fri, 21 Dec 2018 10:24:47 +0100 (CET) Date: Fri, 21 Dec 2018 10:24:47 +0100 From: Alexandre Belloni To: Anson Huang Subject: Re: [PATCH V5 2/4] rtc: add i.MX system controller RTC support Message-ID: <20181221092447.GM2188@piout.net> References: <1545295872-20169-1-git-send-email-Anson.Huang@nxp.com> <1545295872-20169-3-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1545295872-20169-3-git-send-email-Anson.Huang@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181221_012459_669333_BFB9DB44 X-CRM114-Status: GOOD ( 15.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "mark.rutland@arm.com" , "heiko@sntech.de" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "bjorn.andersson@linaro.org" , "linux-rtc@vger.kernel.org" , dl-linux-imx , Andy Gross , "devicetree@vger.kernel.org" , "arnd@arndb.de" , "s.hauer@pengutronix.de" , "enric.balletbo@collabora.com" , "robh+dt@kernel.org" , "horms+renesas@verge.net.au" , "ezequiel@collabora.com" , "linux-arm-kernel@lists.infradead.org" , Aisheng Dong , "a.zummo@towertech.it" , "linux-kernel@vger.kernel.org" , "amit.kucheria@linaro.org" , "olof@lixom.net" , "shawnguo@kernel.org" 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 20/12/2018 08:56:16+0000, Anson Huang wrote: > i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller > inside, the system controller is in charge of controlling power, > clock and secure rtc etc.. > > This patch adds i.MX system controller RTC driver support, > Linux kernel has to communicate with system controller via MU > (message unit) IPC to set/get RTC time and other alarm functions, > since the RTC set time needs to be done in secure EL3 mode (required > by system controller firmware) and alarm functions needs to be done > with general MU IRQ handle, these depend on other components which > are NOT ready, so this patch ONLY enables the RTC time read. > > Signed-off-by: Anson Huang > --- > ChangeLog since V4: > - Add dependency on IMX_SCU to avoid compile error when IMX_SCU is NOT enabled; > - Use dev_err instead of pr_err; > - Remove unneccssary different errors check in imx_scu_get_handle which is already done in API. > --- > drivers/rtc/Kconfig | 7 ++++ > drivers/rtc/Makefile | 1 + > drivers/rtc/rtc-imx-sc.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 99 insertions(+) > create mode 100644 drivers/rtc/rtc-imx-sc.c > Applied, thanks. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel