Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp240652pxf; Wed, 10 Mar 2021 05:26:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxyVntQO7nC0bIZ8i9VM817+oRVn2FXx3zCaAsU57vxzlWCT/lRaO+eqgZ+UWLyUD4VtV3B X-Received: by 2002:aa7:c353:: with SMTP id j19mr3211630edr.263.1615382814049; Wed, 10 Mar 2021 05:26:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382814; cv=none; d=google.com; s=arc-20160816; b=Kib1OQ3EZIZXFKlVIinwlHFK60CtzPk68FvlOlcmNTQ5iSHstjnk6/pAOicwCbmMP/ FRTiQE8YshUowmqGKB8qc0KtWsZXetsyu9hbbEYa9kueYhkn+rBMiqmJ0tvCBJTEmOVL wsazkKI+Md5xjFrN2VTCIm0wp1d7U7eUGSPHxy4vOlGp3Nt4JH/ZD9ZJblQuPwnM+Hy7 OqgJTtLHe+CGp5649sirE8t/Z6kHjUj2hHmXQmudGOzmfqJeJHqr7PUUiE1VV1GNNdhY lWadg2HIVRKtoExUtGgh0hiaKL3uX894/zOVYsqSTZz7u+Spzaec6A7RYyXrCu+DEoTv bzUA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YfCd9JATNtEuk68zhtexuZrBYd76lbo+Llh57+LnJgg=; b=EdGsc37PDFunz1tXOnWuMVL/HeQW6y+XgfXqRA8htEJvrXi0tZUIraHy4NPSlNgHga jXEHluK6KEkFXC/REGASxQsE7QRRK4XtwvlAlarikILxxmhIcBidzd0Pf0jau9mmNrSL F728CGfP1XUofxTAHHGeRWjV/BSjUOR9seuEORNuUmij8k4NMYUKa95pQyKI1D5kjaz+ 02cuCTC253uyaeB3YFmrWE+oVBMpXamOoBXCUZ9vsf5idwQfZt3HUN/uUA9BIT38yd0v AkWWJGLw3w/xiMH2N3fNztW85LNzOfntDN0YHkxHjr2/kfOKDCM+afYhk0JFURlFLc8N nzqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Bds3GqqO; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si11462554edz.577.2021.03.10.05.26.28; Wed, 10 Mar 2021 05:26:54 -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=@linuxfoundation.org header.s=korg header.b=Bds3GqqO; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233266AbhCJNZQ (ORCPT + 99 others); Wed, 10 Mar 2021 08:25:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:45622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232822AbhCJNY1 (ORCPT ); Wed, 10 Mar 2021 08:24:27 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C304064FD7; Wed, 10 Mar 2021 13:24:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382667; bh=X3yK/idqPR+LbLgv7H7UiBV/a2UUCMlIYVM/V5fbTvA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bds3GqqOr06shFRNDif6Ic28OjhmQ5zM81Tn7sIvGsb5wYtFxvApOTkohpdWBOWVC Ktw2EMRPSud8rHbpaKMq752mWqu/vNzKYaEJdYFfGR0rfvQoe1KRUQRuFmyG18zRyV pDI6J53eO4RjukPbcIvanDFrA0wK087ybUi1vpGo= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Avri Altman , Stanley Chu , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.11 18/36] scsi: ufs-mediatek: Enable UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL Date: Wed, 10 Mar 2021 14:23:31 +0100 Message-Id: <20210310132321.086618126@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132320.510840709@linuxfoundation.org> References: <20210310132320.510840709@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Stanley Chu [ Upstream commit 46ec9592ffd679fa26142dcb9e5119aad7e60b55 ] Flush during hibern8 is sufficient on MediaTek platforms, thus enable UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL to skip enabling fWriteBoosterBufferFlush during WriteBooster initialization. Link: https://lore.kernel.org/r/20201222072928.32328-1-stanley.chu@mediatek.com Reviewed-by: Avri Altman Signed-off-by: Stanley Chu Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/ufs/ufs-mediatek.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/ufs/ufs-mediatek.c b/drivers/scsi/ufs/ufs-mediatek.c index 80618af7c872..c55202b92a43 100644 --- a/drivers/scsi/ufs/ufs-mediatek.c +++ b/drivers/scsi/ufs/ufs-mediatek.c @@ -661,6 +661,7 @@ static int ufs_mtk_init(struct ufs_hba *hba) /* Enable WriteBooster */ hba->caps |= UFSHCD_CAP_WB_EN; + hba->quirks |= UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL; hba->vps->wb_flush_threshold = UFS_WB_BUF_REMAIN_PERCENT(80); if (host->caps & UFS_MTK_CAP_DISABLE_AH8) -- 2.30.1