Received: by 2002:a17:90a:9103:0:0:0:0 with SMTP id k3csp11787022pjo; Thu, 2 Jan 2020 14:16:24 -0800 (PST) X-Google-Smtp-Source: APXvYqwzMoQ1tQ9NuuEASnn53gGqVAIJv8CP7q1m8Qm84qcdoNum41nkQ2Tmt5FPKfbWUNS2qsAC X-Received: by 2002:aca:190b:: with SMTP id l11mr3221882oii.65.1578003383926; Thu, 02 Jan 2020 14:16:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578003383; cv=none; d=google.com; s=arc-20160816; b=e1Uo1/R/0oYVCgziGBCknzqcBDEY2kwNJr13GHbztjgAUCL75qKM8RpUDqjPndP06e 70+oDftRzlFLgjguaMHwjRcdx+lUBX217GQqW/3VjI27iGTaAsDrnGixlVYyT6+ZySkh 4dpyf4UnMnFAvb5XhpNKlwjh/i+qdZRrRRrphjgr26reQk3EqTLwOgE6bkveuPMQMXbM qfgBhNRbONjgsLoDKJ3av/js4jlkZ46k2/q5C7msdCEYffpwb/8LE3bPWgEGe5b7BS+k Dc5gYzz3qqiupZRLrnrjjO8LM9N7pb3F6DAt8tDNYRwBq5xW2IQo3gP5qeoQO8uoX2+6 yVXw== 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=N0nP1t6oRzZvNFhhhafHqbfWwWfBtDYDC6t9zYspRtc=; b=v/+ecCMMcgSjXBFsnVdEPTkFYkDhiq588zRN+Pe+E5SsoI5ZnneHKd/bCNxiK5Yai4 BotQXlXE/j7UIuZlQ4qyISC7KOdsGo2kMB0PjHwHFNUDiJAbmkDCpK3N/HLHwNmwnrme A8pLDRUCS0J/o9891dFl0tPoc6gqAjh10kefIo2XbdvNM7ll/9nvV312+3F+9yYWq4bu 0gUE2GQrup6MW26pLrS6wfN7UUzpCViTKbDG2BdN52b4AnGugOwo8eg+KrtN0gAGjimP Dp4PVFNHU/XTBxbhD+3QRH6EdFCjUAFCr1y3yyZbPW5y92/h2bcQDgEIt73BGvt+tMuR zXhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aOLRPBbx; 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 e22si28303140oiy.124.2020.01.02.14.16.11; Thu, 02 Jan 2020 14:16:23 -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=aOLRPBbx; 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 S1727507AbgABWPG (ORCPT + 99 others); Thu, 2 Jan 2020 17:15:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:55700 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727186AbgABWPE (ORCPT ); Thu, 2 Jan 2020 17:15:04 -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 7B014227BF; Thu, 2 Jan 2020 22:15:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003303; bh=OwbwjT2Ud/jsTN4m+FbiOjgt6LUW6jBjktDQOmeX3y0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aOLRPBbx/5khxElkogdZIRBfpwfufgpXHr2W+1JHtx8wTN7RI5rTICyqGv/uEyXYd L/TPym2jAvd+6S6K0pxcsJM5g5MWgMczA+R6Na/yuOrIu6MjHF6Tb/aV2f1i1sQVPB pfGDqyiPgXuComDGMf4Gatw8Uf18iuDXc2Ooo2cU= 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 5.4 087/191] scsi: pm80xx: Fix for SATA device discovery Date: Thu, 2 Jan 2020 23:06:09 +0100 Message-Id: <20200102215839.284842244@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102215829.911231638@linuxfoundation.org> References: <20200102215829.911231638@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 73261902d75d..161bf4760eac 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