Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3466255imm; Mon, 13 Aug 2018 12:10:48 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw4yif4aWwnuBpgk5PGztHq6Eauh4aROaZtC+5rXFwoA0UDeoPBvXl3Vfh3+MnrMX9t/a2o X-Received: by 2002:a63:e40d:: with SMTP id a13-v6mr17840893pgi.289.1534187448717; Mon, 13 Aug 2018 12:10:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534187448; cv=none; d=google.com; s=arc-20160816; b=wkFBFMnaOYFwcmXQWxGaEQwhrWmoHXtVyL+qLLo8TuH7jy5oBM1ZKhH8P6MF9i0DpV R4d6uNqrmONkroS94NFFj2tjmj6uKIJKN6BxjzDcyYURKStvlGlofsUxhM/lX9yYIaLi LEvMFU8gM5/0HlCNvyEPbW+UkefnuuOnG9Gj1S0W8ARh5oQ/WrrvKSALB11Msxr0oRRe WEVJjU1I8r5jYeGOaQYqPr3zGtUC7G/k/fI5b3AbSnOtbzU/Xm2/ro2RufN5uAZzI5Fo gLunN+CCdUt5G+a/6jNhFcuMxd6sURVSykElaZ/GsDPUZNsDCEpdRr9HRIWbYT5XyDYl jmKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=DgFnHw0qcCzNp2Amu/dkXqiuq78oI5l8X6kE2GQ7tR8=; b=lZBKvrQSiuFBO3CkJ47UT8Y4TWBv9r2hIsgRTDsNPuAtZU9kAAyo7OTi8O98IO+vSo Oe1wajaxP7qiVHpuLAA+mTee7Mrqvz8bqS8SUW7GGy7BS9eHccQBc1rr+lvoFoNnGkta wuZPjz+hbCsPmnUh9AJkqy5lNcMnW7yx6mbcae5D4SNW5OWTTDz+YVaWMkKV2VH0fZfk zaGmeUkYeHA/6fIpE8QwZkk6e1JZhCjmiAstxJtTExdVLZGj1DZcMWh9DDmZACiG3qxB xWavwAkOzZCdSG3XgmtK6z1Vbvu76L9Qx21TnyUIQ2CyupQIIBWXWWJ71AbgIKZ43uYd j9wA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h12-v6si19827818pfk.156.2018.08.13.12.10.33; Mon, 13 Aug 2018 12:10:48 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730920AbeHMVuq (ORCPT + 99 others); Mon, 13 Aug 2018 17:50:46 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:34260 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730352AbeHMVuo (ORCPT ); Mon, 13 Aug 2018 17:50:44 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E5F5987A7A; Mon, 13 Aug 2018 19:07:13 +0000 (UTC) Received: from malachite.bss.redhat.com (dhcp-10-20-1-11.bss.redhat.com [10.20.1.11]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9102110EE77E; Mon, 13 Aug 2018 19:07:13 +0000 (UTC) From: Lyude Paul To: nouveau@lists.freedesktop.org Cc: stable@vger.kernel.org, Lukas Wunner , Karol Herbst , Ben Skeggs , David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 2/5] drm/nouveau: Remove duplicate poll_enable() in pmops_runtime_suspend() Date: Mon, 13 Aug 2018 15:07:00 -0400 Message-Id: <20180813190706.24172-3-lyude@redhat.com> In-Reply-To: <20180813190706.24172-1-lyude@redhat.com> References: <20180813190706.24172-1-lyude@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 13 Aug 2018 19:07:13 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 13 Aug 2018 19:07:13 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'lyude@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since actual hotplug notifications don't get disabled until nouveau_display_fini() is called, all this will do is cause any hotplugs that happen between this drm_kms_helper_poll_disable() call and the actual hotplug disablement to potentially be dropped if ACPI isn't around to help us. Signed-off-by: Lyude Paul Cc: stable@vger.kernel.org Cc: Lukas Wunner Cc: Karol Herbst --- drivers/gpu/drm/nouveau/nouveau_drm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index c7ec86d6c3c9..5fdc1fbe2ee5 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c @@ -835,7 +835,6 @@ nouveau_pmops_runtime_suspend(struct device *dev) return -EBUSY; } - drm_kms_helper_poll_disable(drm_dev); nouveau_switcheroo_optimus_dsm(); ret = nouveau_do_suspend(drm_dev, true); pci_save_state(pdev); -- 2.17.1