Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp271149ybg; Mon, 1 Jun 2020 00:30:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuaPDnEvoNvIEnShKBjkm7Cqp30W9ykmJRjE4VMz+8eThF3k5PzeQ7GMGqXF/L6qp4Fiqt X-Received: by 2002:a17:907:7206:: with SMTP id dr6mr13577908ejc.335.1590996613061; Mon, 01 Jun 2020 00:30:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590996613; cv=none; d=google.com; s=arc-20160816; b=Peq11M8vo2CKXqAQY2V/OIxUnzQmTwKenJQMAR66Mtvwkim0nnh3FCE4JUEz+M2Np7 +Jxrr5ftZOXCePoY5uNUZXRcQpH3lVf9udijtCifnyjb1oWWVGZuelkG3d9p5IeIoUJY CTxmZbKn29ycD2QK5DtyeXi2qKynsem7hX9aqyJ7iqgJ8dN0yS6i+rxrp/yaZhaL8XKF OV3oMEnDTYeikl9abEzRxbnLJkXa9wn4+z3Zj9kwJNr4RMYm/cKt99rbSmzAxylt+SkT kEJcuFyfYF6IqNxfgvIFkT2nagkcqU+F77P3wCyrnXyDVKPeq2k3Tw6qAJVNUZ0gldv4 r7rg== 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=NTVuyzYbTFO6DFfp2wMnvMERcsSISRnV9jG7gsuPvng=; b=gUZXqSQyK+goD8RR/o2UZROSH+0n78Ps77uWQHXaiRx6lCYSHfuYE9P3CtCMp/uTxV 8nAYsWMl+SLKc0TOsK3rTHpibNZ9IiChldxEDmztA4C8B/YgQgabDKSCVAG4FJLPTYBx 70ExO31qgGcpLSEdz2LX3FBGqkO/+S3a8ojQTCAB2n7iUJJYOOy90fH3MqpkQJJiSvPT kxpFpz5+ntJ0IRImzZew/iM+D8o3nh/+lj+XgHMqQcD0f8ue/NDwUJejQcV7lnEG9aX/ bIjHUorxLhJrn9BgHw91Ss0At8Ewayh+oHAWBE8oLDQIXjbxqQEkSWIuuDh7GanjZBZ8 7RMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=p2waj1F1; 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 qh14si1883721ejb.259.2020.06.01.00.29.49; Mon, 01 Jun 2020 00:30:13 -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=p2waj1F1; 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 S1728064AbgFAHZd (ORCPT + 99 others); Mon, 1 Jun 2020 03:25:33 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:27847 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725283AbgFAHZd (ORCPT ); Mon, 1 Jun 2020 03:25:33 -0400 X-UUID: e3a4533e8cda44bb913745a8fdd50f8c-20200601 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=NTVuyzYbTFO6DFfp2wMnvMERcsSISRnV9jG7gsuPvng=; b=p2waj1F149vQe/RvJ1Fnw9HP3qt2JNm0TZDTq1x+XyMp8D+Abtes359bvUrJzjqJldrMytdlrWw1sEKE7bPJeLQFCDHZZTPNCRtTFZMzCkXQNwpZ+K2TlwusuaeolRpfgxDtXnPvDAwZvSXxnPSS6W0TwDptFstNmI09gLTDy6s=; X-UUID: e3a4533e8cda44bb913745a8fdd50f8c-20200601 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 200174250; Mon, 01 Jun 2020 15:25:28 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 1 Jun 2020 15:25:25 +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; Mon, 1 Jun 2020 15:25:24 +0800 Message-ID: <1590996325.25636.30.camel@mtkswgap22> Subject: RE: [PATCH v1 1/2] scsi: ufs: Support WriteBooster on Samsung UFS devices From: Stanley Chu To: Avri Altman CC: "linux-scsi@vger.kernel.org" , "martin.petersen@oracle.com" , "alim.akhtar@samsung.com" , "jejb@linux.ibm.com" , "beanhuo@micron.com" , "asutoshd@codeaurora.org" , "cang@codeaurora.org" , "matthias.bgg@gmail.com" , "bvanassche@acm.org" , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "kuohong.wang@mediatek.com" , "peter.wang@mediatek.com" , "chun-hung.wu@mediatek.com" , "andy.teng@mediatek.com" , "cc.chou@mediatek.com" , "chaotian.jing@mediatek.com" Date: Mon, 1 Jun 2020 15:25:25 +0800 In-Reply-To: References: <20200530151337.6182-1-stanley.chu@mediatek.com> <20200530151337.6182-2-stanley.chu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: CA49A87DC9E16E8F08365655C751610B75A6F21121B1FD7877FDA8D5650F85E22000:8 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 SGkgQXZyaSwNCg0KT24gU2F0LCAyMDIwLTA1LTMwIGF0IDIwOjM3ICswMDAwLCBBdnJpIEFsdG1h biB3cm90ZToNCj4gPiBAQCAtMjgwMSwxMSArMjgwMSwxNyBAQCBpbnQgdWZzaGNkX3F1ZXJ5X2Zs YWcoc3RydWN0IHVmc19oYmEgKmhiYSwgZW51bQ0KPiA+IHF1ZXJ5X29wY29kZSBvcGNvZGUsDQo+ ID4gIHsNCj4gPiAgICAgICAgIHN0cnVjdCB1ZnNfcXVlcnlfcmVxICpyZXF1ZXN0ID0gTlVMTDsN Cj4gPiAgICAgICAgIHN0cnVjdCB1ZnNfcXVlcnlfcmVzICpyZXNwb25zZSA9IE5VTEw7DQo+ID4g LSAgICAgICBpbnQgZXJyLCBzZWxlY3RvciA9IDA7DQo+ID4gKyAgICAgICBpbnQgZXJyOw0KPiA+ ICAgICAgICAgaW50IHRpbWVvdXQgPSBRVUVSWV9SRVFfVElNRU9VVDsNCj4gPiArICAgICAgIHU4 IHNlbGVjdG9yID0gMDsNCj4gPiANCj4gPiAgICAgICAgIEJVR19PTighaGJhKTsNCj4gPiANCj4g PiArICAgICAgIGlmIChoYmEtPmRldl9xdWlya3MgJiBVRlNfREVWSUNFX1FVSVJLX1dCX1NQRUNJ QUxfU0VMRUNUT1IpIHsNCj4gPiArICAgICAgICAgICAgICAgaWYgKHVmc2hjZF9pc193Yl9mbGFn cyhpZG4pKQ0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIHNlbGVjdG9yID0gMTsNCj4gPiAr ICAgICAgIH0NCj4gPiArDQo+IFdoeSBub3QgbWFrZSB0aGUgY2FsbGVyIHNldCB0aGUgYXBwbGlj YWJsZSBzZWx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