openwrt/target/linux/ipq806x
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
..
base-files ipq806x: use switch trigger for WAN LED on NETGEAR boards 2019-11-04 18:50:53 +01:00
files-4.14/arch/arm/boot/dts Revert "ipq806x: fix EA8500 switch control" 2019-11-06 00:21:15 +01:00
files-4.19/arch/arm/boot/dts ipq8065: update dtsi with new opp table 2019-12-26 08:31:42 +01:00
generic ipqx0xx: add Generic subtarget 2019-08-22 21:15:28 +02:00
image ipq806x: split up DEVICE_TITLE 2019-08-02 22:45:02 +02:00
patches-4.14 kernel: bump 4.14 to 4.14.159 2019-12-24 01:22:45 +01:00
patches-4.19 ipq806x: rework ipq806x specific tsense temp driver 2019-12-26 08:31:42 +01:00
profiles mac80211: fix selecting of ath10k -ct firmware 2018-09-27 00:22:13 +02:00
config-4.14 ipq806x: remove unsupported hw-crypto qce driver 2019-09-29 00:46:13 +02:00
config-4.19 ipq806x: update kernel config with new driver 2019-12-26 08:31:42 +01:00
Makefile ipq806x: switch to 4.19 kernel version 2019-12-19 22:41:57 +01:00