Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp243218pxf; Wed, 10 Mar 2021 05:30:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOA+E5pNuDCSWEbjzJidoRUTMDnyEM4nvQbr3rKaYaDpgXJZimJre85Cd7jPUd4M8/5v66 X-Received: by 2002:a05:6402:354d:: with SMTP id f13mr3317635edd.228.1615383039683; Wed, 10 Mar 2021 05:30:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615383039; cv=none; d=google.com; s=arc-20160816; b=RYGINaFkENwLJ5lf30jkSDcVZGVDRKzEC5L9OOdDYgSJUdZ+/5+MRhXdpi861vqBFm 0q1xHU4G3tkP4ahNDxkKxjid6dsQ9Nt+7CLv/xRUuYOYKTZHXhIYT4pPvBT1D22TUzDU J6Ue8lC9DCsLMDNF5nVu5dzr8Ggadpwws46Wpc4zbZUIWS/lWN9lmTvl70qcj/jTicnR LWhpuznj6nB58QZoFMo0Yc3fk75Fmr50eQfhwNRe86Qy5d3zdjx0ytxqHcrID8X4KHxM rgLNqSC948I+Ka62lwIJVYXmtH3oPkfkykMY2XeBFpX/QIQJZhDGiV3zRS5tfZcDF87z MoBg== 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=UHD6+PEWG8SAbBaXIokbCP7g2YmezjfKfa2LUU2aOkc=; b=us8RDYnywKQ1BcABVIaPhZBr//J87Vt5WR2dOj1DRW9+mAVnJ71uQQ2Pff+Hp0alCj ZWBULHsM3+IOs4Kxv2obRMI8Zfi//RCAGJ3ycN1Bq3xe5Ig470G9G7PiT39E/j0boUME DTlvG8rrMdMiletqg58YtbTOFsXUOwar/p0N6++xmKvxtQ3b4IhDBYAOPwhLe61CXMxr MOldKtm94hXGNBZWudiZ7irvhhIjnPTCFO0jwbEW+WtuGSJI3QLfdxQL3i2RYw+6AnD8 5AuSbXT/cwDq1P79cwHMmDqTxXN6pwouoSnzFmM8Ozjma6P0lObnpf74/9+Jk9h+L8iR zSFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=drVIM00+; 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 24si13045675edv.533.2021.03.10.05.30.16; Wed, 10 Mar 2021 05:30:39 -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=drVIM00+; 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 S233949AbhCJN1k (ORCPT + 99 others); Wed, 10 Mar 2021 08:27:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:46608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233194AbhCJNZE (ORCPT ); Wed, 10 Mar 2021 08:25:04 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A948464FE8; Wed, 10 Mar 2021 13:25:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382704; bh=vk3mtxnn6aBHlEJmU4lfSAuGWVCWMlvbxpHXIZXGoAY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=drVIM00+RGLVKbEmXfro3or1aovG6kefE2VlC/t0HjZShl4h7OHOq6x6mr5w5Tnsa n30u7Xi/aXeGuVDTcE+4iOhCl/n33svvjfjaluyKP0am4uWN8S+qE6HLQEniPv/Oc/ 3mj5jL5lMdxNYz3ZpBIHBBkVXwCoZDrQwQGmiVGE= 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.10 32/49] scsi: ufs-mediatek: Enable UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL Date: Wed, 10 Mar 2021 14:23:43 +0100 Message-Id: <20210310132322.955347418@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132321.948258062@linuxfoundation.org> References: <20210310132321.948258062@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 914a827a93ee..934713472ebc 100644 --- a/drivers/scsi/ufs/ufs-mediatek.c +++ b/drivers/scsi/ufs/ufs-mediatek.c @@ -566,6 +566,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); /* -- 2.30.1