Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4727110pxu; Mon, 21 Dec 2020 22:11:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6Jr3JK7IcMc0cc3SmGcMJAvOr2++02B22DdKtdpjRnkG2pa1YK+ZJk3Q/PHcDdZp9K3Fa X-Received: by 2002:a05:6402:94c:: with SMTP id h12mr19045009edz.268.1608617475042; Mon, 21 Dec 2020 22:11:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608617475; cv=none; d=google.com; s=arc-20160816; b=GV1mQQIp4Zxmh9dpg3fMu4LtxINAz3nH2ZwFQXUXeRscbOrwYjlyf1XtCPVDajPEDs SM9/bACifLSfptlLJ+1N+Z7KYFzgsLUNW6Ioa2a0meVzQVNHtI2KcIMuoT2N8+5qgYbm 3ByaO1twU2SKtW4PwGkekJLw3/KcaeLjXLx0rOJAf8IyM0AF75DAKNUZuBYJpuzX7poQ M81VRXv9IDulD9kCH2vxSTKFH8EadC+bpDqAbrPu0qDukHgzvEVGaDJQS6KBYIgJ4fsa yyTcE5u3fimAkDfjkGX/FfCZqp7p1bm7uheaXfADiRfbxDl6eEM99/3tdIWqdZeyxIup x2dw== 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=ISsgMmBDhJwYXHoXtyGmWqaFjFM88UAX0xMCPWSA5sI=; b=nwsrBIId9EzKXOYdi6ztsxb81XcnRUtgzDzSViyhMMUDa5LcgAUCo/myVpPY6ZAldV zKWiW//Dz9Q0Qv6EcTxQIb0tdfiBcTadbOx7ZD4TTYKctDUKDyjIbD0U8mkL6J5VP4Vp +qEm2ZcpvX/M5Ks03j6oVIvXcQKtZF25/pEQJOKl9OPYlSYG9BT1Ub6Y86yadO0hnB7S 5bvL4wxDvyeDfG0qu89gAmZQcS16lq5klr2ty9TIqgggQlHd3PJbGRwnYgm60VFSZi9z rop92IRAak7j1e7H7h+lkcGvTWK1hOJ6vz1Fv55e8ccXc2bCZVRSS9HfHL+pg9zvxVJ7 eykg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=j1HwzDMr; 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 d4si9852950ejb.594.2020.12.21.22.10.52; Mon, 21 Dec 2020 22:11:15 -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=j1HwzDMr; 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 S1725912AbgLVGJX (ORCPT + 99 others); Tue, 22 Dec 2020 01:09:23 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:55959 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725300AbgLVGJX (ORCPT ); Tue, 22 Dec 2020 01:09:23 -0500 X-UUID: 1c6826d501c44b03a616272cd97e1036-20201222 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=ISsgMmBDhJwYXHoXtyGmWqaFjFM88UAX0xMCPWSA5sI=; b=j1HwzDMrTOAyCgCcI2HKg9MINWdNdJEqJXyVLi5kBE/vN+MGiDA+IenTawSYrFsCFGN/c/9bPzYugRcFI85HBneyEhYVSBSFHNzI4u3x8LL5IJq84dOGDd/OIT3EyBGJ3QDpDZctVXeOvdPmWu9QdC4KKN2x2OMnWfRZGLMQTgE=; X-UUID: 1c6826d501c44b03a616272cd97e1036-20201222 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.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 112392751; Tue, 22 Dec 2020 14:08:36 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 22 Dec 2020 14:08:25 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 22 Dec 2020 14:08:25 +0800 Message-ID: <1608617307.14045.3.camel@mtkswgap22> Subject: Re: [PATCH v5 1/7] scsi: ufs: Add "wb_on" sysfs node to control WB on/off From: Stanley Chu To: Bean Huo CC: , , , , , , , , , , Date: Tue, 22 Dec 2020 14:08:27 +0800 In-Reply-To: <20201215230519.15158-2-huobean@gmail.com> References: <20201215230519.15158-1-huobean@gmail.com> <20201215230519.15158-2-huobean@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: ED24C92C2695BF6C31C609C8DFD1D65D089DA42802291C02003BC14C236BB56A2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQmVhbiwNCg0KT24gV2VkLCAyMDIwLTEyLTE2IGF0IDAwOjA1ICswMTAwLCBCZWFuIEh1byB3 cm90ZToNCj4gRnJvbTogQmVhbiBIdW8gPGJl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