openwrt/target/linux
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
..
apm821xx kernel: bump 4.19 to 4.19.90 2019-12-24 15:34:43 +01:00
ar7 kernel: bump 4.9 to 4.9.207 2019-12-24 18:04:32 +01:00
ar71xx kernel: bump 4.14 to 4.14.159 2019-12-24 01:22:45 +01:00
arc770
archs38
armvirt treewide: Remove self from MAINTAINER entries 2019-12-23 13:18:04 -08:00
at91
ath25
ath79 ath79: tp-link: use ath10k-ct-smallbuffers for 64 MiB devices 2019-12-25 11:59:16 +01:00
bcm53xx
brcm47xx
brcm63xx
brcm2708 brcm2708: fix malformed patch 2019-12-25 02:48:25 +01:00
cns3xxx
gemini kernel: Deactivate CONFIG_SFP in generic config 2019-12-23 15:25:36 +01:00
generic kernel: bump 4.9 to 4.9.207 2019-12-24 18:04:32 +01:00
imx6 kernel: Deactivate CONFIG_SFP in generic config 2019-12-23 15:25:36 +01:00
ipq40xx kernel: Deactivate CONFIG_SFP in generic config 2019-12-23 15:25:36 +01:00
ipq806x ipq806x: rework ipq806x specific tsense temp driver 2019-12-26 08:31:42 +01:00
ixp4xx kernel: bump 4.9 to 4.9.207 2019-12-24 18:04:32 +01:00
kirkwood
lantiq kernel: bump 4.19 to 4.19.90 2019-12-24 15:34:43 +01:00
layerscape kernel: bump 4.14 to 4.14.160 2019-12-24 17:45:54 +01:00
malta treewide: Remove self from MAINTAINER entries 2019-12-23 13:18:04 -08:00
mediatek
mpc85xx mpc85xx: add support for Enterasys WS-AP3710i 2019-12-13 22:40:19 +01:00
mvebu kernel: bump 4.14 to 4.14.160 2019-12-24 17:45:54 +01:00
mxs
octeon
octeontx kernel: bump 4.14 to 4.14.160 2019-12-24 17:45:54 +01:00
omap
orion
oxnas
pistachio
ramips ramips: add label MAC address for Mikrotik RB750Gr3 2019-12-23 02:24:55 +01:00
rb532
samsung
sunxi sunxi: rename SUNXI_SOC to SOC 2019-12-20 01:18:44 +01:00
tegra
uml treewide: Remove self from MAINTAINER entries 2019-12-23 13:18:04 -08:00
x86 kernel: bump 4.19 to 4.19.90 2019-12-24 15:34:43 +01:00
zynq
Makefile