Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3796599imm; Mon, 18 Jun 2018 04:20:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI12KetfkCkgCgW39a2uVOboji6xwvbp0ZQofZ5U7DTVaEC/67rkBywoCHwWofIlTOnzbRK X-Received: by 2002:a62:ecdb:: with SMTP id e88-v6mr13257071pfm.16.1529320829453; Mon, 18 Jun 2018 04:20:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529320829; cv=none; d=google.com; s=arc-20160816; b=eYE3sXvYZ/cCTRLgD2URJIS6mhvCpt2UTp87tVcjtj8K/gNL2rfY9qn3OlASOujYYJ 7X9CdFPosQq5j+q+wKcm82nNgeh+zLSpMg25XSdZrLZP8560UYElkUdhjwqLn8UJ88Xr 6CkY/rAwpny5f6mmnrpIRP7hdDgLm789e/MZVWK+/r+xNac/Or5RYg9RFO7LCEa1u83B MewcIhVW9kk49ksMOG5j7qTA02lLfe8K6taut4u+xTQrMsYphOKiavPEb6JRVedMC+Zi Tr5tDa1WZVI9eP3pXtc5GU5Yn99jHmmpOLc5K+jQT/tmpJ4LqMqcKLh5O+BxUm8PUNWg nZsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=3YsM8PQPTlV6nR8cMQ6SvsMTzEiJKNYSPlaTAJ6OhCo=; b=yUza9lwu7FQiy5/Q+/gpi28kyYrabdEnescAufpFzHrBooDTzGUwQAeXwb4L1JyYCV G1bbIhEsN8z4aHk4yEei2BLtM/VViCHQQzAVageL6x3O0nPq4mogAUNyZ4uF8CvvI4+Q WR77WQCdP5Qy7KBVvBbdF40TLn9TQtyMniiztCG3p4TBCApDQ1JoHxstnIiXS18LAav6 3xVx7704fTRL5tBoI4SvXyyJVluX9OtBHb0teFGcs1bBdjeErJjtiZVoRMh1TUZeA5ou /MiXBSgMFfqSnUKwWuzcUiORBLg5DzbfCgaZIcsLCifJP6FYc47D1WzZ9tgcPjpG/WTz Ys/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17-v6si14769724plo.259.2018.06.18.04.20.16; Mon, 18 Jun 2018 04:20:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965540AbeFRKDF (ORCPT + 99 others); Mon, 18 Jun 2018 06:03:05 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:54626 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935092AbeFRIS2 (ORCPT ); Mon, 18 Jun 2018 04:18:28 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 935C9BAD; Mon, 18 Jun 2018 08:18:27 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shubhrata.Priyadarsh@dell.com, Takashi Iwai , Mika Westerberg , Guenter Roeck , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 4.16 077/279] ACPI / scan: Initialize watchdog before PNP Date: Mon, 18 Jun 2018 10:11:02 +0200 Message-Id: <20180618080612.003790910@linuxfoundation.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180618080608.851973560@linuxfoundation.org> References: <20180618080608.851973560@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mika Westerberg [ Upstream commit cc6a0e315a68e5db85bea347b0c5b0fe4a9a5904 ] 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 Signed-off-by: Mika Westerberg Acked-by: Guenter Roeck Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/acpi/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -2150,10 +2150,10 @@ int __init acpi_scan_init(void) acpi_cmos_rtc_init(); acpi_container_init(); acpi_memory_hotplug_init(); + acpi_watchdog_init(); acpi_pnp_init(); acpi_int340x_thermal_init(); acpi_amba_init(); - acpi_watchdog_init(); acpi_init_lpit(); acpi_scan_add_handler(&generic_device_handler);