Message ID | 20190514134220.3626-3-be.dissent@gmail.com |
---|---|
State | Changes Requested |
Delegated to: | Petr Štetiar |
Headers | show |
Series | [OpenWrt-Devel,1/4] ipq40xx: directly define voltage per opp | expand |
Pavel Kubelun <be.dissent@gmail.com> [2019-05-14 16:42:19]: > diff --git a/target/linux/ipq40xx/patches-4.14/090-ipq40xx-fix-high-resolution-timer.patch b/target/linux/ipq40xx/patches-4.14/090-ipq40xx-fix-high-resolution-timer.patch > new file mode 100644 > index 0000000000..0fc50ec533 > --- /dev/null > +++ b/target/linux/ipq40xx/patches-4.14/090-ipq40xx-fix-high-resolution-timer.patch > @@ -0,0 +1,30 @@ > +From 09f145f417a5d64d6b8d4476699dfb0eccc6c784 Mon Sep 17 00:00:00 2001 > +From: Pavel Kubelun <be.dissent@gmail.com> > +Date: Tue, 7 May 2019 10:14:05 +0300 > +Subject: [PATCH] ipq40xx: fix high resolution timer > + > +Cherry-picked from CAF QSDK repo. You should preserve the authorship of the changes if you do so. It looks now, like you're author of this work. > +The kernel is failing in switching the timer for high resolution > +mode and clock source operates in 10ms resolution. The always-on > +property needs to be given for timer device tree node to make > +clock source working in 1ns resolution. Shouldn't this go through upstream as well? > + soc { > diff --git a/target/linux/ipq40xx/patches-4.14/701-dts-ipq4019-add-mdio-node.patch b/target/linux/ipq40xx/patches-4.14/701-dts-ipq4019-add-mdio-node.patch > index 0e1bb87368..b7e241058c 100644 > --- a/target/linux/ipq40xx/patches-4.14/701-dts-ipq4019-add-mdio-node.patch > +++ b/target/linux/ipq40xx/patches-4.14/701-dts-ipq4019-add-mdio-node.patch > @@ -15,7 +15,7 @@ so the info might change. > > --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi > +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi > -@@ -566,6 +566,34 @@ > +@@ -567,6 +567,34 @@ > status = "disabled"; > }; Probably some leftover? > diff --git a/target/linux/ipq40xx/patches-4.14/702-dts-ipq4019-add-PHY-switch-nodes.patch b/target/linux/ipq40xx/patches-4.14/702-dts-ipq4019-add-PHY-switch-nodes.patch > index 03da6c863a..cc56a60ea3 100644 > --- a/target/linux/ipq40xx/patches-4.14/702-dts-ipq4019-add-PHY-switch-nodes.patch > +++ b/target/linux/ipq40xx/patches-4.14/702-dts-ipq4019-add-PHY-switch-nodes.patch > @@ -14,7 +14,7 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com> > > --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi > +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi > -@@ -594,6 +594,29 @@ > +@@ -595,6 +595,29 @@ > }; > }; Ditto. > diff --git a/target/linux/ipq40xx/patches-4.14/711-dts-ipq4019-add-ethernet-essedma-node.patch b/target/linux/ipq40xx/patches-4.14/711-dts-ipq4019-add-ethernet-essedma-node.patch > index 7302d237bc..80b16a8211 100644 > --- a/target/linux/ipq40xx/patches-4.14/711-dts-ipq4019-add-ethernet-essedma-node.patch > +++ b/target/linux/ipq40xx/patches-4.14/711-dts-ipq4019-add-ethernet-essedma-node.patch > @@ -25,7 +25,7 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com> > }; > > cpus { > -@@ -617,6 +619,64 @@ > +@@ -618,6 +620,64 @@ > status = "disabled"; > }; Ditto. > diff --git a/target/linux/ipq40xx/patches-4.19/086-ipq40xx-fix-high-resolution-timer.patch b/target/linux/ipq40xx/patches-4.19/086-ipq40xx-fix-high-resolution-timer.patch > new file mode 100644 > index 0000000000..9d277fa8e0 > --- /dev/null > +++ b/target/linux/ipq40xx/patches-4.19/086-ipq40xx-fix-high-resolution-timer.patch > @@ -0,0 +1,30 @@ > +From 09f145f417a5d64d6b8d4476699dfb0eccc6c784 Mon Sep 17 00:00:00 2001 > +From: Pavel Kubelun <be.dissent@gmail.com> > +Date: Tue, 7 May 2019 10:14:05 +0300 > +Subject: [PATCH] ipq40xx: fix high resolution timer > + > +Cherry-picked from CAF QSDK repo. > +Original commit message: > +The kernel is failing in switching the timer for high resolution > +mode and clock source operates in 10ms resolution. The always-on > +property needs to be given for timer device tree node to make > +clock source working in 1ns resolution. Same as above. > diff --git a/target/linux/ipq40xx/patches-4.19/701-dts-ipq4019-add-mdio-node.patch b/target/linux/ipq40xx/patches-4.19/701-dts-ipq4019-add-mdio-node.patch > index e5936a0c93..0298644d22 100644 > --- a/target/linux/ipq40xx/patches-4.19/701-dts-ipq4019-add-mdio-node.patch > +++ b/target/linux/ipq40xx/patches-4.19/701-dts-ipq4019-add-mdio-node.patch > @@ -15,7 +15,7 @@ so the info might change. > > --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi > +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi > -@@ -570,6 +570,34 @@ > +@@ -571,6 +571,34 @@ > status = "disabled"; > }; Ditto. > diff --git a/target/linux/ipq40xx/patches-4.19/702-dts-ipq4019-add-PHY-switch-nodes.patch b/target/linux/ipq40xx/patches-4.19/702-dts-ipq4019-add-PHY-switch-nodes.patch > index 7c5d1ec2bb..df95699294 100644 > --- a/target/linux/ipq40xx/patches-4.19/702-dts-ipq4019-add-PHY-switch-nodes.patch > +++ b/target/linux/ipq40xx/patches-4.19/702-dts-ipq4019-add-PHY-switch-nodes.patch > @@ -14,7 +14,7 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com> > > --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi > +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi > -@@ -598,6 +598,29 @@ > +@@ -599,6 +599,29 @@ > }; > }; Ditto. > diff --git a/target/linux/ipq40xx/patches-4.19/711-dts-ipq4019-add-ethernet-essedma-node.patch b/target/linux/ipq40xx/patches-4.19/711-dts-ipq4019-add-ethernet-essedma-node.patch > index 51cf411143..8f7627b048 100644 > --- a/target/linux/ipq40xx/patches-4.19/711-dts-ipq4019-add-ethernet-essedma-node.patch > +++ b/target/linux/ipq40xx/patches-4.19/711-dts-ipq4019-add-ethernet-essedma-node.patch > @@ -25,7 +25,7 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com> > }; > > cpus { > -@@ -621,6 +623,64 @@ > +@@ -622,6 +624,64 @@ > status = "disabled"; > }; Ditto.
ср, 15 мая 2019 г., 18:59 Petr Štetiar <ynezz@true.cz>: > Pavel Kubelun <be.dissent@gmail.com> [2019-05-14 16:42:19]: > > > diff --git > a/target/linux/ipq40xx/patches-4.14/090-ipq40xx-fix-high-resolution-timer.patch > b/target/linux/ipq40xx/patches-4.14/090-ipq40xx-fix-high-resolution-timer.patch > > new file mode 100644 > > index 0000000000..0fc50ec533 > > --- /dev/null > > +++ > b/target/linux/ipq40xx/patches-4.14/090-ipq40xx-fix-high-resolution-timer.patch > > @@ -0,0 +1,30 @@ > > +From 09f145f417a5d64d6b8d4476699dfb0eccc6c784 Mon Sep 17 00:00:00 2001 > > +From: Pavel Kubelun <be.dissent@gmail.com> > > +Date: Tue, 7 May 2019 10:14:05 +0300 > > +Subject: [PATCH] ipq40xx: fix high resolution timer > > + > > +Cherry-picked from CAF QSDK repo. > > You should preserve the authorship of the changes if you do so. It looks > now, > like you're author of this work. > Sure, will fix this. > > +The kernel is failing in switching the timer for high resolution > > +mode and clock source operates in 10ms resolution. The always-on > > +property needs to be given for timer device tree node to make > > +clock source working in 1ns resolution. > > Shouldn't this go through upstream as well? > It should, but I'm not the author. > > + soc { > > diff --git > a/target/linux/ipq40xx/patches-4.14/701-dts-ipq4019-add-mdio-node.patch > b/target/linux/ipq40xx/patches-4.14/701-dts-ipq4019-add-mdio-node.patch > > index 0e1bb87368..b7e241058c 100644 > > --- > a/target/linux/ipq40xx/patches-4.14/701-dts-ipq4019-add-mdio-node.patch > > +++ > b/target/linux/ipq40xx/patches-4.14/701-dts-ipq4019-add-mdio-node.patch > > @@ -15,7 +15,7 @@ so the info might change. > > > > --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi > > +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi > > -@@ -566,6 +566,34 @@ > > +@@ -567,6 +567,34 @@ > > status = "disabled"; > > }; > > Probably some leftover? > It's a refresh of existing patches, because they are applied to the same file. > > diff --git > a/target/linux/ipq40xx/patches-4.14/702-dts-ipq4019-add-PHY-switch-nodes.patch > b/target/linux/ipq40xx/patches-4.14/702-dts-ipq4019-add-PHY-switch-nodes.patch > > index 03da6c863a..cc56a60ea3 100644 > > --- > a/target/linux/ipq40xx/patches-4.14/702-dts-ipq4019-add-PHY-switch-nodes.patch > > +++ > b/target/linux/ipq40xx/patches-4.14/702-dts-ipq4019-add-PHY-switch-nodes.patch > > @@ -14,7 +14,7 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com > > > > > > --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi > > +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi > > -@@ -594,6 +594,29 @@ > > +@@ -595,6 +595,29 @@ > > }; > > }; > > Ditto. > > > diff --git > a/target/linux/ipq40xx/patches-4.14/711-dts-ipq4019-add-ethernet-essedma-node.patch > b/target/linux/ipq40xx/patches-4.14/711-dts-ipq4019-add-ethernet-essedma-node.patch > > index 7302d237bc..80b16a8211 100644 > > --- > a/target/linux/ipq40xx/patches-4.14/711-dts-ipq4019-add-ethernet-essedma-node.patch > > +++ > b/target/linux/ipq40xx/patches-4.14/711-dts-ipq4019-add-ethernet-essedma-node.patch > > @@ -25,7 +25,7 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com > > > > }; > > > > cpus { > > -@@ -617,6 +619,64 @@ > > +@@ -618,6 +620,64 @@ > > status = "disabled"; > > }; > > Ditto. > > > diff --git > a/target/linux/ipq40xx/patches-4.19/086-ipq40xx-fix-high-resolution-timer.patch > b/target/linux/ipq40xx/patches-4.19/086-ipq40xx-fix-high-resolution-timer.patch > > new file mode 100644 > > index 0000000000..9d277fa8e0 > > --- /dev/null > > +++ > b/target/linux/ipq40xx/patches-4.19/086-ipq40xx-fix-high-resolution-timer.patch > > @@ -0,0 +1,30 @@ > > +From 09f145f417a5d64d6b8d4476699dfb0eccc6c784 Mon Sep 17 00:00:00 2001 > > +From: Pavel Kubelun <be.dissent@gmail.com> > > +Date: Tue, 7 May 2019 10:14:05 +0300 > > +Subject: [PATCH] ipq40xx: fix high resolution timer > > + > > +Cherry-picked from CAF QSDK repo. > > +Original commit message: > > +The kernel is failing in switching the timer for high resolution > > +mode and clock source operates in 10ms resolution. The always-on > > +property needs to be given for timer device tree node to make > > +clock source working in 1ns resolution. > > Same as above. > > > diff --git > a/target/linux/ipq40xx/patches-4.19/701-dts-ipq4019-add-mdio-node.patch > b/target/linux/ipq40xx/patches-4.19/701-dts-ipq4019-add-mdio-node.patch > > index e5936a0c93..0298644d22 100644 > > --- > a/target/linux/ipq40xx/patches-4.19/701-dts-ipq4019-add-mdio-node.patch > > +++ > b/target/linux/ipq40xx/patches-4.19/701-dts-ipq4019-add-mdio-node.patch > > @@ -15,7 +15,7 @@ so the info might change. > > > > --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi > > +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi > > -@@ -570,6 +570,34 @@ > > +@@ -571,6 +571,34 @@ > > status = "disabled"; > > }; > > Ditto. > > > diff --git > a/target/linux/ipq40xx/patches-4.19/702-dts-ipq4019-add-PHY-switch-nodes.patch > b/target/linux/ipq40xx/patches-4.19/702-dts-ipq4019-add-PHY-switch-nodes.patch > > index 7c5d1ec2bb..df95699294 100644 > > --- > a/target/linux/ipq40xx/patches-4.19/702-dts-ipq4019-add-PHY-switch-nodes.patch > > +++ > b/target/linux/ipq40xx/patches-4.19/702-dts-ipq4019-add-PHY-switch-nodes.patch > > @@ -14,7 +14,7 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com > > > > > > --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi > > +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi > > -@@ -598,6 +598,29 @@ > > +@@ -599,6 +599,29 @@ > > }; > > }; > > Ditto. > > > diff --git > a/target/linux/ipq40xx/patches-4.19/711-dts-ipq4019-add-ethernet-essedma-node.patch > b/target/linux/ipq40xx/patches-4.19/711-dts-ipq4019-add-ethernet-essedma-node.patch > > index 51cf411143..8f7627b048 100644 > > --- > a/target/linux/ipq40xx/patches-4.19/711-dts-ipq4019-add-ethernet-essedma-node.patch > > +++ > b/target/linux/ipq40xx/patches-4.19/711-dts-ipq4019-add-ethernet-essedma-node.patch > > @@ -25,7 +25,7 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com > > > > }; > > > > cpus { > > -@@ -621,6 +623,64 @@ > > +@@ -622,6 +624,64 @@ > > status = "disabled"; > > }; > > Ditto. >
Павел <be.dissent@gmail.com> [2019-05-15 20:30:09]: > > Shouldn't this go through upstream as well? > > > > It should, but I'm not the author. This is not a problem if you keep proper authorship (From and Signed-off-by). -- ynezz
diff --git a/target/linux/ipq40xx/patches-4.14/090-ipq40xx-fix-high-resolution-timer.patch b/target/linux/ipq40xx/patches-4.14/090-ipq40xx-fix-high-resolution-timer.patch new file mode 100644 index 0000000000..0fc50ec533 --- /dev/null +++ b/target/linux/ipq40xx/patches-4.14/090-ipq40xx-fix-high-resolution-timer.patch @@ -0,0 +1,30 @@ +From 09f145f417a5d64d6b8d4476699dfb0eccc6c784 Mon Sep 17 00:00:00 2001 +From: Pavel Kubelun <be.dissent@gmail.com> +Date: Tue, 7 May 2019 10:14:05 +0300 +Subject: [PATCH] ipq40xx: fix high resolution timer + +Cherry-picked from CAF QSDK repo. +Original commit message: +The kernel is failing in switching the timer for high resolution +mode and clock source operates in 10ms resolution. The always-on +property needs to be given for timer device tree node to make +clock source working in 1ns resolution. + +Change-Id: I7c00b3c74d97c2a30ac9f05e18b511a0550fd459 +Signed-off-by: Abhishek Sahu <absahu@codeaurora.org> + +Signed-off-by: Pavel Kubelun <be.dissent@gmail.com> +--- + arch/arm/boot/dts/qcom-ipq4019.dtsi | 1 + + 1 file changed, 1 insertion(+) + +--- a/arch/arm/boot/dts/qcom-ipq4019.dtsi ++++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi +@@ -167,6 +167,7 @@ + <1 4 0xf08>, + <1 1 0xf08>; + clock-frequency = <48000000>; ++ always-on; + }; + + soc { diff --git a/target/linux/ipq40xx/patches-4.14/701-dts-ipq4019-add-mdio-node.patch b/target/linux/ipq40xx/patches-4.14/701-dts-ipq4019-add-mdio-node.patch index 0e1bb87368..b7e241058c 100644 --- a/target/linux/ipq40xx/patches-4.14/701-dts-ipq4019-add-mdio-node.patch +++ b/target/linux/ipq40xx/patches-4.14/701-dts-ipq4019-add-mdio-node.patch @@ -15,7 +15,7 @@ so the info might change. --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi -@@ -566,6 +566,34 @@ +@@ -567,6 +567,34 @@ status = "disabled"; }; diff --git a/target/linux/ipq40xx/patches-4.14/702-dts-ipq4019-add-PHY-switch-nodes.patch b/target/linux/ipq40xx/patches-4.14/702-dts-ipq4019-add-PHY-switch-nodes.patch index 03da6c863a..cc56a60ea3 100644 --- a/target/linux/ipq40xx/patches-4.14/702-dts-ipq4019-add-PHY-switch-nodes.patch +++ b/target/linux/ipq40xx/patches-4.14/702-dts-ipq4019-add-PHY-switch-nodes.patch @@ -14,7 +14,7 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com> --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi -@@ -594,6 +594,29 @@ +@@ -595,6 +595,29 @@ }; }; diff --git a/target/linux/ipq40xx/patches-4.14/711-dts-ipq4019-add-ethernet-essedma-node.patch b/target/linux/ipq40xx/patches-4.14/711-dts-ipq4019-add-ethernet-essedma-node.patch index 7302d237bc..80b16a8211 100644 --- a/target/linux/ipq40xx/patches-4.14/711-dts-ipq4019-add-ethernet-essedma-node.patch +++ b/target/linux/ipq40xx/patches-4.14/711-dts-ipq4019-add-ethernet-essedma-node.patch @@ -25,7 +25,7 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com> }; cpus { -@@ -617,6 +619,64 @@ +@@ -618,6 +620,64 @@ status = "disabled"; }; diff --git a/target/linux/ipq40xx/patches-4.19/086-ipq40xx-fix-high-resolution-timer.patch b/target/linux/ipq40xx/patches-4.19/086-ipq40xx-fix-high-resolution-timer.patch new file mode 100644 index 0000000000..9d277fa8e0 --- /dev/null +++ b/target/linux/ipq40xx/patches-4.19/086-ipq40xx-fix-high-resolution-timer.patch @@ -0,0 +1,30 @@ +From 09f145f417a5d64d6b8d4476699dfb0eccc6c784 Mon Sep 17 00:00:00 2001 +From: Pavel Kubelun <be.dissent@gmail.com> +Date: Tue, 7 May 2019 10:14:05 +0300 +Subject: [PATCH] ipq40xx: fix high resolution timer + +Cherry-picked from CAF QSDK repo. +Original commit message: +The kernel is failing in switching the timer for high resolution +mode and clock source operates in 10ms resolution. The always-on +property needs to be given for timer device tree node to make +clock source working in 1ns resolution. + +Change-Id: I7c00b3c74d97c2a30ac9f05e18b511a0550fd459 +Signed-off-by: Abhishek Sahu <absahu@codeaurora.org> + +Signed-off-by: Pavel Kubelun <be.dissent@gmail.com> +--- + arch/arm/boot/dts/qcom-ipq4019.dtsi | 1 + + 1 file changed, 1 insertion(+) + +--- a/arch/arm/boot/dts/qcom-ipq4019.dtsi ++++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi +@@ -171,6 +171,7 @@ + <1 4 0xf08>, + <1 1 0xf08>; + clock-frequency = <48000000>; ++ always-on; + }; + + soc { diff --git a/target/linux/ipq40xx/patches-4.19/701-dts-ipq4019-add-mdio-node.patch b/target/linux/ipq40xx/patches-4.19/701-dts-ipq4019-add-mdio-node.patch index e5936a0c93..0298644d22 100644 --- a/target/linux/ipq40xx/patches-4.19/701-dts-ipq4019-add-mdio-node.patch +++ b/target/linux/ipq40xx/patches-4.19/701-dts-ipq4019-add-mdio-node.patch @@ -15,7 +15,7 @@ so the info might change. --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi -@@ -570,6 +570,34 @@ +@@ -571,6 +571,34 @@ status = "disabled"; }; diff --git a/target/linux/ipq40xx/patches-4.19/702-dts-ipq4019-add-PHY-switch-nodes.patch b/target/linux/ipq40xx/patches-4.19/702-dts-ipq4019-add-PHY-switch-nodes.patch index 7c5d1ec2bb..df95699294 100644 --- a/target/linux/ipq40xx/patches-4.19/702-dts-ipq4019-add-PHY-switch-nodes.patch +++ b/target/linux/ipq40xx/patches-4.19/702-dts-ipq4019-add-PHY-switch-nodes.patch @@ -14,7 +14,7 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com> --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi -@@ -598,6 +598,29 @@ +@@ -599,6 +599,29 @@ }; }; diff --git a/target/linux/ipq40xx/patches-4.19/711-dts-ipq4019-add-ethernet-essedma-node.patch b/target/linux/ipq40xx/patches-4.19/711-dts-ipq4019-add-ethernet-essedma-node.patch index 51cf411143..8f7627b048 100644 --- a/target/linux/ipq40xx/patches-4.19/711-dts-ipq4019-add-ethernet-essedma-node.patch +++ b/target/linux/ipq40xx/patches-4.19/711-dts-ipq4019-add-ethernet-essedma-node.patch @@ -25,7 +25,7 @@ Signed-off-by: Christian Lamparter <chunkeey@gmail.com> }; cpus { -@@ -621,6 +623,64 @@ +@@ -622,6 +624,64 @@ status = "disabled"; };