Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp270122ybl; Tue, 28 Jan 2020 23:40:19 -0800 (PST) X-Google-Smtp-Source: APXvYqwBAAZsGKVTJDl2iu87DEfmCtYHXQ+LoVccn/Sa7yOzl1MDM/piHIZw51h5yaSJ8gic+NN5 X-Received: by 2002:a9d:4d17:: with SMTP id n23mr17912033otf.85.1580283619332; Tue, 28 Jan 2020 23:40:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580283619; cv=none; d=google.com; s=arc-20160816; b=oiohqMjAViA5il7PaNRgpqD6MAfgGbKRY2jYt9cF/65BfRQavcbVOFDfDZweeI4QSr W7LRvTJghYWaGYeb5ZJv9I/tzLG+9bBe1nHtV0xNuQcD/xDy48ZBwYIMP5JZT2B27HMi SnKPuC2UsxFvXCKEvnnWZzRkz3QvL1L/3kkdzu+CCnpZE2fy8UEhYRjE0Cu5gGcl1vis Y+ZmXD7mUtjKB8+el4TPK2SZ2v5QBAA4L4oyGLQDd1zq7J0SmU1lzbKM00jP8rspnanD NeI4Y2QygUXPzuoscbYBHMVNaQsDJ0anTYexpq99aLVh7pnJfBc/Dvvu0QIk8rwU7A6R pPKw== 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=nmiAzrKgD/bdvC/COaVLhsa4iiJmtILGj/E1/yJKpsg=; b=ayroOcTOjPYPD3XeSCxt0DqXocUeZHazNZEeznlcyA+LyD5gDXBdNGEOKfc4i1v6IL sZXe/oUVmVJIws8vz+LGp6HinsbpkyWjRCCoi/3GOHlXUmd6fBQGDYcOev+EUx6qS2kI Un2gYJwICRKvjkNZVTWUVbFJnVbYkyVyPuuIUhHFklznniPxWVce92h1zKTxryARkkzd 7/SIsMdtE6IML/Pm+Jp6tvd3Q2i+9CI9Eb9xky8CnknengZW8ai+zC7MUGcFy4i/y8dC +eZrH7ebQsGZderT+xtn5htd+3+mrfF88hanWZIE4vXa0OEud9FLJA9KMau8+asnVRPX ENhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=OyQtnys1; 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 24si710204oip.248.2020.01.28.23.40.06; Tue, 28 Jan 2020 23:40: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=OyQtnys1; 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 S1726171AbgA2HjK (ORCPT + 99 others); Wed, 29 Jan 2020 02:39:10 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:40771 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726043AbgA2HjK (ORCPT ); Wed, 29 Jan 2020 02:39:10 -0500 X-UUID: 926de0fe0e604bbbbac8d22a474ad6c1-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=nmiAzrKgD/bdvC/COaVLhsa4iiJmtILGj/E1/yJKpsg=; b=OyQtnys1ls0nL2l41osZ0vV6T01F1Sz8CrfcLpdd+RT7xXXIOnB1shygncGD1yRKi8UXIfx1zgtcRI3eFv15WaVZzBd1mmv9/bgPj3aNDK+T4RAk4f4kskCESc2kJOs8VQ7CJjtvt1tBXgDZi6jTsMqJJIMWzg6dmsAYYcAZsNk=; X-UUID: 926de0fe0e604bbbbac8d22a474ad6c1-20200129 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1114575024; Wed, 29 Jan 2020 15:39:05 +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; Wed, 29 Jan 2020 15:38:25 +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 15:39:12 +0800 From: Stanley Chu To: , , , , , CC: , , , , , , , , , , , Stanley Chu Subject: [PATCH v3 1/4] scsi: ufs-mediatek: ensure UniPro is not powered down before linkup Date: Wed, 29 Jan 2020 15:38:59 +0800 Message-ID: <20200129073902.5786-2-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200129073902.5786-1-stanley.chu@mediatek.com> References: <20200129073902.5786-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 TWVkaWFUZWsgQ2hpcHNldHMgY2FuIGVudGVyIHByb3ByaWV0YXJ5IFVuaVBybyBsb3ctcG93ZXIg bW9kZSBkdXJpbmcNCnN1c3BlbmQgd2hpbGUgbGluayBpcyBpbiBoaWJlcm44IHN0YXRlLiBNYWtl IHN1cmUgbGVhdmluZyBsb3ctcG93ZXINCm1vZGUgYmVm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