]> 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)
commit51e71889c04b6691d82260dcf91614340c0e379a
tree8eeff3baea6bc61d55d48b73202a09d2496be3f7
parent27dedfdb46d95faf1be69bb33c0603df5fa9eda9
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