Received: by 10.192.165.148 with SMTP id m20csp2458271imm; Sun, 22 Apr 2018 07:27:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+TwjA+4z6RJrXAm22PQpzmI4xOlnRYklLiq7OXu3z7dWU83CHmlALAFhgFwbYJrAUoz9z3 X-Received: by 10.98.88.194 with SMTP id m185mr16430654pfb.167.1524407275835; Sun, 22 Apr 2018 07:27:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524407275; cv=none; d=google.com; s=arc-20160816; b=ZxyLgwLKAxj6QDQq1h7DlcD6CmoobX6F8PGG4rsA1iTQMZsyB0u7sqVhjudV2AGOzF yDFlFBmoyklekDVET6Y4UAFJqsKmikpy/P8M2u+ajuisW5SCCwz0QpnPZPlksR+JQ2jY VqgwAVj9xE4nfTT1m7Yuxrj4aGHHsYFeKVakkvNSPK6GahnA/Ov1jCRbjB2L+1hVeeW3 C1tdd4QKlK7Y54jlEHZKzpP6y8nxQmq8YmZXELsfEjySbchbEc09Xsep5Vm23FU+qQsO 85vU/EnIb+X5SN7mvGrFk0fBxk0x7+RkFB+Rf0hnCp2o4kRN5KkE0dkyNe5xvUXUlHoP WFDQ== 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=aKgWC1y/0YQbGlUNmOMUAJp2pI6WfR7eWNMSt9UuPRk=; b=L6C00Lv3zCabhYfJDVUUJvAKo3Uypv67P8xOl5rLxeMIpxe94LWT3KC9j+B/VpMvw4 acvQ/JJDYst7VoCa2ZXxW04Rkdxrij+L7u7VtMsoEEAzB89/1Hq6iMmmI/IfXPv7vPWs PbLe9RdDpKYvlReL9ln2pgwM/5vkY/EriVWe1onCI15/kwmBIpWLVHYecAAPILYhK/Xa CiaM1Sx19G1t/wPdHw1Qgp6G7w/ztaOmisMVujEqH5Rno0KH6ESRnSjVCOnv3pKk16bN oP784hEKQ/22z6AKTnZMZHZevbvlcIisBSzINUSbIU/adkuQeVIMCjUGrnvYs5i7RDa/ OihQ== 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 k70si8123660pgc.648.2018.04.22.07.27.18; Sun, 22 Apr 2018 07:27:55 -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 S1757884AbeDVOY1 (ORCPT + 99 others); Sun, 22 Apr 2018 10:24:27 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33250 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757670AbeDVOWE (ORCPT ); Sun, 22 Apr 2018 10:22:04 -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 02E89D22; Sun, 22 Apr 2018 14:22:03 +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 3.18 23/52] thunderbolt: Resume control channel after hibernation image is created Date: Sun, 22 Apr 2018 15:53:56 +0200 Message-Id: <20180422135316.364136514@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135315.254787616@linuxfoundation.org> References: <20180422135315.254787616@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 3.18-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, };