From 6e2e5d1bf8d551f78d4397720433c86109d9b370 Mon Sep 17 00:00:00 2001 From: Koen Vandeputte Date: Thu, 21 Nov 2019 14:08:06 +0100 Subject: kernel: bump 4.14 to 4.14.155 Refreshed all patches. Altered patches: - 707-dpaa-ethernet-support-layerscape.patch - 421-rtc-initialize.patch Remove upstreamed: - 161-MIPS-BCM47XX-Enable-USB-power-on-Netgear-WNDR3400v3.patch Compile-tested on: cns3xxx Runtime-tested on: cns3xxx Signed-off-by: Koen Vandeputte --- target/linux/mvebu/patches-4.14/421-rtc-initialize.patch | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'target/linux/mvebu/patches-4.14') diff --git a/target/linux/mvebu/patches-4.14/421-rtc-initialize.patch b/target/linux/mvebu/patches-4.14/421-rtc-initialize.patch index 47a5acc70d..5c21c67d6e 100644 --- a/target/linux/mvebu/patches-4.14/421-rtc-initialize.patch +++ b/target/linux/mvebu/patches-4.14/421-rtc-initialize.patch @@ -54,21 +54,20 @@ bootloader hacks that write special register values. }; static const struct armada38x_rtc_data armada8k_data = { -@@ -558,6 +580,17 @@ static __init int armada38x_rtc_probe(st +@@ -558,6 +580,16 @@ static __init int armada38x_rtc_probe(st + if (ret) dev_err(&pdev->dev, "Failed to register RTC device: %d\n", ret); - return ret; - } -+ + + /* + * Try to detect if RTC is in uninitialized state. + * It is not definitive to know if the RTC is in an uninialized state or not, + * but the following call will read some bits in the RTC unit and guess if + * if it's in that state, and accordingly set it to sane default values. + */ -+ if (rtc->data->init_rtc) { ++ else if (rtc->data->init_rtc) { + rtc->data->init_rtc(rtc); + } + - return 0; + return ret; } -- cgit v1.2.3