Re: [PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-10-08 Thread Leizhen (ThunderTown)
On 2015/9/28 17:44, Leizhen (ThunderTown) wrote: >> > >>> >> --drivers/char/Kconfig-- >>> >> if RTC_LIB=n >>> >> >>> >> config RTC >>> >> tristate "Enhanced Real Time Clock Support (legacy PC RTC driver)" >>> >> >>> >> ... >>> >> >>> >> config EFI_RTC >>> >>

Re: [PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-10-08 Thread Leizhen (ThunderTown)
On 2015/9/28 17:44, Leizhen (ThunderTown) wrote: >> > >>> >> --drivers/char/Kconfig-- >>> >> if RTC_LIB=n >>> >> >>> >> config RTC >>> >> tristate "Enhanced Real Time Clock Support (legacy PC RTC driver)" >>> >> >>> >> ... >>> >> >>> >> config EFI_RTC >>> >>

Re: [PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-09-28 Thread Arnd Bergmann
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

Re: [PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-09-28 Thread Leizhen (ThunderTown)
On 2015/9/28 16:42, Arnd Bergmann wrote: > On Monday 28 September 2015 16:29:57 Leizhen wrote: >> >> On 2015/9/28 15:35, Arnd Bergmann wrote: >>> On Monday 28 September 2015 13:34:38 Zhen Lei wrote: diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 07d1811..25cec57 100644

Re: [PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-09-28 Thread Leizhen (ThunderTown)
On 2015/9/28 15:40, Ard Biesheuvel wrote: > On 28 September 2015 at 06:34, Zhen Lei wrote: >> Now, ARM64 is also support EFI startup. We hope use EFI runtime services >> to get/set current time and date. >> >> RTC_LIB only controls some configs in drivers/char/Kconfig(included >> EFI_RTC), and

Re: [PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-09-28 Thread Arnd Bergmann
On Monday 28 September 2015 16:29:57 Leizhen wrote: > > On 2015/9/28 15:35, Arnd Bergmann wrote: > > On Monday 28 September 2015 13:34:38 Zhen Lei wrote: > >> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > >> index 07d1811..25cec57 100644 > >> --- a/arch/arm64/Kconfig > >> +++

Re: [PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-09-28 Thread Leizhen (ThunderTown)
On 2015/9/28 15:35, Arnd Bergmann wrote: > On Monday 28 September 2015 13:34:38 Zhen Lei wrote: >> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig >> index 07d1811..25cec57 100644 >> --- a/arch/arm64/Kconfig >> +++ b/arch/arm64/Kconfig >> @@ -85,7 +85,7 @@ config ARM64 >> select

Re: [PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-09-28 Thread Ard Biesheuvel
On 28 September 2015 at 06:34, Zhen Lei wrote: > Now, ARM64 is also support EFI startup. We hope use EFI runtime services > to get/set current time and date. > > RTC_LIB only controls some configs in drivers/char/Kconfig(included > EFI_RTC), and will be automatically selected when RTC_CLASS

Re: [PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-09-28 Thread Arnd Bergmann
On Monday 28 September 2015 13:34:38 Zhen Lei wrote: > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 07d1811..25cec57 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -85,7 +85,7 @@ config ARM64 > select PERF_USE_VMALLOC > select POWER_RESET >

Re: [PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-09-28 Thread Leizhen (ThunderTown)
On 2015/9/28 15:35, Arnd Bergmann wrote: > On Monday 28 September 2015 13:34:38 Zhen Lei wrote: >> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig >> index 07d1811..25cec57 100644 >> --- a/arch/arm64/Kconfig >> +++ b/arch/arm64/Kconfig >> @@ -85,7 +85,7 @@ config ARM64 >> select

Re: [PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-09-28 Thread Ard Biesheuvel
On 28 September 2015 at 06:34, Zhen Lei wrote: > Now, ARM64 is also support EFI startup. We hope use EFI runtime services > to get/set current time and date. > > RTC_LIB only controls some configs in drivers/char/Kconfig(included > EFI_RTC), and will be automatically

Re: [PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-09-28 Thread Arnd Bergmann
On Monday 28 September 2015 13:34:38 Zhen Lei wrote: > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 07d1811..25cec57 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -85,7 +85,7 @@ config ARM64 > select PERF_USE_VMALLOC > select POWER_RESET >

Re: [PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-09-28 Thread Leizhen (ThunderTown)
On 2015/9/28 16:42, Arnd Bergmann wrote: > On Monday 28 September 2015 16:29:57 Leizhen wrote: >> >> On 2015/9/28 15:35, Arnd Bergmann wrote: >>> On Monday 28 September 2015 13:34:38 Zhen Lei wrote: diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 07d1811..25cec57 100644

Re: [PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-09-28 Thread Arnd Bergmann
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

Re: [PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-09-28 Thread Arnd Bergmann
On Monday 28 September 2015 16:29:57 Leizhen wrote: > > On 2015/9/28 15:35, Arnd Bergmann wrote: > > On Monday 28 September 2015 13:34:38 Zhen Lei wrote: > >> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > >> index 07d1811..25cec57 100644 > >> --- a/arch/arm64/Kconfig > >> +++

Re: [PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-09-28 Thread Leizhen (ThunderTown)
On 2015/9/28 15:40, Ard Biesheuvel wrote: > On 28 September 2015 at 06:34, Zhen Lei wrote: >> Now, ARM64 is also support EFI startup. We hope use EFI runtime services >> to get/set current time and date. >> >> RTC_LIB only controls some configs in

[PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-09-27 Thread Zhen Lei
Now, ARM64 is also support EFI startup. We hope use EFI runtime services to get/set current time and date. RTC_LIB only controls some configs in drivers/char/Kconfig(included EFI_RTC), and will be automatically selected when RTC_CLASS opened. So this patch have no functional change but give an

[PATCH 2/2] arm64: to allow EFI_RTC can be selected on ARM64

2015-09-27 Thread Zhen Lei
Now, ARM64 is also support EFI startup. We hope use EFI runtime services to get/set current time and date. RTC_LIB only controls some configs in drivers/char/Kconfig(included EFI_RTC), and will be automatically selected when RTC_CLASS opened. So this patch have no functional change but give an