]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / scan: Initialize watchdog before PNP
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 19 Apr 2018 10:08:37 +0000 (13:08 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 23 Apr 2018 06:56:38 +0000 (08:56 +0200)
commitfe84e675d265615f9c520448d75a6d6d7cf93d9b
treec28660d9ec2f2aaa3d35f5b4bf9d6bb29d887d71
parent973749235e9a82e6427f10ff5051544290b05216
ACPI / scan: Initialize watchdog before PNP

At least on one Dell system the PNP motherboard resources device
includes resources used by WDAT table. Since PNP gets initialized before
WDAT it results following error and no watchdog:

  platform wdat_wdt: failed to claim resource 3: [io  0x046a-0x046c]
  ACPI: watchdog: Device creation failed: -16

Now, the PNP system driver is already accustomed with the situation that
it cannot reserve all those motherboard resources because drivers using
those might have reserved them already. In addition putting WDAT table
resources under motherboard resources device makes sense in general.

Fix this by initializing WDAT right before PNP. This allows WDAT to
reserve all its resources and still keeps PNP system driver happy.

Reported-by: Shubhrata.Priyadarsh@dell.com
Reported-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c