]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt7915e: Add a hwmon attribute to get the actual throttle state.
authorNicolas Cavallari <nicolas.cavallari@green-communications.fr>
Mon, 7 Feb 2022 17:37:46 +0000 (18:37 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 24 Feb 2022 13:40:22 +0000 (14:40 +0100)
commit2156c2a83323d7da73c367ebc77eb45d2f8f6d28
treee715f17eb6ba742c601986021f077e5518231ce9
parent0263e7ac37ab2d55ca54bae46e824077a5afcc4d
mt76: mt7915e: Add a hwmon attribute to get the actual throttle state.

The firmware-controlled actual throttle state was previously available
by reading the cooling_device, but this confused the thermal subsystem.
Add a hwmon attribute to get it instead.

Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/init.c