android_kernel_samsung_a7y1.../include/asm-generic
Eric Wong 9386021e47 rtc: cmos: ignore bogus century byte
[ Upstream commit 2a4daadd4d3e507138f8937926e6a4df49c6bfdc ]

Older versions of Libreboot and Coreboot had an invalid value
(`3' in my case) in the century byte affecting the GM45 in
the Thinkpad X200.  Not everybody's updated their firmwares,
and Linux <= 4.2 was able to read the RTC without problems,
so workaround this by ignoring invalid values.

Fixes: 3c217e51d8a272b9 ("rtc: cmos: century support")

Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Sylvain Chouleur <sylvain.chouleur@intel.com>
Cc: Patrick McDermott <patrick.mcdermott@libiquity.com>
Cc: linux-rtc@vger.kernel.org
Signed-off-by: Eric Wong <e@80x24.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 13:40:13 +02:00
..
bitops A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
4level-fixup.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
asm-offsets.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
asm-prototypes.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
atomic-long.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
atomic.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
atomic64.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
audit_change_attr.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
audit_dir_write.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
audit_read.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
audit_signal.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
audit_write.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
barrier.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bitops.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bitsperlong.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bug.h asm-generic: default BUG_ON(x) to if(x)BUG() 2020-04-06 20:50:09 +02:00
bugs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cache.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cacheflush.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
checksum.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
clkdev.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cmpxchg-local.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cmpxchg.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cputime_jiffies.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cputime_nsecs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cputime.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
current.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
delay.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
device.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
div64.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dma-coherent.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dma-contiguous.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dma-mapping-broken.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dma-mapping-common.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dma.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
early_ioremap.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
emergency-restart.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
exec.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
export.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fb.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fixmap.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ftrace.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
futex.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
getorder.h asm-generic: fix -Wtype-limits compiler warnings 2020-04-06 20:49:20 +02:00
gpio.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hardirq.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hugetlb.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hw_irq.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ide_iops.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
int-ll64.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
io-64-nonatomic-hi-lo.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
io-64-nonatomic-lo-hi.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
io.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ioctl.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
iomap.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq_regs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq_work.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irqflags.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kbuild.asm A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kdebug.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kmap_types.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kvm_para.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
libata-portmap.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
linkage.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
local.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
local64.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mcs_spinlock.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
memory_model.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mm_hooks.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mm-arch-hooks.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mmu_context.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mmu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
module.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
msi.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mutex-dec.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mutex-null.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mutex-xchg.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mutex.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
page.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
param.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
parport.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci_iomap.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci-bridge.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci-dma-compat.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pci.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
percpu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pgalloc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pgtable-nopmd.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pgtable-nopud.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pgtable.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
preempt.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ptrace.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
qrwlock_types.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
qrwlock.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
qspinlock_types.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
qspinlock.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
resource.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rtc.h rtc: cmos: ignore bogus century byte 2020-04-07 13:40:13 +02:00
rwsem.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
seccomp.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sections.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
segment.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
serial.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
siginfo.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
signal.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
simd.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sizes.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
spinlock.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
statfs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
string.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
switch_to.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
syscall.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
syscalls.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
termios-base.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
termios.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
timex.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tlb.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tlbflush.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
topology.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_clock.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
uaccess-unaligned.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
uaccess.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
unaligned.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
unistd.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
user.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vga.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmlinux.lds.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vtime.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
word-at-a-time.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xor.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30