Received: by 2002:a17:90a:c08a:0:0:0:0 with SMTP id o10csp4091016pjs; Mon, 9 Dec 2019 00:31:19 -0800 (PST) X-Google-Smtp-Source: APXvYqweW9EOKPo1oEO7daUu4jXJjeR3yvY+owTUOOhRVUxP52MBn1BHB9sfPhXfKiB2Z3GskXew X-Received: by 2002:a9d:39b5:: with SMTP id y50mr20727811otb.162.1575880279220; Mon, 09 Dec 2019 00:31:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575880279; cv=none; d=google.com; s=arc-20160816; b=Lr02Yo66qAPZxTvZ3EkAS5ebVgRgEOP7frvXgwsX6RNi8wpd2ulvVuPdS7AaSqPOGf r55SrhERgsaFDnyGY7vHpNIKj2mG/NboWzKcAfuxRI7heUzYkEAYcVWdVLcMdnKA/KuP LRRdhO1bB9GYpIEc6tk5GB6eKa5XUPe+DcwIVHbswhzogJP/ssCpBePt4pZchAH0Bbls CK47xG2a+dI6GWTPGwmOBOyxF1tct17y/ioiypErrJflJl28tCS8gtGrtRVcFJ5sRj5u JiYQYQBZIJWWXLe8ld9d7n5iw55omTvz3mK8+Gn/ZpMeE1etz0kYLn2WYCoblAkWUdrC 2MWw== 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=FsOPpGNcvyN3hqCpKWKad5Cxcn0GwUWSQI3FseIG2Rg=; b=xKDTym66A9YN4u/LDHZMf8WnnXJgy/aklISx3AbwgU3tmvERcIZsiI4mV4R/MWvJhg aMrNTtCOzZNFPrN4EkNBylUNgd0duMuffG0HbBe8g5uLosfNlkiNVAG9eUWeBuW6vlBa IAujB7e9lYV70JY+urQn65ZeV3ris6/wsnQqoPN/pxbQDa8onE9U29C6YXU2eIGj/XDq Gs5sXZY3wgp0rIZT7lyCosslt6f5nDSz/SuhEVv4o03NM/kwbvUVjNtJyZuVudnsiLvR FvKCNVPEF08cQudx8O5fwukuFKVfTN3VinVs5veC+aUP8dPwlJ7A9GVFK/sfYiXLh35e BKVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=JJ+JXQZh; 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 u12si7449324otq.51.2019.12.09.00.31.07; Mon, 09 Dec 2019 00:31:19 -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=@mediatek.com header.s=dk header.b=JJ+JXQZh; 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 S1727200AbfLII3Z (ORCPT + 99 others); Mon, 9 Dec 2019 03:29:25 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:26427 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727044AbfLII3Z (ORCPT ); Mon, 9 Dec 2019 03:29:25 -0500 X-UUID: ac42b9fa683e41efaf49f0db4b7012f4-20191209 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=FsOPpGNcvyN3hqCpKWKad5Cxcn0GwUWSQI3FseIG2Rg=; b=JJ+JXQZhVK2zvQGAqUuXloTBIHvnoLksjCyLgRgouq0Uif5uTIfVV9NwyVSv4mjvLPGrrEvtygZHfCvrr1o3b1B8KnuFICqOSMO/RJLPZqXx7tUrgKgKuBEdWKHGQx8oVTmvfvvmm+wS/IvlUtRWYGO3a3Skhut3fq80GaFBnAI=; X-UUID: ac42b9fa683e41efaf49f0db4b7012f4-20191209 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2035563348; Mon, 09 Dec 2019 16:29:17 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 9 Dec 2019 16:28:55 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 9 Dec 2019 16:29:01 +0800 From: Stanley Chu To: , , , , , , , CC: , , , , , , , , , Stanley Chu Subject: [PATCH v2 2/2] scsi: ufs-mediatek: add device reset implementation Date: Mon, 9 Dec 2019 16:29:14 +0800 Message-ID: <1575880154-6099-3-git-send-email-stanley.chu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1575880154-6099-1-git-send-email-stanley.chu@mediatek.com> References: <1575880154-6099-1-git-send-email-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 QWRkIGRldmljZSByZXNldCB2b3BzIGltcGxlbWVudGF0aW9uIGluIE1lZGlhVGVrIFVGUyBkcml2 ZXIuDQoNClNpZ25lZC1vZmYtYnk6IFN0YW5sZXkgQ2h1IDxzdGFubGV5LmNodUBtZWRpYXRlay5j b20+DQotLS0NCiBkcml2ZXJzL3Njc2kvdWZzL3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