Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp155579ybt; Mon, 6 Jul 2020 06:23:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjXAg3q4bWyw+F57IMeh7D5QUqJrlPl5nrBQqqFpqvWjgbEG0XjQKM6gN4E2rfTOvQ/PIv X-Received: by 2002:aa7:d848:: with SMTP id f8mr46774456eds.329.1594041837161; Mon, 06 Jul 2020 06:23:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594041837; cv=none; d=google.com; s=arc-20160816; b=Kwl6ZGUZ+S8wyaw5uRi6K2uPMCW7kPwmk5vI6O9zfQcvGbeUsy9k8uhJn0rw3E66KJ THG8olInktjrRGeGJ7Dqb7F890/OBaEP4l4BQphGaGLka9CcvJiKgFO3xhdz+tuhFsgN d3gWlt4jpBd8Ot9/7Ismph1SnRI998r3GlaacPUIeSmUh2F3nUAlxcDaqMh+Gn2Ns15/ EwIg8ryFZxwdW3zoRWSHk5LV3p0Wer+ILJQ1k93/2ZhpLbKr79FVRWe3oQGavS72RZ8A tHBvmBV2svcfy5/NrAnSpJrv0mtp3HOo5o6CipBbTRZjWDNQQxePuJJQ9HWFtgzeNcvQ 8zFw== 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=hH72iy737LTFZ8Jp12sRADIb3rpiyBdOegJpRLwFXpA=; b=AGxN1bY0FGWl4i6a/yDsoq3Mh+TgoZVkX5tjmZMeAivnpWBY0svDLtR2W37yGn5x8h dUnjAOCPw+joHaMtsb1DDQSIz7MEafcIne0K/YhCkfOYqeXyjQGJFeMrH7TjaNyMPkl1 IBTGrSw7OaNF7x51KZ2Oo2D1dEFHMu/98rJdanSsSTWHA8OxLSx4CjrrQjbxBazuc054 Sr7c3AAmo9DyS6pZF+G8c+yNFHlacMwSL2T8JqkijRCO7jFvU89MmHy82qNzsTsuIk8+ 37kFFPhRIaWY+i902oIkV9hJeZkuSg8gYJpwxKfjTdh/DLBLSoP4N8PahzsclnP1tkhJ S/Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=qC7hcFS+; 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 k2si12675918eds.173.2020.07.06.06.23.34; Mon, 06 Jul 2020 06:23:57 -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=qC7hcFS+; 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 S1729197AbgGFNWZ (ORCPT + 99 others); Mon, 6 Jul 2020 09:22:25 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:13617 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729176AbgGFNWZ (ORCPT ); Mon, 6 Jul 2020 09:22:25 -0400 X-UUID: f28342167a0c4f81b76f5811ceb2ca9f-20200706 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=hH72iy737LTFZ8Jp12sRADIb3rpiyBdOegJpRLwFXpA=; b=qC7hcFS+yAxMi8qqonesIQDxXohAHIbTQQASwkOcxTUCVKY6qN6eU/Ad9hfyywxZoqCIOw5YmVgrgRdE9/69R4yvOjlRnUaAcNdFYKVHJ3iiz4LQJitkeUgDg7/st2ljWhn1Uz/az+OMqRd0f1SZ0d+krlrRSynQOOSLRLXac+E=; X-UUID: f28342167a0c4f81b76f5811ceb2ca9f-20200706 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 944152981; Mon, 06 Jul 2020 21:22:20 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 6 Jul 2020 21:22:15 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 6 Jul 2020 21:22:15 +0800 From: Stanley Chu To: , , , , , CC: , , , , , , , , , , , , , Stanley Chu Subject: [RFC PATCH v3] scsi: ufs: Quiesce all scsi devices before shutdown Date: Mon, 6 Jul 2020 21:22:18 +0800 Message-ID: <20200706132218.21171-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 c2ggZHVlIHRvIHVuY2xvY2tlZCByZWdpc3Rlcg0KYWNjZX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