aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/patches-4.14
diff options
context:
space:
mode:
authorKoen Vandeputte <koen.vandeputte@ncentric.com>2019-11-21 14:08:06 +0100
committerKoen Vandeputte <koen.vandeputte@ncentric.com>2019-11-22 16:59:16 +0100
commit6e2e5d1bf8d551f78d4397720433c86109d9b370 (patch)
tree3bc2317ddd1d216f493795611a5c8bc0110c4ded /target/linux/mvebu/patches-4.14
parentf6f916b3e5bfc8cb6d399bac5af5ed36ab1ad441 (diff)
downloadupstream-6e2e5d1bf8d551f78d4397720433c86109d9b370.tar.gz
upstream-6e2e5d1bf8d551f78d4397720433c86109d9b370.tar.bz2
upstream-6e2e5d1bf8d551f78d4397720433c86109d9b370.zip
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 <koen.vandeputte@ncentric.com>
Diffstat (limited to 'target/linux/mvebu/patches-4.14')
-rw-r--r--target/linux/mvebu/patches-4.14/421-rtc-initialize.patch11
1 files changed, 5 insertions, 6 deletions
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;
}