Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp140542ybm; Thu, 28 May 2020 18:28:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygaEtTjVUf5PLJ6ICdGnsmofbZHPpz0D/nVJLEBIjTZOpXO49VBZkwLEozj0Jqetmm3Er2 X-Received: by 2002:a17:906:3604:: with SMTP id q4mr5716942ejb.69.1590715711390; Thu, 28 May 2020 18:28:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590715711; cv=none; d=google.com; s=arc-20160816; b=PbceyryiO7FPRkfbeys5rdAD6FN2jo7nd406cHNLvT9MYR27KmVCNIAJlwXYA9KTKF Ic5OCivSfL+Q1x+2cxuUWm0IC8I6rbFPgBjv2lAXlkLtQJUJ9f94xNMU1R6bQ8N0Sd7w uB3Ci1y/Eklp2ggsIIRyEsbbDZUg2wXxHtp2MKXU+g/ySp99z1Bm+pttKLBLIaSuUsRn Tfa/vvEqgvQ1QQDvTzFjU+M5KrYZ3yH/srrFmX6HfXFWEb9Uxb+9hAKt8o8ItWtJ2Zzu IAQO3WBa0Jyi+wqJqmmHCYr2EacYjvHE2xEm3WfG4PzqmLxdZXbvJ9K6GBD8D8Hs4M71 kgXA== 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=bHOpM9r9nCjnzgdi4MnG6AcRwPJ6scRhJBB3SHMNZbk=; b=ANTPuZwdOFTIwoKphuLrLvm8kqRl1QP60FRt1R5fx+jm3yfUvhYe00IKpvbSjf1ihb 5tmnPX8DrM3ncKVGaohYNUbROQwBNU71Zdl5gMmow+919AEvWRhWryT/hwFt1MxPaO8q oGWVGaGGsozM7Dh7gGo7R1tME5gtb500I/0bbfdAmTtWrDDGZgVhCrHY4vxKqsTvbv3o Wy3Ox4E9n7B16EMMcuDcfb8nv8cg8Z9TQEfRjXxGD3/nMFf0/vyCI4cNJEBfAfnmKvh+ NJtfYE1wcerwk+AY2kP9Lqf8rJAhMuhUg1zNpDj7qJD3wC43d/6u7nRAh/xAo/xgJbKX c4FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=HCf7urDS; 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 f8si4646284edy.149.2020.05.28.18.28.08; Thu, 28 May 2020 18:28:31 -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=HCf7urDS; 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 S2437798AbgE2B0Q (ORCPT + 99 others); Thu, 28 May 2020 21:26:16 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:40574 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2437523AbgE2B0P (ORCPT ); Thu, 28 May 2020 21:26:15 -0400 X-UUID: ce1b8694b92944808be2ed25aa85d1b1-20200529 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=bHOpM9r9nCjnzgdi4MnG6AcRwPJ6scRhJBB3SHMNZbk=; b=HCf7urDScuktUtiw0olRMNfCi8F/RiHStc5FtvylM98rmBDl6+7epsCnMIqZGQWYY8umUVPsW5nRCE9r+m3wSNiMrcE9a6XZirX8yn8K/05tNP0kw6/uFyg/RjpBhhYfd+EgfCzuKw/0aT6EyAikwRPJ0BHisDxR82WDq2+qZNs=; X-UUID: ce1b8694b92944808be2ed25aa85d1b1-20200529 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 101334204; Fri, 29 May 2020 09:26:05 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 29 May 2020 09:25:58 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 29 May 2020 09:26:03 +0800 Message-ID: <1590715563.25636.4.camel@mtkswgap22> Subject: Re: [PATCH v2 3/3] scsi: ufs: cleanup ufs initialization path From: Stanley Chu To: Bean Huo CC: , , , , , , , , , , Date: Fri, 29 May 2020 09:26:03 +0800 In-Reply-To: <20200528115616.9949-4-huobean@gmail.com> References: <20200528115616.9949-1-huobean@gmail.com> <20200528115616.9949-4-huobean@gmail.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 SGkgQmVhbiwNCg0KT24gVGh1LCAyMDIwLTA1LTI4IGF0IDEzOjU2ICswMjAwLCBCZWFuIEh1byB3 cm90ZToNCj4gRnJvbTogQmVhbiBIdW8gPGJlYW5odW9AbWljcm9uLmNvbT4NCj4gDQo+IEF0IFVG UyBpbml0aWFsaXphdGlvbiBzdGFnZSwgdG8gZ2V0IHRo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