]> asedeno.scripts.mit.edu Git - linux.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)
commitcc6a0e315a68e5db85bea347b0c5b0fe4a9a5904
treec28660d9ec2f2aaa3d35f5b4bf9d6bb29d887d71
parent6d08b06e67cd117f6992c46611dfb4ce267cd71e
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