Received: by 10.192.165.148 with SMTP id m20csp2471940imm; Sun, 22 Apr 2018 07:45:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+vSWjH3/FNQt4/l8m8E4A4ZjDk4Wm3M9Xeh4Lu1BbUkTysTfBXX0voV2UWoA3r2Eltxvpo X-Received: by 2002:a17:902:6e8f:: with SMTP id v15-v6mr17908379plk.245.1524408320093; Sun, 22 Apr 2018 07:45:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524408320; cv=none; d=google.com; s=arc-20160816; b=nv+KFeKtBAR3fPFzRtNHcv3ofQ5wnWN8OjhlK3W7vZPjK/CrnAzI8ax91byKnqCniz a3u5glspyIh9VZrtNO/omPzn7KUCq7uUSMqEKa0WsWNxLkcpcozODYaK3l+M3Uabhlz2 sIMErJRcycfKuari/TVuu63BmiVIU1UXZ5J6qcqekWN84vsLb6u63QSdpa3UKbIPch1J XEJsRcJGgZOorpjvf8FQ6+AVoEho065wzPYsexaKm0jIcdRvNoCIKc8ysbWLMxgP2ctO l5lD68aZK7zgf7gSvuuFss8L0O8Sk9LBy6tC9YD8btph2t5WFrOivUDXuOTa/ih+eM6h W6/w== 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=Gr52KhL0B6/h2oUOTRfj7MKQnetlIg1itW08YmlxQ0M=; b=Qf8Ztt4SI40w8gREkcmkiUR5Dc/I2H8e23mUxs4Co0br817Co8mastZaHEyVyXvbPI k4KRXzlGRuXkXA526gOhtWKlmTW7ITBaXIvktkd46ElpL9V/tfqYZD/3LMBGBuAHu1Yr Lm/wnwntzfTT675UgU1KiEPvt6ZN01DtzvIP1/q0gChIOhKERd8oNz+GZX1zTrmbJBVD 2ydxqBUwOgGMPdX1iJ2Geisd2FkrOsR193AOaZYvc0AJ6kTh5xHopAtMoUHLVu53k3ot uZRLDpdhwpVqNibs540K+uooVRMfGI1VMcrMbp2aEGnQmVCJ65Mr84PUly12C7HvVuCT gDAQ== 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 i12si8336587pgr.256.2018.04.22.07.45.05; Sun, 22 Apr 2018 07:45:20 -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 S932419AbeDVORP (ORCPT + 99 others); Sun, 22 Apr 2018 10:17:15 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58002 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932405AbeDVORJ (ORCPT ); Sun, 22 Apr 2018 10:17:09 -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 B0F6E4A5; Sun, 22 Apr 2018 14:17:08 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mika Westerberg , Andy Shevchenko Subject: [PATCH 4.4 46/97] thunderbolt: Resume control channel after hibernation image is created Date: Sun, 22 Apr 2018 15:53:24 +0200 Message-Id: <20180422135307.880943911@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135304.577223025@linuxfoundation.org> References: <20180422135304.577223025@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.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mika Westerberg commit f2a659f7d8d5da803836583aa16df06bdf324252 upstream. The driver misses implementation of PM hook that undoes what ->freeze_noirq() does after the hibernation image is created. This means the control channel is not resumed properly and the Thunderbolt bus becomes useless in later stages of hibernation (when the image is stored or if the operation fails). Fix this by pointing ->thaw_noirq to driver nhi_resume_noirq(). This makes sure the control channel is resumed properly. Fixes: 23dd5bb49d98 ("thunderbolt: Add suspend/hibernate support") Signed-off-by: Mika Westerberg Reviewed-by: Andy Shevchenko Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/thunderbolt/nhi.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/thunderbolt/nhi.c +++ b/drivers/thunderbolt/nhi.c @@ -627,6 +627,7 @@ static const struct dev_pm_ops nhi_pm_op * we just disable hotplug, the * pci-tunnels stay alive. */ + .thaw_noirq = nhi_resume_noirq, .restore_noirq = nhi_resume_noirq, };