Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/pseries: enable RTC class support

A working rtc kernel driver is needed so that hwclock can synchronize
system clock to rtc during shutdown/boot. We already have a powernv
platform rtc driver located at drivers/rtc/rtc-opal.c. However it depends
on CONFIG_RTC_CLASS which is disabled by default. Hence the driver isn't
enabled and not compiled for the powernv kernel.

We fix this by enabling rtc class support in pseries defconfig which
enables this driver and compiles it into the pseries kernel. In case
CONFIG_PPC_POWERNV is not enabled we fallback to 'Generic RTC support'
driver which emulates the legacy 'PC RTC driver'.

Signed-off-by: Vaibhav Jain <vaibhav@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Vaibhav Jain and committed by
Michael Ellerman
e0ad784b 1d805440

+2 -1
+2 -1
arch/powerpc/configs/pseries_defconfig
··· 190 190 CONFIG_HVCS=m 191 191 CONFIG_VIRTIO_CONSOLE=m 192 192 CONFIG_IBM_BSR=m 193 - CONFIG_GEN_RTC=y 193 + CONFIG_RTC_CLASS=y 194 + CONFIG_RTC_DRV_GENERIC=y 194 195 CONFIG_RAW_DRIVER=y 195 196 CONFIG_MAX_RAW_DEVS=1024 196 197 CONFIG_FB=y