Received: by 2002:a17:90a:9103:0:0:0:0 with SMTP id k3csp11792932pjo; Thu, 2 Jan 2020 14:22:25 -0800 (PST) X-Google-Smtp-Source: APXvYqzPws9rxrUAyY6gjaQdgMm0gDH5k4p1k1ZNlNMzABPzxvewKJZHrzWuSWuLeEGF0qqiIgmG X-Received: by 2002:a05:6808:315:: with SMTP id i21mr2917063oie.139.1578003745496; Thu, 02 Jan 2020 14:22:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578003745; cv=none; d=google.com; s=arc-20160816; b=y0HE8wp5wReGvEXtToygdreh58OhbOqHQXNTc7V8taVRetziERJkkh+oG8tLo1mKC5 iXSB4noUBFJLuxYesB2Q09SCqV0x/KPAc9sz2+zNR1lvsPE89pSg5n2J1UhVu9olo/f1 A4+mwzSyuoeiXT2/8A7G/xYqqvtUCpj/0ls4tHiwajSSE4gfJh3X9F6P7sY1r5tvbjJn V+ahQpaaxTeJi8OsLbMcwoqPSbnecaGryUvic7pmEstaxj0ld1YwAPG6GQp5aPKjUXZE HqJHPwALd+lbLMcn+CWu01dX+1yqSfd3nw4FN8/c7ojefvDLE6UW/tSy1QVTYTcOV7zD oaIA== 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=0VBJZ3BZRg6WIDMvG3ayg/ML7C2auD6RhX8WnHcg8BU=; b=OMfcyqvv25MvF4hja0I9AaRPwUnlM0LUqAF+3a28Ar/9Yf5iQdxXAR0ttzaGF50orJ BtE7nkY5JuvVrRpHTLtqx8VwB9gCVNyZE/l6tDwBAdsivgGpmN0C+VoDgHRtAzZneNt7 OYQmHTnzp3XKFN/rnKLHeGjPTHUspib0IcItHy9VFYpwjlaJEEsBsUJTYhrLSxls5nEx IKpzqe6kStx6QSVHtDEafxcg0Rlj++rf8bvv3DxRe0chd8w1077fWDEMZ83alRNX7fkP wHDv7Yy7v51O6CG/bVkj9rzuV6UAVPOWxcJS4Kq38a34AQ1idvyhp0V/ByQfgWEUUtJq 8u6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xLI8sBI2; 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 w19si28932221otj.209.2020.01.02.14.22.13; Thu, 02 Jan 2020 14:22:25 -0800 (PST) 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=xLI8sBI2; 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 S1729029AbgABWVi (ORCPT + 99 others); Thu, 2 Jan 2020 17:21:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:40878 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729007AbgABWVf (ORCPT ); Thu, 2 Jan 2020 17:21:35 -0500 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 1023624649; Thu, 2 Jan 2020 22:21:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003694; bh=8hnfwAge4CXRgad8fJNs6mBzSH+LB7Z0uK9OB6+f7JY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xLI8sBI2rLBKIiDJ2ako7MPJ8bhGHfuDoHAfN4AG7uWLpk+Sth0Q7MxF5qE6MUZNX 43BEqgLvbDis+Fb8k4Goya6f7+TN2nH1z7m12cEbXXYj5ws85AAFpSOIzrNLyVcaBq V6WJjDyJvb+tYhbvH8uUdZDA+p5RLKbg0rekfK8w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jack Wang , peter chang , Deepak Ukey , Viswas G , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.19 052/114] scsi: pm80xx: Fix for SATA device discovery Date: Thu, 2 Jan 2020 23:07:04 +0100 Message-Id: <20200102220034.309965324@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102220029.183913184@linuxfoundation.org> References: <20200102220029.183913184@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: peter chang [ Upstream commit ce21c63ee995b7a8b7b81245f2cee521f8c3c220 ] Driver was missing complete() call in mpi_sata_completion which result in SATA abort error handling timing out. That causes the device to be left in the in_recovery state so subsequent commands sent to the device fail and the OS removes access to it. Link: https://lore.kernel.org/r/20191114100910.6153-2-deepak.ukey@microchip.com Acked-by: Jack Wang Signed-off-by: peter chang Signed-off-by: Deepak Ukey Signed-off-by: Viswas G Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/pm8001/pm80xx_hwi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c b/drivers/scsi/pm8001/pm80xx_hwi.c index 5021aed87f33..8627feb80261 100644 --- a/drivers/scsi/pm8001/pm80xx_hwi.c +++ b/drivers/scsi/pm8001/pm80xx_hwi.c @@ -2382,6 +2382,8 @@ mpi_sata_completion(struct pm8001_hba_info *pm8001_ha, void *piomb) pm8001_printk("task 0x%p done with io_status 0x%x" " resp 0x%x stat 0x%x but aborted by upper layer!\n", t, status, ts->resp, ts->stat)); + if (t->slow_task) + complete(&t->slow_task->completion); pm8001_ccb_task_free(pm8001_ha, t, ccb, tag); } else { spin_unlock_irqrestore(&t->task_state_lock, flags); -- 2.20.1