]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: fix temp/pwm visibility, skip hwmon when no sensors exist
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 22 Apr 2018 21:47:12 +0000 (17:47 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 18 May 2018 07:09:48 +0000 (17:09 +1000)
commitf76ed7e12258a2084724441bdc98aa0e9773e11b
tree8eeff3baea6bc61d55d48b73202a09d2496be3f7
parent0ca7826e9c80717fbee538e90619494d863d8706
drm/nouveau: fix temp/pwm visibility, skip hwmon when no sensors exist

A NV34 GPU was seeing temp and pwm entries in hwmon, which would error
out when read. These should not have been visible, but also the whole
hwmon object should just not have been registered in the first place.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_hwmon.c