Received: by 10.192.165.148 with SMTP id m20csp2445170imm; Sun, 22 Apr 2018 07:13:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/y5yjZKKqt0R4h/8t5o248z+6u+gmtc1Em4b2LV7B33X/PUlCgAHvXHQdZrIx9GGQKSgDJ X-Received: by 2002:a17:902:b709:: with SMTP id d9-v6mr16630885pls.188.1524406405411; Sun, 22 Apr 2018 07:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524406405; cv=none; d=google.com; s=arc-20160816; b=a4yvFlL9C9ww2hCsVi0YGhSScLiQY2XBDjlXp1sYkPoI0l9lDfFzaqkiQ7kPBC8e/4 Bs0Fs/nalyWrbmMftG5sU6BJWej+1e2zfNp6E9e8LEeqOgaedbaKJ5Dv0scb8dAAzl5C kUmY+yjUJIkMxzJe239CcO8q+Y4fuaSOJAFgkcGegpcyT82iQaiZ/4N922o0/+NSkrAG DkMW3NN8J7CZs8nk5YjBpxA23bYokAw9d03bzv6MGvxzLo8luH2q/YrRvVPeC0X519X2 MfX3aFw7P/ZJlLbupYwFf7QEsVZ6fefMbZY/upsYZmUDimLz8zZXTwVSDgAojHJtnjT6 XaSw== 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=cKcTuIKzN3qJVomKliD/+eDGkd5RqxCo/ZmmIrixbLw=; b=tVmjNRiL1tNJkowaOiH5LZMn1WSiGZ6ckfGlLzeDA7hVJMOq48n/KBIiuyw5GlXojT eFeNl5yBATGRoHJ0cjtxfnIFWlBCSki6TJPmX3KYIkDrULrj4THPAQD4QUiZt1sKKa0k D6dUVaI4XjRvOEHYY8HmTpxde1YP9H+Dj1L6OGpTE63Ed8LX40S4DCMj3YpjFgcIVdb6 UKoVynXVb3d65lq0/n5pL8QpqS+/ZlKXWWqtwyQ/LhjK4ig2VY2aqoCbH7btpkV09s5D FUkVUBMXlggOfPwPB6MOOBTCStvIhAVVJTrVKFM52VTZm6eUcSiYY1Is/VXNgnIDGRC3 AFgQ== 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 v72si9443401pfa.59.2018.04.22.07.13.11; Sun, 22 Apr 2018 07:13:25 -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 S1756644AbeDVOMK (ORCPT + 99 others); Sun, 22 Apr 2018 10:12:10 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:54860 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756624AbeDVOMH (ORCPT ); Sun, 22 Apr 2018 10:12:07 -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 C678FCE0; Sun, 22 Apr 2018 14:12:06 +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.9 31/95] thunderbolt: Resume control channel after hibernation image is created Date: Sun, 22 Apr 2018 15:53:00 +0200 Message-Id: <20180422135211.714405675@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135210.432103639@linuxfoundation.org> References: <20180422135210.432103639@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.9-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 @@ -628,6 +628,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, };