Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1835179ybb; Thu, 26 Mar 2020 08:11:06 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt7uiXOv1svwemYSa4NYJRjU/jiG/iF/CAk4p80EkABd0c/dkfOQQNLzCl3z3g37QzK/rma X-Received: by 2002:a9d:356:: with SMTP id 80mr6350232otv.15.1585235466093; Thu, 26 Mar 2020 08:11:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585235466; cv=none; d=google.com; s=arc-20160816; b=zNx9Oi/44Y+H1nclekgt6G0Z/WfHMkeMI7iGTPdsS+jeeqyJa2JSPkM4X3Mui6tJAp MjgxWvD8zPgQQ7Ww6sYkkbD9HxzG+1YWYn4fJdLIoXWRsEQjJrWowJIIUisB1MRmxVnj 0v5tyVxLH6IGxjzbl6ITMrA9WSC9ZBoO/W4c35jun8jLWiLnY3TPPsLqCyo6kgdUsm8e bzb4WvLOo5BJPrzTF/mHpDgounCkPpKT+YVtLibj3oUGN506pzcsghBkaagZ3PeXp+if YrjatAyjaEaaw0g+ARZCxB1YpCwQc38ZYuAOxgYX5uKdqE4KSchKopEzevWFaaYT9GKS 4NcQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yQugDcuRyb957RsLnPG3IKLpweXB8rZN0SNQlnD0C1s=; b=R2lv67Ohcvs+kHKmqcmzgrVH8r4y+a6qt+u7UJB3NWyylSfObG4z2oZWBBAmRx6uKn IhLgVzmEH53Y40SwCwOizm6PSWz9nAOtcopqShCzhFT3bLcmHdn1hLZ1JjRUzVsP2tkJ JYrtAjqBmBtxdxXPNoNE15BGSZToP4oAN2N65jD4ZncHVsGiDmcRxHSOEi2eavYZ5UGw iN1iSmatiS9QWAKIcBOCIjdtHIvf+d32wLQU/GjtfEy/3vYZJsEldbQDyBVF/tVeD1i6 ITefcJzgSWgkMFGurB11Ax5YfirBOhhgHwM08Kvo1u4cjW9lQQtVnmJ0ou7VSpSl1kOF ui9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=smdJJXAy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u67si774034oig.131.2020.03.26.08.10.40; Thu, 26 Mar 2020 08:11:06 -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; dkim=pass header.i=@mediatek.com header.s=dk header.b=smdJJXAy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727943AbgCZPH7 (ORCPT + 99 others); Thu, 26 Mar 2020 11:07:59 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:51191 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726401AbgCZPH5 (ORCPT ); Thu, 26 Mar 2020 11:07:57 -0400 X-UUID: 3f24429633f84f74b4de37103c927553-20200326 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=yQugDcuRyb957RsLnPG3IKLpweXB8rZN0SNQlnD0C1s=; b=smdJJXAy/w6mJDa9/kUHZJKAtzyfbBB4WcPniaADCleOLrHoLXqif3xBJU5NNCnqepxM0Sqya/uvSMS15eD1sSIkBI4IFRnMZSCJiQYJq7mdyPcAjN4HHZLIDi3i+tUBmTzRLYJyFMWpX3nKdbMe0Ujm7OM6yElTUKHH+NNClBE=; X-UUID: 3f24429633f84f74b4de37103c927553-20200326 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 100789054; Thu, 26 Mar 2020 23:07:51 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 26 Mar 2020 23:07:48 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 26 Mar 2020 23:07:48 +0800 From: Stanley Chu To: , , , , CC: , , , , , , , , , , , , Stanley Chu Subject: [PATCH v2 2/2] scsi: ufs-mediatek: add error recovery for suspend and resume Date: Thu, 26 Mar 2020 23:07:47 +0800 Message-ID: <20200326150747.11426-3-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200326150747.11426-1-stanley.chu@mediatek.com> References: <20200326150747.11426-1-stanley.chu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T25jZSBmYWlsIGhhcHBlbnMgZHVyaW5nIHN1c3BlbmQgYW5kIHJlc3VtZSBmbG93IGlmIHRoZSBk ZXNpcmVkIGxvdw0KcG93ZXIgbGluayBzdGF0ZSBpcyBIOCwgbGluayByZWNvdmVyeSBpcyByZXF1 aXJlZCBmb3IgTWVkaWFUZWsgVUZTDQpjb250cm9sbGVyLg0KDQpGb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