From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932503AbbI1J5S (ORCPT ); Mon, 28 Sep 2015 05:57:18 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:60614 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932269AbbI1J5R (ORCPT ); Mon, 28 Sep 2015 05:57:17 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: "Leizhen (ThunderTown)" , Kefeng Wang , Hanjun Guo , Catalin Marinas , Tianhong Ding , Will Deacon , linux-kernel , Xinwei Hu , Zefan Li , Greg Kroah-Hartman Subject: Re: [PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64 Date: Mon, 28 Sep 2015 11:56:43 +0200 Message-ID: <1493434.sLUZ1A9ljb@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <56090C08.8070003@huawei.com> References: <1443418478-8240-1-git-send-email-thunder.leizhen@huawei.com> <2245172.1ESUGv0DKo@wuerfel> <56090C08.8070003@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:QWbzRvSIZ+z4+aqCk46ixzqecMPPrFYJ2W6Lp55HM6r4YnbunBb MBjiJ7aCLI1Coliw98TC8EgZTb1zRY9+GquvjQEr0dRAyz2ohkpiVMkmt+VMARz3lAJOoMj 9+KayWVLK6FfWU5njzNglTgzrvdX1Zh17C0EXIYCzj7mDgO2gISyZ4DKX95aHwG2EFewrf+ yVnulMg14GIZ1zQIiOAFw== X-UI-Out-Filterresults: notjunk:1;V01:K0:la4sCCE6Kzw=:9xubNQPmq7DMrSvc9sQJWW wjy2q79XVhYx23k9NFQAZTPa1tubKxdq+iowbvA3Je7Wv4hfSilsPfBT7endq1Pynzv49RWLZ jVK4GszCZp45IWmm0DgH7BGazycebQS6YL4Q4Cf/suXYhN8wx3U6BqHqzCanAZe9CpMgq6KR8 JeamSyuKAB6/fdAk3rzy7uagoukU7iCIU8946iY5BRyhxdbTrYQUpFbp4rf4ED1u8VqBX1wfL /dER9io+9+KPbXWm2rea8w0OxNX10gqyn50KfzNUYMIe+QdL/gBD+RhyggNRZaFeltE9x0u7g VEaJmnNVrCRKrvTwDjm11ghc45ThwBE+lWXvRgk0mJ11IiFqAeELTkwNnVdevFxMEYwY0arhJ Fgwhm8X3+z7p590h+JThZwUDLxDHXvZ31HWneTBUAjVeeFmU5ufNHuEE6kyusnO/Yby43Fxan Li9vHdMI+zD7VwC7GDTk7iWlJQvwGfwzSrY79x6pczM5M5a5kFr2wiMj0HQWtwMJKnAkZ402O IN0d8wMdlbbDSxrrRdIEzuTmsuCD/i6NNOY4jB/fM24gbOkJ1xBw0r7MS1WD2sbF/hkHzw9io 3g6uRgQ7H1IMUgDMGAdQOneZXropFeVo8Y3ufp+t/JEq5e54H3P87iLzClg1DUawXF+hrUUrO t/4lUCb77Su3OUATJLMkRmWpr9m+G6qU+hiw1A+kJFMWCu35wnwr6etEsRi9agCJ/XmqNT7ko VjhfVFIy7IFQHt/L Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 28 September 2015 17:44:40 Leizhen wrote: > >> No, on non-EFI platforms, they can still use RTC as before. As I mentioned above, > >> RTC_LIB only controls whether to display some configs when run "make menuconfig". > >> On ARM64, (in this patch) I only allowed EFI_RTC can be showed when RTC_LIB was > >> not selected. > >> > > > > but that is the wrong driver that uses the legacy API, we cannot have that > > on ARM because it conflicts with the normal RTC_CLASS drivers. > > Yes, RTC_CLASS will automatically select RTC_LIB, and will not display EFI_RTC, because > RTC_LIB=y now. > > We can select EFI_RTC only when RTC_CLASS is not selected(meanwhile RTC_LIB=n) I understood that, and my initial point was that we cannot allow such a situation, all drivers that we might use must be able to coexist in one kernel. If you have any applications that are ported from Itanium and that rely on specific behavior of the ia64 rtc driver, we should either enable those in the normal rtc-efi driver, or you need to change your application to use the portable RTC interfaces. Arnd