This patch adds binding document for allwinner h3 thermal controller.
Signed-off-by: Yangtao Li
---
.../bindings/thermal/sun8i-thermal.yaml | 81 ++-
1 file changed, 78 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml
There are some differences in register initialization for
different socs. So we get different initialization functions
from device compatible.
Signed-off-by: Yangtao Li
---
drivers/thermal/sun8i_thermal.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/thermal
From: Icenowy Zheng
The H5 temperature calculation function is strange. Firstly, it's
segmented. Secondly, the formula of two sensors are different in the
second segment.
Allow to use a custom temperature calculation function, in case of
the function is complex.
Signed-off-by: Icenowy Zheng
--
For different socs, the number of ths sensors is different.
So we need to do some work in order to support more soc.
Signed-off-by: Yangtao Li
---
drivers/thermal/sun8i_thermal.c | 28
1 file changed, 20 insertions(+), 8 deletions(-)
diff --git a/drivers/thermal
This patch adds binding document for allwinner h5 thermal controller.
Signed-off-by: Yangtao Li
---
Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml
b/Documentation
From: Vasily Khoruzhick
Thermal sensor controller in A64 is similar to H3, but it has 3 sensors.
Extend H3 functions to add support for multiple sensors.
Signed-off-by: Vasily Khoruzhick
---
drivers/thermal/sun8i_thermal.c | 12
1 file changed, 12 insertions(+)
diff --git a/drive
This patch adds the support for allwinner h3 thermal sensor.
Signed-off-by: Yangtao Li
---
drivers/thermal/sun8i_thermal.c | 91 +
1 file changed, 91 insertions(+)
diff --git a/drivers/thermal/sun8i_thermal.c b/drivers/thermal/sun8i_thermal.c
index 47c20c4c69e7
Here, we do something to prepare for the subsequent
support of multiple platforms.
1) rename sun50i_h6_irq_thread to sun8i_irq_thread, because
this function should be suitable for all platforms.
2) introduce irq_ack callback to mask interrupt register
differences.
Signed-off-by: Yangtao
From: Icenowy Zheng
The thermal sensor in Allwinner R40 SoC is quite similar to the one in
Allwinner A64 SoC, with only slightly different temperature calculation
formula.
Signed-off-by: Icenowy Zheng
---
drivers/thermal/sun8i_thermal.c | 12
1 file changed, 12 insertions(+)
diff
This patch adds binding document for allwinner r40 thermal controller.
Signed-off-by: Yangtao Li
---
Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml
b/Documentation
From: Icenowy Zheng
The thermal sensor in Allwinner H5 has 2 sensors, and they have a
special segmented temperature calculation formula.
Add support for this thermal sensor.
Signed-off-by: Icenowy Zheng
---
drivers/thermal/sun8i_thermal.c | 21 +
1 file changed, 21 inserti
From: Vasily Khoruzhick
Thermal sensor controller in A64 is similar to H3, but it has 3 sensors.
Extend H3 functions to add support for multiple sensors.
Signed-off-by: Vasily Khoruzhick
---
drivers/thermal/sun8i_thermal.c | 12
1 file changed, 12 insertions(+)
diff --git a/drive
This patch adds binding document for allwinner h6 thermal controller.
Signed-off-by: Yangtao Li
---
.../bindings/thermal/sun8i-thermal.yaml | 71 +++
1 file changed, 71 insertions(+)
create mode 100644 Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml
diff
There are some differences in register initialization for
different socs. So we get different initialization functions
from device compatible.
Signed-off-by: Yangtao Li
---
drivers/thermal/sun8i_thermal.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/thermal
Here, we do something to prepare for the subsequent
support of multiple platforms.
1) rename sun50i_h6_irq_thread to sun8i_irq_thread, because
this function should be suitable for all platforms.
2) introduce irq_ack callback to mask interrupt register
differences.
Signed-off-by: Yangtao
This patch adds the support for allwinner h3 thermal sensor.
Signed-off-by: Yangtao Li
---
drivers/thermal/sun8i_thermal.c | 72 +
1 file changed, 72 insertions(+)
diff --git a/drivers/thermal/sun8i_thermal.c b/drivers/thermal/sun8i_thermal.c
index 260b24340f5b
This patch adds binding document for allwinner h3 thermal controller.
Signed-off-by: Yangtao Li
---
.../bindings/thermal/sun8i-thermal.yaml | 29 +--
1 file changed, 26 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml
H3 has extra clock, so introduce something in ths_thermal_chip/ths_device
and adds the process of the clock.
This is pre-work for supprt it.
Signed-off-by: Yangtao Li
---
drivers/thermal/sun8i_thermal.c | 17 -
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a
For different socs, the way they get and calculate the
temperature is roughly the same. So get the difference
from device compatible.
Difference point:
1) temperature calculation formula parameters
2) ths data register start address
Signed-off-by: Yangtao Li
---
drivers/thermal
For different socs, the number of ths sensors is different.
So we need to do some work in order to support more soc.
Signed-off-by: Yangtao Li
---
drivers/thermal/sun8i_thermal.c | 28
1 file changed, 20 insertions(+), 8 deletions(-)
diff --git a/drivers/thermal
: Yangtao Li
---
drivers/thermal/sun8i_thermal.c | 86 ++---
1 file changed, 48 insertions(+), 38 deletions(-)
diff --git a/drivers/thermal/sun8i_thermal.c b/drivers/thermal/sun8i_thermal.c
index 04f53ffb6a14..260b24340f5b 100644
--- a/drivers/thermal/sun8i_thermal.c
This patchset add support for H3 and H6 thermal sensor.
BTY, do a cleanup in thermal makfile.
Yangtao Li (11):
thermal: sun8i: add thermal driver for h6
dt-bindings: thermal: add binding document for h6 thermal controller
thermal: fix indentation in makefile
thermal: sun8i: get ths
This patch adds the support for allwinner thermal sensor, within
allwinner SoC. It will register sensors for thermal framework
and use device tree to bind cooling device.
Signed-off-by: Yangtao Li
---
MAINTAINERS | 7 +
drivers/thermal/Kconfig | 14 ++
drivers
To unify code style.
Signed-off-by: Yangtao Li
---
drivers/thermal/Makefile | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile
index fa6f8b206281..d7eafb5ef8ef 100644
--- a/drivers/thermal/Makefile
+++ b/drivers
seq_file.h does not need to be included, so remove it.
Signed-off-by: Yangtao Li
---
kernel/time/hrtimer.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c
index 41dfff23c1f9..edb230aba3d1 100644
--- a/kernel/time/hrtimer.c
+++ b/kernel/time
WARN_ON() already contains an unlikely(), so it's not necessary to use
unlikely.
Signed-off-by: Yangtao Li
---
drivers/char/random.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 5d5ea4ce1442..bebf622c61c4 1
Use DEFINE_SHOW_ATTRIBUTE macro to enhance code readability.
Signed-off-by: Yangtao Li
---
drivers/char/random.c | 11 ---
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/drivers/char/random.c b/drivers/char/random.c
index bebf622c61c4..d714a458f088 100644
--- a/drivers
s/entimate/estimate
Signed-off-by: Yangtao Li
---
drivers/char/random.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/char/random.c b/drivers/char/random.c
index f0c834af14a8..885707ac8e3b 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -1247,7
Since it is not being used, so delete it.
Signed-off-by: Yangtao Li
---
drivers/char/random.c | 27 ---
1 file changed, 27 deletions(-)
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 885707ac8e3b..d83401e35f71 100644
--- a/drivers/char/random.c
+++ b
Prefix all printk/pr_ messages with "random: " to make the
logging a bit more consistent.
Miscellanea:
o Convert a printks to pr_notice
o Whitespace to align to open parentheses
o Remove embedded "random: " from pr_* as pr_fmt adds it
Signed-off-by: Yangtao Li
---
driver
: Registered protocol family 2
Signed-off-by: Yangtao Li
---
drivers/thermal/of-thermal.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c
index 4bfdb4a1e47d..02b5e78f027b 100644
--- a/drivers/thermal/of-thermal.c
+++ b/drivers/thermal/of
The informations come from the coccinelle tool.
drivers/devfreq/tegra-devfreq.c:577:5-8: Unneeded variable: "ret".
Return "0" on line 603
drivers/devfreq/rk3399_dmc.c:325:2-3: Unneeded semicolon
drivers/devfreq/event/rockchip-dfi.c:214:2-3: Unneeded semicolon
Yangtao Li
The semicolon is unneeded, so remove it.
Signed-off-by: Yangtao Li
---
drivers/devfreq/event/rockchip-dfi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/devfreq/event/rockchip-dfi.c
b/drivers/devfreq/event/rockchip-dfi.c
index 22b113363ffc..fcbf76ebf55d 100644
The semicolon is unneeded, so remove it.
Signed-off-by: Yangtao Li
---
drivers/devfreq/rk3399_dmc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/devfreq/rk3399_dmc.c b/drivers/devfreq/rk3399_dmc.c
index e795ad2b3f6b..a228dad2bee4 100644
--- a/drivers/devfreq
This variable is not used after initialization, so
remove it. And in order to unify the code style,
move the location where the dev_get_drvdata is called
by the way.
Signed-off-by: Yangtao Li
---
drivers/devfreq/tegra-devfreq.c | 7 ++-
1 file changed, 2 insertions(+), 5 deletions(-)
diff
The informations come from the coccinelle tool.
drivers/cpufreq/longhaul.c:854:2-3: Unneeded semicolon
drivers/cpufreq/pcc-cpufreq.c:271:2-3: Unneeded semicolon
Yangtao Li (2):
cpufreq: pcc-cpufreq: remove unneeded semicolon
cpufreq: longhaul: remove unneeded semicolon
drivers/cpufreq
The semicolon is unneeded, so remove it.
Signed-off-by: Yangtao Li
---
drivers/cpufreq/longhaul.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/cpufreq/longhaul.c b/drivers/cpufreq/longhaul.c
index 279bd9e9fa95..fb546e0d0356 100644
--- a/drivers/cpufreq/longhaul.c
The semicolon is unneeded, so remove it.
Signed-off-by: Yangtao Li
---
drivers/cpufreq/pcc-cpufreq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/cpufreq/pcc-cpufreq.c b/drivers/cpufreq/pcc-cpufreq.c
index 099a849396f6..1e5e64643c3a 100644
--- a/drivers/cpufreq
To fix coccinelle WARNING.
WARNING: Use BUG_ON instead of if condition followed by BUG.
Signed-off-by: Yangtao Li
---
drivers/cpufreq/speedstep-ich.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/cpufreq/speedstep-ich.c b/drivers/cpufreq/speedstep-ich.c
index
This issue was detected with the help of Coccinelle. So
change the order of function calls to fix it.
Fixes: 1690d8bb91e37 (cpufreq: scpi/scmi: Fix freeing of dynamic OPPs)
Signed-off-by: Yangtao Li
---
drivers/cpufreq/scmi-cpufreq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
-off-by: Yangtao Li
---
drivers/cpufreq/powernv-cpufreq.c | 10 +++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/drivers/cpufreq/powernv-cpufreq.c
b/drivers/cpufreq/powernv-cpufreq.c
index 7e7ad3879c4e..d2230812fa4b 100644
--- a/drivers/cpufreq/powernv-cpufreq.c
+++ b
qfprom->sunxi-sid
Signed-off-by: Yangtao Li
---
Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt
b/Documentation/devicetree/bindings/nv
Add SID controller support for H5 and H6, and do some
cleanup without functional changes.
Yangtao Li (5):
nvmem: sunxi-sid: fix wrong description in kernel doc
nvmem: sunxi-sid: add support for H5's SID controller
nvmem: sunxi-sid: add binding for H6's SID controller
nvmem: sunx
Add support for H5's SID controller.
Signed-off-by: Yangtao Li
---
drivers/nvmem/sunxi_sid.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c
index 570a2e354f30..036029e90921 100644
--- a/drivers/nvmem/sunxi_sid.c
+++ b/dr
Updates license to use SPDX-License-Identifier.
Signed-off-by: Yangtao Li
---
drivers/nvmem/sunxi_sid.c | 11 +--
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c
index 8692b58d76ce..f56c9f713cb4 100644
--- a/drivers
Add a binding for H6's SID controller.
Signed-off-by: Yangtao Li
---
Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt
b/Documentation/devicetree/bindings/
Add support for H6's SID controller. It supports 4K-bit
EFUSE, bigger than before.
Signed-off-by: Yangtao Li
---
drivers/nvmem/sunxi_sid.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c
index 036029e90921..8692b58d76ce 1
After this commit ded24019b6b6f(clocksource: arm_arch_timer: clean up
printk usage), the previous macro is redundant, so delete it.
And move the new macro to the previous position.
Signed-off-by: Yangtao Li
---
drivers/clocksource/arm_arch_timer.c | 5 +
1 file changed, 1 insertion(+), 4
Add sunxi nvmem based CPU scaling driver, refers to qcom-cpufreq-kryo.
Yangtao Li (2):
cpufreq: Add sun50i nvmem based CPU scaling driver
dt-bindings: cpufreq: Document allwinner,sun50i-h6-operating-points
.../bindings/opp/sun50i-nvmem-cpufreq.txt | 167 +
MAINTAINERS
crovolt-: voltage in micro Volts.
At runtime, the platform can pick a and matching
opp-microvolt- property.
HW: :
sun50i-h6 speed0 speed1 speed2
Signed-off-by: Yangtao Li
Acked-by: Maxime Ripard
---
.../bindings/opp/sun5
For some SoCs, the CPU frequency subset and voltage value of each OPP
varies based on the silicon variant in use. The sun50i-cpufreq-nvmem
driver reads the efuse value from the SoC to provide the OPP framework
with required information.
Signed-off-by: Yangtao Li
Acked-by: Maxime Ripard
Updates license to use SPDX-License-Identifier.
Signed-off-by: Yangtao Li
---
drivers/iommu/exynos-iommu.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c
index 05c6bc099d62..938a33d2f89d 100644
--- a/drivers
Updates license to use SPDX-License-Identifier.
Signed-off-by: Yangtao Li
---
drivers/iommu/iommu-sysfs.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/iommu/iommu-sysfs.c b/drivers/iommu/iommu-sysfs.c
index 44127d54e943..a193758c8122 100644
--- a/drivers/iommu
Updates license to use SPDX-License-Identifier.
Signed-off-by: Yangtao Li
---
drivers/iommu/qcom_iommu.c | 13 +
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/drivers/iommu/qcom_iommu.c b/drivers/iommu/qcom_iommu.c
index 8cdd3f059513..ad913720d7dd 100644
--- a
Updates license to use SPDX-License-Identifier.
Signed-off-by: Yangtao Li
Acked-by: Suman Anna
---
v2:
-add include/linux/platform_data/iommu-omap.h
---
drivers/iommu/omap-iommu-debug.c | 5 +
drivers/iommu/omap-iommu.c | 5 +
drivers/iommu/omap-iommu.h
This patchset supprt H6 thermal controller.
Yangtao Li (2):
thermal: sun8i: add thermal driver for h6
dt-bindings: thermal: add binding document for h6 thermal controller
.../bindings/thermal/sun8i-thermal.txt| 34 ++
MAINTAINERS | 7 +
drivers
This patch adds the support for allwinner thermal sensor, within
allwinner SoC. It will register sensors for thermal framework
and use device tree to bind cooling device.
Signed-off-by: Yangtao Li
---
MAINTAINERS | 7 +
drivers/thermal/Kconfig | 14 ++
drivers
This patch adds binding document for allwinner h6 thermal controller.
Signed-off-by: Yangtao Li
---
.../bindings/thermal/sun8i-thermal.txt| 34 +++
1 file changed, 34 insertions(+)
create mode 100644 Documentation/devicetree/bindings/thermal/sun8i-thermal.txt
diff
Commit-ID: 5b20c6fd6a60e182243da31c47f2ebff5b0e3d57
Gitweb: https://git.kernel.org/tip/5b20c6fd6a60e182243da31c47f2ebff5b0e3d57
Author: Yangtao Li
AuthorDate: Tue, 11 Dec 2018 11:37:44 -0500
Committer: Thomas Gleixner
CommitDate: Tue, 11 Dec 2018 18:13:35 -0800
timekeeping: Convert to
Commit-ID: 6848ac7ca39a226ede5df7af0efcc4ef0611e99c
Gitweb: https://git.kernel.org/tip/6848ac7ca39a226ede5df7af0efcc4ef0611e99c
Author: Yangtao Li
AuthorDate: Mon, 19 Nov 2018 10:43:34 -0500
Committer: Thomas Gleixner
CommitDate: Tue, 18 Dec 2018 13:05:54 +0100
x86/mm/dump_pagetables
Commit-ID: 9ebc6053814d37b9de8cc291fba28f30a729c929
Gitweb: https://git.kernel.org/tip/9ebc6053814d37b9de8cc291fba28f30a729c929
Author: Yangtao Li
AuthorDate: Sat, 3 Nov 2018 13:26:02 -0400
Committer: Ingo Molnar
CommitDate: Tue, 11 Dec 2018 15:16:57 +0100
sched/core: Remove
Commit-ID: 7d9df98be66fec64349f9f1c9d3e896293fe7b45
Gitweb: https://git.kernel.org/tip/7d9df98be66fec64349f9f1c9d3e896293fe7b45
Author: Yangtao Li
AuthorDate: Sat, 3 Nov 2018 22:31:04 -0400
Committer: Thomas Gleixner
CommitDate: Mon, 5 Nov 2018 14:22:54 +0100
clockevents: Remove
Commit-ID: e45506ac0af9b56b221863e9649fe122d8bb42ff
Gitweb: https://git.kernel.org/tip/e45506ac0af9b56b221863e9649fe122d8bb42ff
Author: Yangtao Li
AuthorDate: Thu, 18 Oct 2018 10:21:33 -0400
Committer: Ingo Molnar
CommitDate: Thu, 18 Oct 2018 18:10:23 +0200
softirq: Fix typo in
Commit-ID: 0e5aa23282f8e6ee38c18f67ddfdaaa32d3df86b
Gitweb: https://git.kernel.org/tip/0e5aa23282f8e6ee38c18f67ddfdaaa32d3df86b
Author: Yangtao Li
AuthorDate: Fri, 7 Jun 2019 13:42:53 -0400
Committer: Thomas Gleixner
CommitDate: Wed, 12 Jun 2019 10:21:17 +0200
hrtimer: Remove unused
Commit-ID: 141e1ecda356bb0034027a9acb949e97a963ba16
Gitweb: https://git.kernel.org/tip/141e1ecda356bb0034027a9acb949e97a963ba16
Author: Yangtao Li
AuthorDate: Sat, 25 May 2019 14:39:25 -0400
Committer: Thomas Gleixner
CommitDate: Fri, 14 Jun 2019 17:04:04 +0200
alarmtimer: Fix
301 - 365 of 365 matches
Mail list logo