]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / nouveau: fix probing regression related to _DSM
authorJiang Liu <jiang.liu@linux.intel.com>
Thu, 20 Feb 2014 09:23:16 +0000 (17:23 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 20 Feb 2014 20:19:47 +0000 (21:19 +0100)
commitf252c716bc778d759138b180a0e86d749d35a12d
treef5c085ac2ac29ecd34543394a4991d16895994d6
parent402250cf95fec44f6202322d7ab10798260fdd6b
ACPI / nouveau: fix probing regression related to _DSM

Fix regression caused by commit af7ab27, which breaks loading nouveau
driver on optimus laptops.

On some platforms, ACPI _DSM method (nouveau_op_dsm_muid, function 0)
has special requirements on the fourth parameter, which is different
from ACPI specifications. So revert to the private implementation
to check availability of _DSM functions instead of using common
acpi_check_dsm() interface.

Fixes: af7ab2792250 (ACPI / nouveau: replace open-coded _DSM code with helper functions)
Reported-and-tested-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
[rjw: Subject]
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/gpu/drm/nouveau/nouveau_acpi.c