Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp412619ybl; Wed, 29 Jan 2020 02:54:21 -0800 (PST) X-Google-Smtp-Source: APXvYqwBV/XSino3CtFL+RvZ2IezzBqHnkasSU0/WvB3fYZqmw7SEMaoZhmo9LhzRFlJ2qdbXoUQ X-Received: by 2002:a9d:170a:: with SMTP id i10mr19319341ota.284.1580295261590; Wed, 29 Jan 2020 02:54:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580295261; cv=none; d=google.com; s=arc-20160816; b=V5BD+POKmOodfW+fvfEfq87qUJP/oyEkkVQ9QnU4TL7Oua3PCQNhItQe9PEBpK40zu OHFbC0baFcO1SQDXSz06mjL67QAFLtGjiT+q/HVJAqNSKXZEtjHpvpW8JqM9++inHedC jnQQ1868jfmyyyWM3Tdr6pT3aBhfUiI9jN4oyCpMqd/fBRfAQviPY0uVjvIBtJhOwV42 fUeq0aLUeBnobC3nr76nFFkVrZws8rMuPtgDUCPGXNPflX0ivFVwDY9AtnJpTG/qgrQO zqazVK3VY67Ea3CyMfOCe+h82h+w7a2lCxb4xXPcxHMDeZATcSUdmhoUIoWmkfrd3tqC nYfg== 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=YOeqNnQON0pZMvJ2TpcgdJrhCqwz0qDgTvW6jd4cUGg=; b=ZJtGr0W93nViKAasIW7OsTjhPOoXF/mgAVpSGlVyeBt2wrQIlY9mE1fk+7aqT7/ttw jriBiilWP+Cew35OmjumSfsVwCpvN8yDynaxk0d33jQ9hIt3FyZ6gAiOqew8fABGGAv1 AqF/7PJ+BlcAYd9nCL2faMg5B/WShgBCbp5QZXiWV6NMSEp/WQY0I+6dvPehp/SXmEO3 W0/SEGqIcpUkELcqPj2XJC4gaek7GmbEuSb1ywnVBNmuxCv485tNdVlcotlTBUHIAPkm 1ILoegxVh3vECT6196TXh7YQ/3qkwp4j2FhnHb4J/wVZtWX4ymJnRZPL5D7HgFFAHl7Y pHag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=IrdZ5iDQ; 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 e26si854583otp.140.2020.01.29.02.54.09; Wed, 29 Jan 2020 02:54:21 -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=IrdZ5iDQ; 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 S1726743AbgA2KxJ (ORCPT + 99 others); Wed, 29 Jan 2020 05:53:09 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:27873 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726683AbgA2KxH (ORCPT ); Wed, 29 Jan 2020 05:53:07 -0500 X-UUID: f0e10c9328f744daa266bd6a74101238-20200129 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=YOeqNnQON0pZMvJ2TpcgdJrhCqwz0qDgTvW6jd4cUGg=; b=IrdZ5iDQeikJVk8a/7kLN/r3KvkibPQpsew7fsi1CCLv3mNOdjS5Q5a+eWdaacAnG9mNMt2aLi9XqAY4//N7eqmGJzcLt8PxVLCL3CbK5aQKpcl4ihaDTq54GqVXLUvnd8dy0JHRlsjdgZH5N2i2bS8E6Qk/r7gzXvd1/R7L/KU=; X-UUID: f0e10c9328f744daa266bd6a74101238-20200129 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1409447737; Wed, 29 Jan 2020 18:53:00 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 29 Jan 2020 18:52:03 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 29 Jan 2020 18:52:59 +0800 From: Stanley Chu To: , , , , , CC: , , , , , , , , , , , Stanley Chu Subject: [PATCH RESEND v3 2/4] scsi: ufs-mediatek: support linkoff state during suspend Date: Wed, 29 Jan 2020 18:52:49 +0800 Message-ID: <20200129105251.12466-3-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200129105251.12466-1-stanley.chu@mediatek.com> References: <20200129105251.12466-1-stanley.chu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: DC123E8965DA74E2D8BA28955FEE042764F383F49095A75C11AD3EBB4E6441692000:8 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 SWYgc3lzdGVtIHN1c3BlbmQgb3IgcnVudGltZSBzdXNwZW5kIG1vZGUgaXMgY29uZmlndXJlZCBh cw0KbGlua29mZiBzdGF0ZSwgcGh5IGNhbiBiZSBwb3dlcmVkIG9mZiBh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