Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2203876ybh; Fri, 24 Jul 2020 07:04:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGNs1u7N2qeob3kdK8JlYXVRS8hHTLaF3HAq5lBua2QzxH6hwG0RCk5gQ+vt60yFHSRU6O X-Received: by 2002:a17:906:6442:: with SMTP id l2mr547546ejn.383.1595599451244; Fri, 24 Jul 2020 07:04:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595599451; cv=none; d=google.com; s=arc-20160816; b=bx6wfL2l5Ys5btzglPJ+37rqLU0aX8X5gWl7eTPA0lm+sUk0NFhCsFLI6cr9TYoHL0 FuJoR8gAzEGW1U4okweAFenUV2a4guN6N+s2uiW/weD3MC02qxQ1KhpOQvRTf69pdEF6 aZrjI1Gu44EIeffic/TqSy1zKQgwHLLrzj8LtCqjJ2RwkDiWadrMHWybYeh9mitFZ/GE ytcy95U2flraw2mEooX2LC/NEsWbiLkAs1hlyOTGL+ibCNUVOl2ec/pPsnQnarSPXIpC L/8E++HYF4MU9CbA5ANdL2Iv4y4NRe9WDqK6YURkKWPashvdEsCLJ1Va60NhbbBAb+PX /AVg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=IfOVClM/Lv4VLM52AY8HzEWSy/KLqQSwlIy6ABrgbPI=; b=g3Q4oUPVVyRyTkSkYI6C3iJmh8DQCn5XELc4jgbtIf0oyNDjYuQa68kONG1CTLdwRe BE1cIbo1P3wCMj6Gr3dDaAxcCJh6BN/LWKMCrD+5hqd8P25Q3ZR/0xK63JxOETfkGpUz OwGyegKB0kJjb2ny7IJMlx+6ftKRGTBoIJWrB3MXIA9ZHD8AtEn+zt/tlXloCVRLPma3 pdPs1Owq51fRqhXbztHDTrky3KSszG0mVuCDlb2psACF8cSXC/xSBxlvoT186aqDJefY khmJf5KTpyh7cR3dKocWFvoSBGZeLYcF+WvT318Isg1Kpt2kkRGcwQz0kStZPW7rovuI G/bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=pVnHDUPN; 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 t12si600590ejr.551.2020.07.24.07.03.48; Fri, 24 Jul 2020 07:04:11 -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=pVnHDUPN; 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 S1726576AbgGXOBy (ORCPT + 99 others); Fri, 24 Jul 2020 10:01:54 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:32824 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726366AbgGXOBy (ORCPT ); Fri, 24 Jul 2020 10:01:54 -0400 X-UUID: 582a10831a1945b5a306bfadc2b48976-20200724 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:Message-ID:Date:Subject:CC:To:From; bh=IfOVClM/Lv4VLM52AY8HzEWSy/KLqQSwlIy6ABrgbPI=; b=pVnHDUPNe2rI05GE1gssxsjxBFQc1J/M9qCklXmrCrgjFS8gDa+Zpufkg+qwjlWWWQRSxMJWQ3ivxE/1wVlKXL+56WPERUEf4KymBPszwRTrb+8a8wQnu8xiYl1+glQzo9Pduu3lHjH1wsy5c0jh+5hWcFfCpMshDohfIbX1IAU=; X-UUID: 582a10831a1945b5a306bfadc2b48976-20200724 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1436846409; Fri, 24 Jul 2020 22:01:49 +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; Fri, 24 Jul 2020 22:01:45 +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.1497.2 via Frontend Transport; Fri, 24 Jul 2020 22:01:45 +0800 From: Stanley Chu To: , , , , , CC: , , , , , , , , , , , , , Stanley Chu Subject: [PATCH v4] scsi: ufs: Quiesce all scsi devices before shutdown Date: Fri, 24 Jul 2020 22:01:40 +0800 Message-ID: <20200724140140.18186-1-stanley.chu@mediatek.com> X-Mailer: git-send-email 2.18.0 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 Q3VycmVudGx5IEkvTyByZXF1ZXN0IGNvdWxkIGJlIHN0aWxsIHN1Ym1pdHRlZCB0byBVRlMgZGV2 aWNlIHdoaWxlDQpVRlMgaXMgd29ya2luZyBvbiBzaHV0ZG93biBmbG93LiBUaGlzIG1heSBsZWFk IHRvIHJhY2luZyBhcyBiZWxvdw0Kc2NlbmFyaW9zIGFuZCBmaW5hbGx5IHN5c3RlbSBtYXkgY3Jh c2ggZHVlIHRvIHVuY2xvY2tlZCByZWdpc3Rlcg0KYWNjZXNzZXMuDQoNClRvIGZpeCB0aGl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