Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp243629pxf; Wed, 10 Mar 2021 05:31:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxO41uDchlQ/gihn7AaEViw4HtfF1qC+DpkDpVs/DoNGyGXKL3c494inLzW3YF2EOUUTKe8 X-Received: by 2002:a05:6402:b2d:: with SMTP id bo13mr3257854edb.120.1615383073269; Wed, 10 Mar 2021 05:31:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615383073; cv=none; d=google.com; s=arc-20160816; b=TBYqzYhdkr3X7yNJajpLIk6vx18NkBvkH0UphujVtDpri+C14ZAXjxKRUzp4OvlcZo teVT4KM0od2KKVjc2IEVmjRKV1/ygrwRz1LcIkiVgYUJ8wbvX0rer2woR5f5qFuljHaR UD6Ne5IcYGEWcRqsQQD7F99pyPmUERlQRzO1gemn/dIVlbpUPJ97uWj2KCkMDhyHIJHc fwlSpSjSbMtjQJxX1nLB4+sLSfCV5SFzXFqcmVwhdGqXMBg4qeJcmxu5vnE9Rg7bNGnS dF5Z/6auxNDsAAjFCcI1VDVnrR900EwG1HRDcGS5HfTDkqYxOtxxpXVURkrpKz/bt4fR 6qHw== 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=C85WQ6vNleG5chI3Ijq3lr/m2qXucAFXB0BV82k5zuM=; b=eCBlRrWvw6+yr2CGgHCvx9YmgwRKsXMpBAW653r//Li9BFf4TF54Z+Tr7MFPlnZvVb qW1MSM/IcBqBM7qs7pircZ3KAofRQanBCnQ9mu7/KyUuCPSIN4GBcM6zkmLKQ5CQYNKq dEsK+2noltO6K/EIEjeKubUecvJlTmP81fCJ+WDhuGGbLWfLthbNhpHrmqUYDOX1hd7h u/e5krT/XHqKT/aNTMZL3ZpNjtFiJ+Cfp7AlPmWzfdYDuSaAzRz6Lo2O9S3//rTI3p17 cofZaAlNCsOtRdFpX0W8ea+XNxD6hSJhhUKe3vdFI6Vwe8uwvbzj9sNkhyihRX5yHku8 FbKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eCHLeEXB; 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 ga1si11623624ejb.647.2021.03.10.05.30.49; Wed, 10 Mar 2021 05:31:13 -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=eCHLeEXB; 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 S234089AbhCJN2H (ORCPT + 99 others); Wed, 10 Mar 2021 08:28:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:46706 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233245AbhCJNZK (ORCPT ); Wed, 10 Mar 2021 08:25:10 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 35DC664FDC; Wed, 10 Mar 2021 13:25:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382710; bh=Dugr6E9uYwnlsTxXwZsk5KnI/7diVh2WZ/OR5r66Qaw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eCHLeEXBOW1Rg3Gyh30BLksT/Kp5CcBy6BUjeEw/buAqP9/X4A+bsI84BjjfDCAWx D0HwHF1S2jVTG3Nx9QCwlVu+T4zREwCZum58YF8AwGJsH3KPUrSFVG0C7XIRgmIu1+ 84yRHs/zfytRZ+xQl5pa0oK26QuMti8H08mi9LXE= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kiwoong Kim , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.10 36/49] scsi: ufs: ufs-exynos: Apply vendor-specific values for three timeouts Date: Wed, 10 Mar 2021 14:23:47 +0100 Message-Id: <20210310132323.086731140@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: Kiwoong Kim [ Upstream commit a967ddb22d94eb476ccef983b5f2730fa4d184d0 ] Set optimized values for the following timeouts: - FC0_PROTECTION_TIMER - TC0_REPLAY_TIMER - AFC0_REQUEST_TIMER Exynos doesn't yet use traffic class #1. Link: https://lore.kernel.org/r/a0ff44f665a4f31d2f945fd71de03571204c576c.1608513782.git.kwmad.kim@samsung.com Signed-off-by: Kiwoong Kim Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/ufs/ufs-exynos.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/ufs/ufs-exynos.c b/drivers/scsi/ufs/ufs-exynos.c index 5e6b95dbb578..2993ac877a61 100644 --- a/drivers/scsi/ufs/ufs-exynos.c +++ b/drivers/scsi/ufs/ufs-exynos.c @@ -653,6 +653,11 @@ static int exynos_ufs_pre_pwr_mode(struct ufs_hba *hba, } } + /* setting for three timeout values for traffic class #0 */ + ufshcd_dme_set(hba, UIC_ARG_MIB(PA_PWRMODEUSERDATA0), 8064); + ufshcd_dme_set(hba, UIC_ARG_MIB(PA_PWRMODEUSERDATA1), 28224); + ufshcd_dme_set(hba, UIC_ARG_MIB(PA_PWRMODEUSERDATA2), 20160); + return 0; out: return ret; @@ -1249,7 +1254,8 @@ struct exynos_ufs_drv_data exynos_ufs_drvs = { UFSHCI_QUIRK_BROKEN_HCE | UFSHCI_QUIRK_SKIP_RESET_INTR_AGGR | UFSHCD_QUIRK_BROKEN_OCS_FATAL_ERROR | - UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL, + UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL | + UFSHCD_QUIRK_SKIP_DEF_UNIPRO_TIMEOUT_SETTING, .opts = EXYNOS_UFS_OPT_HAS_APB_CLK_CTRL | EXYNOS_UFS_OPT_BROKEN_AUTO_CLK_CTRL | EXYNOS_UFS_OPT_BROKEN_RX_SEL_IDX | -- 2.30.1