Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2188294pxu; Sun, 6 Dec 2020 22:59:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLv5iiOGwBKXuUWwid0cbqvQecbeg+QcxBOxfVIYP5Dk86D8Sa0hM+15D6ly9pVcVioL5H X-Received: by 2002:a17:906:b306:: with SMTP id n6mr17228869ejz.473.1607324385615; Sun, 06 Dec 2020 22:59:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607324385; cv=none; d=google.com; s=arc-20160816; b=tRSu78JyhYubWdTRUR61/7MWCZOiBQ5ylSKd5Qnzu42tFcC7IMeHk1XN3Z+UTFMfIF fStW7/kM7hvm0EwJYs2XFqM+3JQRMo8Raq7qnimtBUCeLolcmM4ZRq7hdH1gHgGmJQWE FiLrLiwDcBaPbrvCNTZWKyimqvj+3xvh+HzoeGLIWpLxuuevNePoudzu4I2ELqSi3JfR onvB/aixdISEIT6EdVWQw5e39EAj6lq5BhXQUWCz4yDBitkgVubPfGcprGq0nmkdUIkq Mu/2rJoBl546D6mnj03r7AdG5VvVnhN0/q9RSCvZe+kw9r84YMLx8Ms0nNA8V0iL/dpU 5zqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=tCM7HDi7ctlJbsuslTTZAB1IgoEd9op1EUTLyOivdzg=; b=gp5L65vV0oKKm6baw3a1pPLNEfvUK7/lPSIHPMBfs23hL6CXeqg9wjNDRZQb7FeCgC 4vSPbrfBQOTiQP5NDcxEF2HWDcCvqY1IPwIHvq8ky3e7ozVRRdaXbT24XHPR7Rm6KOTr 6c8bb6qErB9EQmQX5Nqzn2j9sKKMzZ+sz+Ey4UXLhphIeHbOpzm1YQzwSC3CgJBJTAr3 /UD52XbRyUESu7nmX7zGJfA5WDg+VBV7dw+9BwnVVTZPbUkccXHqeojc356nBzittlE4 yPLS4+zdsaBguGk294kuh7yGlM6mkdBzFDgFbFe9GZipFxGZw3/DDgSI61aM7dQ3TNUZ rr2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=tBA2Z+Y0; 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 cw6si7468061edb.154.2020.12.06.22.59.14; Sun, 06 Dec 2020 22:59:45 -0800 (PST) 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=tBA2Z+Y0; 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 S1725951AbgLGGzq (ORCPT + 99 others); Mon, 7 Dec 2020 01:55:46 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:55245 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725850AbgLGGzq (ORCPT ); Mon, 7 Dec 2020 01:55:46 -0500 X-UUID: b8984c2ca2db482e8d14fa9d8a8b4769-20201207 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=tCM7HDi7ctlJbsuslTTZAB1IgoEd9op1EUTLyOivdzg=; b=tBA2Z+Y0R3cYgG6YJhddmo+TaZpz42VFjYbFxPbBHctFnbxNd6453Z3EpYIqx2yTBGxFw9A0cTffDcn+acBROlWMca91EHS/l+QqvMrTiJLqY76OOIT1eDLyHil/0wrihozAqcU3GzappS47CPnnGCS83LICP/NfinhVxaNU0yk=; X-UUID: b8984c2ca2db482e8d14fa9d8a8b4769-20201207 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1989961055; Mon, 07 Dec 2020 14:55:01 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 7 Dec 2020 14:54:59 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 7 Dec 2020 14:54:58 +0800 Message-ID: <1607324100.3580.10.camel@mtkswgap22> Subject: Re: [PATCH v2 1/3] scsi: ufs: Add "wb_on" sysfs node to control WB on/off From: Stanley Chu To: Bean Huo CC: , , , , , , , , , , Date: Mon, 7 Dec 2020 14:55:00 +0800 In-Reply-To: <20201206101335.3418-2-huobean@gmail.com> References: <20201206101335.3418-1-huobean@gmail.com> <20201206101335.3418-2-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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gU3VuLCAyMDIwLTEyLTA2IGF0IDExOjEzICswMTAwLCBCZWFuIEh1byB3cm90ZToNCj4gRnJv bTogQmVhbiBIdW8gPGJlYW5odW9AbWljcm9uLmNvbT4NCj4gDQo+IEN1cnJlbnRseSBVRlMgV3Jp dGVCb29zdGVyIGRyaXZlciB1c2VzIGNsb2NrI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