Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1658272ybt; Sat, 11 Jul 2020 18:34:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWGAyRA8KTvnKrAQSqFeALT0glGoSO1ZM/Ap7v6AkiuvCcOIRlos1rCwrWtZW11XyZafg7 X-Received: by 2002:a50:fe18:: with SMTP id f24mr84820783edt.14.1594517687521; Sat, 11 Jul 2020 18:34:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594517687; cv=none; d=google.com; s=arc-20160816; b=KM7xk0JGYrj9WphwS0FVTp0iikyzmhMCoInBnUn9voKCRvLA/IRBQldnPZ6Tv1M8VG 2d4Ysu7+dY9nmo/nJpWR1aSKquxorqmMn4NX0nufs14Ud1ofNgzJ/tdQxn8/vtG84zhM DXTODnR+7ni47WWH6oK2g1JOAM2qLUS2wuww1sEvwdqf3R2T/R8LhAmfUYE/061rfGZr qz/71mPQVy1aBTeiwTEheQnuJrOEPxR+zwI86ik59+v8sXKs8vo2mBzJFqHL6KDeWUUN B67kA9xmh3cl7BsXdK+rxR/vahsumT2UCRJ1uant9yXEhqpkbZoUm5H05r4pbN2Rm3KV sfFA== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=IqgD/1yeFLs6o/vFQu2a3JKBQxZLmFNOwwCR3zm/zLc=; b=bCYuw2TJEOcAtCBFgLpGlJRxwOq8dWZHje743jqDi6f+TeJyVcO1LQqtJOCYtlJDWP clDNTaC+Zmmdnw+xR/mvM1D+W/3gAsWQZxokyzNM3M+haRKOK0NxK/OZnqfpt8fxfS/c NEKTPPL56Y8hYW9mEC+7K+hJgu+uaZUq7dDAhygWYRsSDDRsSPo3Q/T1TgM88sumIsWw LxYysLiKjDkI1UfPNSb/RB4YBHPDkXBj2dQCKh6Af5jNI3MuJrXSEj1eQwGGK5CYnaHb Sh0zbB5gy035Z49BCt64OuKYQb51jHFUlq2hog3Q1xFNV0PdzPKGFMxbZdPYIA1HkbK1 7mtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=CKyckvdY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id g6si7119373edl.330.2020.07.11.18.34.24; Sat, 11 Jul 2020 18:34:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=CKyckvdY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728140AbgGLBbQ (ORCPT + 99 others); Sat, 11 Jul 2020 21:31:16 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:17546 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726948AbgGLBbP (ORCPT ); Sat, 11 Jul 2020 21:31:15 -0400 X-UUID: 0d3889cf5fdb4d0fbdada934b5b2d504-20200712 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=IqgD/1yeFLs6o/vFQu2a3JKBQxZLmFNOwwCR3zm/zLc=; b=CKyckvdYdjnbffxVwD6Vmi1I9L+JZwUI177D0Ohb/xyvqsR7yZl39ov90Bzt6p20zZdWvNb7AR1oFzyeE39DI64EGuLQ08r4s3PwDzEMY7UpMnWDhIfXEC1WPF1R28zuQod2hiT0569K0abgJjSh0igrW5mhjsXxhlTzM5OD/EE=; X-UUID: 0d3889cf5fdb4d0fbdada934b5b2d504-20200712 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 222224388; Sun, 12 Jul 2020 09:31:09 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 12 Jul 2020 09:31:07 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 12 Jul 2020 09:31:07 +0800 Message-ID: <1594517468.10600.35.camel@mtkswgap22> Subject: Re: [RFC PATCH v3] scsi: ufs: Quiesce all scsi devices before shutdown From: Stanley Chu To: CC: , , , , , , , , , , , , , , , , , Date: Sun, 12 Jul 2020 09:31:08 +0800 In-Reply-To: <20200706132218.21171-1-stanley.chu@mediatek.com> References: <20200706132218.21171-1-stanley.chu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 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 SGkgQmFydCwgQXZyaSwNCg0KTWF5IEkga25vdyBpZiB5b3UgaGF2ZSBhbnkgc3VnZ2VzdGlvbiBm b3IgdGhpcyBSRkMgZml4Pw0KDQpWZXJ5IGFwcHJlY2lhdGVkIDogKQ0KDQpPbiBNb24sIDIwMjAt MDctMDYgYXQgMjE6MjIgKzA4MDAsIFN0YW5sZXkgQ2h1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