Received: by 2002:a17:90a:9103:0:0:0:0 with SMTP id k3csp11810328pjo; Thu, 2 Jan 2020 14:40:33 -0800 (PST) X-Google-Smtp-Source: APXvYqxYrbO74nrDPMfcBd9v2DSlxeewAYCSH2QYdqTUMUtCdTvPcSvXTYM0aMDha6aOxWpqwAR0 X-Received: by 2002:a9d:6f07:: with SMTP id n7mr91655127otq.112.1578004833708; Thu, 02 Jan 2020 14:40:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578004833; cv=none; d=google.com; s=arc-20160816; b=XBHKxr/jcXYIS85KINYYEXad+hQExLu7Z5hVSVclIFGF9+/bAe8bgS/nSftx6D1QrR y5BIqjR+3Kgj9Dwpzr6eqPs8XlLLVxp4QlyUb+8uFy7ZNaySxDFoOI+yh7kSN6e0nAXg ZQMaczlzNTFPQq/RYmReEBO0y1Qp+DeN1jLljHeIlXaKC+0K2FJBv8zqxOMwfPt1UFeU lvwRtmphdjm3hQ7zLMjoPMkRXQuHp/O6tipKT9KSyL1hzvPWugdKQn6skpaxSzR1C7Q+ qgnaHP4EQp5AREQDauFr43PsSfi8J13UfeBLpJb6xGmgwZRoHA+UaDfeVWMhQsiFypHv sfCQ== 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=AmpQ1R8lsOwVd4IqDE7y+wCjTD8eHdGS/c2nsJdBzvQ=; b=CHNciOfE8p8xq87vNunUfUuoU3yJcMswfO0I6OShn26SDs4WRwkOzopdrlNypjWA0N oo12xfJQul8XVpq5TqmR3SOSb6x8YxNYQ76rNbTI/EAd230IJ2s/w+1zXXxYCE0S6iEU XGohwR5US8uN8Yq6uxlewzvZXmaU+kXQKR85iAU+rZ3jiI4gM+F+YSsFpY6L1CrfkwlF 2EWNr39YDvxw1aPZ1zVLsyNu2t3VEk7v0cMUBreGveNZ3NrSiECWRrVDZfaFTaWwxFRc 4LE8Xowqv7IvrnMv5+44Vvxzf9E22/VG4poZsMc1Z/KekhKpHhTlXSK9bXtQi+eRTLG9 xhQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XIBN+xIZ; 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 2si25787249ois.221.2020.01.02.14.40.21; Thu, 02 Jan 2020 14:40:33 -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=XIBN+xIZ; 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 S1731466AbgABWjY (ORCPT + 99 others); Thu, 2 Jan 2020 17:39:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:55444 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731459AbgABWjX (ORCPT ); Thu, 2 Jan 2020 17:39:23 -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 1E4C222525; Thu, 2 Jan 2020 22:39:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578004762; bh=+zrt2PfYOEuMTQxgmUYYfno+qL18+KOj8WYPPz4YJmk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XIBN+xIZbMPz2j0LceUv0Q30C3Y9iz9J/JEiTLiuMfwFilmwiBz2lTbbJoZb4c0mD 3kVR8urXYwN0puVRlFf9mx+pHfEgKfveqwStOQjQiwAe7tPnRh3OBAztUZkgxxITFQ GQNaKSFv1LFlUEeH3a0AcuBe2aBcdFkQdhd/iNlA= 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.4 117/137] scsi: pm80xx: Fix for SATA device discovery Date: Thu, 2 Jan 2020 23:08:10 +0100 Message-Id: <20200102220602.896797596@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102220546.618583146@linuxfoundation.org> References: <20200102220546.618583146@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 9edd61c063a1..df5f0bc29587 100644 --- a/drivers/scsi/pm8001/pm80xx_hwi.c +++ b/drivers/scsi/pm8001/pm80xx_hwi.c @@ -2368,6 +2368,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