Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7367481yba; Thu, 2 May 2019 08:41:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxu5l0PmlSrnQNbN03/haEBnJZZW9wSVhXexvJAcdnLhHHrIU2og4hDfqP9LcugPrtDoSRw X-Received: by 2002:a17:902:28e9:: with SMTP id f96mr4471249plb.37.1556811711630; Thu, 02 May 2019 08:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556811711; cv=none; d=google.com; s=arc-20160816; b=fkrdmUWz1SagPTPB1Kjr9AGrPuP1kesHJtAV/bHU/HyiU5huZpXREiWeROneHwPWT3 qfS0t9J3OJ9WmwhKaduMu4PeoAZNgePBMZCPXDTQsm+0OdQ7MJT6YCNh0z5DKsm3/TKO JUhQd7mwcULCdF9V6G6IRi29QoQ4j7lGcghXFsPa0RZoJlxg7wH5Tx0xpON7nSlSfZ5a BYigqce+SENIJafano3WLhKkTwAp+sw4pNOSAprxn3d/iK00ToKFqaYo/aqCJC8lIWbO doH1Ea2svf4+fjLbREd7jIh93odsQ0UmjY0eT9BzHBPgc42wS1Q/UF2WeVk/M3QUgMjQ +MuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WzYlwmFjMY1TW6txdLXcsOF/vQD8I/CAVGy22qnBY1Y=; b=ep0kcFKW9L/ETHOzT6gMOSrPF1PyqJwILxSQSjcLN4WGsWtsdN5upqgUeYzRsbmLdS rV/utVfl4rKcvSbTs8pvsef9mWioQqiin2tQ1kBURic3QwdbNcSh9NsPxVCBf/mLopIh yC5fmAnAHbPa2kpbmh/K+sJt/Wlg9rcuaYxol+wcjj5EtX6pGIvsA0l3Azm2EmHqYN6R nMqhPdAbLyyFpGlmYar7Uiq0kOCsSM+sMDaZoP2BNTnK3J81zFrJbZ6Mz6whOHHSsVnj FlJfjcQj9U6XibKBDD0l5S65/OYonezAsmYEpx2kQDgEl3V98gC+6HKLLI0gPZmnuv75 wtuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MH8yDFAb; 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 h73si47400509pfj.220.2019.05.02.08.41.36; Thu, 02 May 2019 08:41:51 -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; dkim=pass header.i=@kernel.org header.s=default header.b=MH8yDFAb; 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 S1727884AbfEBP3S (ORCPT + 99 others); Thu, 2 May 2019 11:29:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:46872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728360AbfEBP3O (ORCPT ); Thu, 2 May 2019 11:29:14 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 02BD1214DA; Thu, 2 May 2019 15:29:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556810953; bh=kRawRg+kLkcMJc/eiEA5SPZ7cOmi0+y1rBmsHKgLpvc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MH8yDFAbQ/MQdKQltm/G6oY6YR/s7PfS11dCxmGfbwJH0ZktZQzjigiOSI6e2rCHu NVMDN0EWttQfuqMnucstajBg8GD6eKPlrQz9ETTFTMsxFEAgqnauP5p5dO899Of7x3 IiTfe4agJSAR7xad4eFw/hAbVH482LN5UCbk10nI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Hirmke , Takashi Iwai , "Rafael J. Wysocki" Subject: [PATCH 5.0 002/101] Revert "ACPICA: Clear status of GPEs before enabling them" Date: Thu, 2 May 2019 17:20:04 +0200 Message-Id: <20190502143339.638091641@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190502143339.434882399@linuxfoundation.org> References: <20190502143339.434882399@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki commit 2c2a2fb1e2a9256714338875bede6b7cbd4b9542 upstream. Revert commit c8b1917c8987 ("ACPICA: Clear status of GPEs before enabling them") that causes problems with Thunderbolt controllers to occur if a dock device is connected at init time (the xhci_hcd and thunderbolt modules crash which prevents peripherals connected through them from working). Commit c8b1917c8987 effectively causes commit ecc1165b8b74 ("ACPICA: Dispatch active GPEs at init time") to get undone, so the problem addressed by commit ecc1165b8b74 appears again as a result of it. Fixes: c8b1917c8987 ("ACPICA: Clear status of GPEs before enabling them") Link: https://lore.kernel.org/lkml/s5hy33siofw.wl-tiwai@suse.de/T/#u Link: https://bugzilla.opensuse.org/show_bug.cgi?id=1132943 Reported-by: Michael Hirmke Reported-by: Takashi Iwai Cc: 4.17+ # 4.17+ Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- drivers/acpi/acpica/evgpe.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) --- a/drivers/acpi/acpica/evgpe.c +++ b/drivers/acpi/acpica/evgpe.c @@ -81,12 +81,8 @@ acpi_status acpi_ev_enable_gpe(struct ac ACPI_FUNCTION_TRACE(ev_enable_gpe); - /* Clear the GPE status */ - status = acpi_hw_clear_gpe(gpe_event_info); - if (ACPI_FAILURE(status)) - return_ACPI_STATUS(status); - /* Enable the requested GPE */ + status = acpi_hw_low_set_gpe(gpe_event_info, ACPI_GPE_ENABLE); return_ACPI_STATUS(status); }