linux/drivers/net
Ido Schimmel 5d08604754 Revert "thermal/drivers/mellanox: Use generic thermal_zone_get_trip() function"
This reverts commit a71f388045.

Commit a71f388045 ("thermal/drivers/mellanox: Use generic
thermal_zone_get_trip() function") was backported as a dependency of the
fix in upstream commit 6d206b1ea9 ("mlxsw: core_thermal: Fix fan speed
in maximum cooling state"). However, it is dependent on changes in the
thermal core that were merged in v6.3. Without them, the mlxsw driver is
unable to register its thermal zone:

mlxsw_spectrum 0000:03:00.0: Failed to register thermal zone
mlxsw_spectrum 0000:03:00.0: cannot register bus device
mlxsw_spectrum: probe of 0000:03:00.0 failed with error -22

Fix this by reverting this commit and instead fix the small conflict
with the above mentioned fix. Tested using the test case mentioned in
the change log of the fix:

 # cat /sys/class/thermal/thermal_zone2/cdev0/type
 mlxsw_fan
 # echo 10 > /sys/class/thermal/thermal_zone2/cdev0/cur_state
 # cat /sys/class/hwmon/hwmon1/name
 mlxsw
 # cat /sys/class/hwmon/hwmon1/pwm1
 255

After setting the fan to its maximum cooling state (10), it operates at
100% duty cycle instead of being stuck at 0 RPM.

Fixes: a71f388045 ("thermal/drivers/mellanox: Use generic thermal_zone_get_trip() function")
Reported-by: Joe Botha <joe@atomic.ac>
Tested-by: Joe Botha <joe@atomic.ac>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-06-05 09:26:21 +02:00
..
appletalk
arcnet
bonding net: fix stack overflow when LRO is disabled for virtual interfaces 2023-05-30 14:03:20 +01:00
caif
can can: kvaser_pciefd: Disable interrupts in probe error path 2023-05-24 17:32:50 +01:00
dsa net: dsa: mv88e6xxx: Add RGMII delay to 88E6320 2023-05-30 14:03:17 +01:00
ethernet Revert "thermal/drivers/mellanox: Use generic thermal_zone_get_trip() function" 2023-06-05 09:26:21 +02:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipa
ipvlan
mctp
mdio
netdevsim
pcs net: pcs: xpcs: fix C73 AN not getting enabled 2023-05-24 17:32:47 +01:00
phy net: phy: mscc: enable VSC8501/2 RGMII RX clock 2023-06-05 09:26:20 +02:00
plip
ppp
pse-pd
slip
team net: fix stack overflow when LRO is disabled for virtual interfaces 2023-05-30 14:03:20 +01:00
usb net: cdc_ncm: Deal with too low values of dwNtbOutMaxSize 2023-05-30 14:03:18 +01:00
vmxnet3
vxlan
wan
wireguard
wireless wifi: iwlwifi: mvm: fix potential memory leak 2023-06-05 09:26:20 +02:00
wwan net: wwan: iosm: fix NULL pointer dereference when removing device 2023-05-24 17:32:47 +01:00
xen-netback
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c tun: Fix memory leak for detached NAPI queue. 2023-05-24 17:32:47 +01:00
veth.c
virtio_net.c virtio_net: Fix error unwinding of XDP initialization 2023-05-24 17:32:45 +01:00
vrf.c
vsockmon.c
xen-netfront.c