Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp980000imu; Fri, 21 Dec 2018 10:25:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN7WhOGi8O1O5n51Yh3KRiDHTDEibUnwZNctaO9Ch1xB7URGHgU9gqmlD5dY1TSUBVIpoCRF X-Received: by 2002:a63:b94c:: with SMTP id v12mr3385394pgo.221.1545416743268; Fri, 21 Dec 2018 10:25:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545416743; cv=none; d=google.com; s=arc-20160816; b=WgZ6mRrgM7J+R5jEuiXTJ4Fzs0moggNO4ZeF1UNcCa9IBamq03kU0qLDPQQtpN4lMc 9+3v1R6zE8JWhfMbWqyzARhlsqnBVWtA89HOxm1kbn6adPZEPQrw4I55/TP33pMm8Igs Kxr6me56r3nL3KYskfG59idrRnfCQtQ9PjjQrKZYQFzp8aBvqluTnsFONo4Y0BhMtOKU NSGUMC5AHZV/UGuODw6X1hs1Ztl3Bh7AxzR+FxuD5VIGlFEfGlSVYBnrYpu9kJWJQpQ9 y37MnlvWXlmn3egia+5fd8I6umVUMnl+OPgTtyNjUsnmeJ+SNxG2S65wy53ibTDFgv0R Fp0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=EB0JfesGYgbWF+Ith4TP66Sn8hz/mqLZYtr9a9gl4hE=; b=tH6OknM2lz9TbLUaKEJE7gxDrFyJnN8LInZziNDr1scUBqghFshwCSzLMic2PS7/Aj 0kBViozIK3dcyWoER8EAeekz+1+07icWme8b3gbqP/T8//6wnPmIiQfXWuQdqMInF5Q2 te4JoxWA+VulYmtGz+7ma06Jla53B3YARkGgHNA3bK3YMCIbbb9NkDL5VoUGL0ifmnk3 AvWu6U6ULk7rCBs6YkRI83tgQJZJ88AbmWy1n93bMx8eeSx8y1oUTD7GyiXvD7jl15RD bHc7nfaZhiWW4P142egBTkLJSLt9TKXVpTrjpRYufOiwYw7qeScIgbkgujBGpr6TGTF1 MWeQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g187si21770416pfc.43.2018.12.21.10.25.27; Fri, 21 Dec 2018 10:25:43 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731604AbeLUJYw (ORCPT + 99 others); Fri, 21 Dec 2018 04:24:52 -0500 Received: from mail.bootlin.com ([62.4.15.54]:54454 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725860AbeLUJYu (ORCPT ); Fri, 21 Dec 2018 04:24:50 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id F11F120763; Fri, 21 Dec 2018 10:24:47 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 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 Cc: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "a.zummo@towertech.it" , Aisheng Dong , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , Andy Gross , "horms+renesas@verge.net.au" , "heiko@sntech.de" , "arnd@arndb.de" , "bjorn.andersson@linaro.org" , "enric.balletbo@collabora.com" , "amit.kucheria@linaro.org" , "ezequiel@collabora.com" , "olof@lixom.net" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-rtc@vger.kernel.org" , dl-linux-imx 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-Type: text/plain; charset=us-ascii 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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