Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3894767ybz; Mon, 4 May 2020 11:40:52 -0700 (PDT) X-Google-Smtp-Source: APiQypLmc3+/XqO9N7y4V3dgycdvmffquLO1AhPGDhvWKL8b8WVPcN6pdcyBUfTF8VIzuFWVPiAK X-Received: by 2002:a17:906:770b:: with SMTP id q11mr15958073ejm.224.1588617651892; Mon, 04 May 2020 11:40:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588617651; cv=none; d=google.com; s=arc-20160816; b=PZXJn4ES2pfE6VGPkJJx/kRfYNhJi9Wy8g5LU9dlB+lsG5UXxNoHAyYq2P0oSvEuun lq6wq441OG5AAAbRcxcLSG5lpAFvfdSXXvkZZ3hgmW4V+e8FUXu6gUqWMBYdHGxncW9h NhNUI0qS584y7o9jHA7o/Q21SRhB9II7dTkSXBxPUJMaqzL67v10+RaoR0r7T/JOd//6 RgxCKd/r9EilQpMnQ1W71V8GpeuiLHKLS/DNb8W/XqhrLo59flrVcYnAC1vv4DjgGoDU gZfDv3R5V3CgOxfhTlGyIFY72WoLfkcVOhInjc/3KsQiQz+m407M0pe/sc086Ea0/9fI fa3w== 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=LkDTTU5vitAXtQ17b+YTzyueCYv6Vy7Wfw0Qkwja9cQ=; b=DvPpvYkA2IgdRaY/5Eg4c3TU6o25R4UB3rtKT1reHjVb6CDT8Y3rniSYLucgvHwI3G 9t1zPps5t4iczoyOXMSkY3cTS8X/Xk43HotWe5rFeD4efVbln5NL50XHUYb0A5/jSxcN rhcrwYP0qV3Wc7LR/lONSBQ7n392tY+GCUxrPQ2VXDgbO8Dfh3QoCc71sj666IjuMwDf 24XlV9FKTNVcL8BtZG4OOngWtofaDYuyfvY3LaA78WEUIQGjsDkAWrHHFunEBcuPUswl gkW1oE+UsrYL1g30j3CEjGPa8lIRgRlYbgm+BGQeTc7a5POabO12DlKNDxKdhwZnvtNc F7jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="cLhv8/f7"; 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 cy17si7169789edb.84.2020.05.04.11.40.28; Mon, 04 May 2020 11:40:51 -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="cLhv8/f7"; 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 S1729018AbgEDOeD (ORCPT + 99 others); Mon, 4 May 2020 10:34:03 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:37502 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728187AbgEDOeC (ORCPT ); Mon, 4 May 2020 10:34:02 -0400 X-UUID: 1f374234f8294029a697e602bd3e7e07-20200504 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=LkDTTU5vitAXtQ17b+YTzyueCYv6Vy7Wfw0Qkwja9cQ=; b=cLhv8/f7/SkFxZRm614AfJi4VBv1yee51l0ZCDslm/zP9biTJWtGwuLcw2zSlAnJ04r/R5IE62FSVlsWQqHfQkQuSjdlJ/TSyR4Ni8EzsQsXnmZ1otHkEJWjMHMqJmD1C7WjXMzLWko7pBt12R4nznZGIJm0oO9Fhssmila7IiU=; X-UUID: 1f374234f8294029a697e602bd3e7e07-20200504 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 641731216; Mon, 04 May 2020 22:33:58 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 4 May 2020 22:33:54 +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, 4 May 2020 22:33:54 +0800 Message-ID: <1588602837.3197.32.camel@mtkswgap22> Subject: RE: [PATCH v5 1/8] scsi: ufs: enable WriteBooster on some pre-3.1 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" , "asutoshd@codeaurora.org" , "bvanassche@acm.org" , "andy.teng@mediatek.com" , "chun-hung.wu@mediatek.com" , "kuohong.wang@mediatek.com" , "linux-kernel@vger.kernel.org" , "cang@codeaurora.org" , "linux-mediatek@lists.infradead.org" , "peter.wang@mediatek.com" , "matthias.bgg@gmail.com" , "linux-arm-kernel@lists.infradead.org" , "beanhuo@micron.com" Date: Mon, 4 May 2020 22:33:57 +0800 In-Reply-To: References: <20200503113415.21034-1-stanley.chu@mediatek.com> <20200503113415.21034-2-stanley.chu@mediatek.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: bul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