openwrt/target/linux/ipq806x/patches-4.19
Ansuel Smith 77f4d5c6bb ipq806x: rework ipq806x specific tsense temp driver
Tsense driver for ipq806x have various problem.
- Emit wrong error. On probing of this driver, nvmem driver can be
  not ready and this cause a EDEFER error. Actually this is not an
  error as the kernel will retry to probe the driver after the
  nvmem driver is loaded.
- Use uninitialized value on trigger of critical temp
- Doesn't free allocated memory

Because of this, rework the driver and improve it by removing extra
load of data.

Change the logic of loading data. Use the backup calib data only
when the calib data is not present. As the calibration is only
needed to set the temp offset, we don't really need to read
both calib data and set the offset based only on the backup one.
Also change how the notifier function work. At times when we
output the trigger message, we already have read the temp so
remove the extra read and the wrong uninitialized data that
probably caused a kernel panic for null pointer exception.
(Think we never experience this bug because the router
never reached that temp ever... So just lucky)

Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de> [nbg6817/ipq8065]
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2019-12-26 08:31:42 +01:00
..
080-ARM-dts-qcom-add-gpio-ranges-property.patch kernel: bump 4.19 to 4.19.91 2019-12-24 17:45:33 +01:00
850-soc-add-qualcomm-syscon.patch
0001-dtbindings-qcom_adm-Fix-channel-specifiers.patch
0002-dmaengine-Add-ADM-driver.patch
0030-clk-Disable-i2c-device-on-gsbi4.patch
0031-mtd-add-SMEM-parser-for-QCOM-platforms.patch
0032-phy-add-qcom-dwc3-phy.patch
0033-ARM-qcom-automatically-select-PCI_DOMAINS-if-PCI-is-.patch
0034-0001-ARM-Add-Krait-L2-register-accessor-functions.patch
0034-0002-clk-qcom-Add-support-for-High-Frequency-PLLs-HFPLLs.patch
0034-0003-clk-qcom-Add-HFPLL-driver.patch
0034-0004-dt-bindings-clock-Document-qcom-hfpll.patch
0034-0005-clk-qcom-Add-MSM8960-APQ8064-s-HFPLLs.patch
0034-0006-clk-qcom-Add-IPQ806X-s-HFPLLs.patch
0034-0007-clk-qcom-Add-support-for-Krait-clocks.patch
0034-0008-clk-qcom-Add-KPSS-ACC-GCC-driver.patch
0034-0009-dt-bindings-arm-Document-qcom-kpss-gcc.patch
0034-0010-clk-qcom-Add-Krait-clock-controller-driver.patch
0034-0011-dt-bindings-clock-Document-qcom-krait-cc.patch
0034-0012-clk-qcom-Add-safe-switch-hook-for-krait-mux-clocks.patch
0035-qcom-cpufreq-nvmem-qcm-kyrp_make_Some_variables_static.patch ipq806x: refresh new and changed patches 2019-12-26 08:31:42 +01:00
0036-qcom-cpufreq-nvmem-Re-organise-kryo-cpufreq-driver.patch ipq806x: refresh new and changed patches 2019-12-26 08:31:42 +01:00
0037-qcom-cpufreq-nvmem-Refactor-the-driver.patch ipq806x: refresh new and changed patches 2019-12-26 08:31:42 +01:00
0038-qcom-cpufreq-nvmem-Add-support-for-krait-based-socs.patch ipq806x: refresh new and changed patches 2019-12-26 08:31:42 +01:00
0049-PM-OPP-Support-adjusting-OPP-voltages-at-runtime.patch ipq806x: refresh new and changed patches 2019-12-26 08:31:42 +01:00
0051-PM-OPP-Add-a-helper-to-get-an-opp-regulator-for-devi.patch
0052-PM-OPP-Update-the-voltage-tolerance-when-adjusting-t.patch ipq806x: refresh new and changed patches 2019-12-26 08:31:42 +01:00
0053-regulator-add-smb208-support.patch
0054-cpufreq-dt-Handle-OPP-voltage-adjust-events.patch ipq806x: refresh new and changed patches 2019-12-26 08:31:42 +01:00
0055-cpufreq-dt-Add-L2-frequency-scaling-support.patch ipq806x: refresh new and changed patches 2019-12-26 08:31:42 +01:00
0056-cpufreq-dt-Add-missing-rcu-locks.patch ipq806x: refresh new and changed patches 2019-12-26 08:31:42 +01:00
0059-ARM-cpuidle-Add-cpuidle-support-for-QCOM-cpus.patch
0060-HACK-arch-arm-force-ZRELADDR-on-arch-qcom.patch
0061-mtd-rootfs-conflicts-with-OpenWrt-auto-mounting.patch
0062-ipq806x-gcc-Added-the-enable-regs-and-mask-for-PRNG.patch
0063-1-ipq806x-tsens-driver.patch
0063-2-tsens-support-configurable-interrupts.patch
0063-3-tsens-fix-kernel-4_19.patch kernel: bump 4.19 to 4.19.91 2019-12-24 17:45:33 +01:00
0063-4-ip806x-tsense-rework-driver.patch ipq806x: rework ipq806x specific tsense temp driver 2019-12-26 08:31:42 +01:00
0064-clk-clk-rpm-fixes.patch
0065-arm-override-compiler-flags.patch
0067-generic-Mangle-bootloader-s-kernel-arguments.patch kernel: bump 4.19 to 4.19.91 2019-12-24 17:45:33 +01:00
0069-arm-boot-add-dts-files.patch
0070-qcom-spm-fix-probe-order.patch
0071-1-PCI-qcom-Fixed-IPQ806x-specific-clocks.patch
0071-2-PCI-qcom-Fixed-IPQ806x-PCIE-reset-changes.patch
0071-3-PCI-qcom-Fixed-IPQ806x-PCIE-init-changes.patch
0071-5-PCI-qcom-Programming-the-PCIE-iATU-for-IPQ806x.patch
0071-6-PCI-qcom-Force-GEN1-support.patch kernel: bump 4.19 to 4.19.91 2019-12-24 17:45:33 +01:00
0071-7-pcie-Set-PCIE-MRRS-and-MPS-to-256B.patch kernel: bump 4.19 to 4.19.91 2019-12-24 17:45:33 +01:00
0071-8-pcie-qcom-Fixed-pcie_phy_clk-branch-issue.patch
0071-9-pcie-qcom-change-duplicate-pci-reset-to-phy-reset.patch
0072-add-ipq806x-with-no-clocks.patch kernel: bump 4.19 to 4.19.91 2019-12-24 17:45:33 +01:00
0073-pinctrl-qom-use-scm_call-to-route-GPIO-irq-to-Apps.patch
0075-ipq8064-pinctrl-Fixed-missing-RGMII-pincontrol-defin.patch