Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp240821pxf; Wed, 10 Mar 2021 05:27:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzbwqkoTgXuvZxRG6Akbow144FjIxOjXdI5VDkguzg6zl5tB7P0Lb+pcaaUEnA4ThHsN9r X-Received: by 2002:aa7:c353:: with SMTP id j19mr3212613edr.263.1615382827303; Wed, 10 Mar 2021 05:27:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382827; cv=none; d=google.com; s=arc-20160816; b=J7CVEfXRZCGOjubh7JTon2i2CIou+d+Ci2hR04bbUgW2ferOsKcGVoHIlD/UEqSnLn 9pBQCdteNIcMnqlnXmm9UnUdG9w36lfWNTqLKGSsho4qQwxO54qOoJEWPNPjHS6m7M6P xdyDB8j9k4xhgDp+dNJUHsgEOsKtmQZObWd5I2pk6jtLpv20onadv5w61JE0SjQAmWrQ REhpaANt+JMafzqKR7jDUkz+8fRVAAGaQyGvnUgCYhhd3MaqLpudmcLdxHGR8nkor+Mv xvgTXzHAcStPVKmeBlJo/Dzzac6Sc+YAGDsLngkk/StwhZw84guhS/cm1GsXgWi3CcEf rEdw== 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=/SKhtBN6c7Q9dJrN6qoTlSMvP3x7D1DSJDkWIfN+RD0=; b=yCNjXzftuW/GJMTL92Ftiti7gxv2Cozn96wXrnfAdUS17iJSCOyGwq8riUSkv7LzM6 Xkq5FSq5LuyXdsGLDgEQkra2VAAgFy/huoMLlBG27KFOjEpoIOJVCTrQmf1ZgwNdBIqU JTX02MYWsR09eJiwvDwdtWcsvZZdcd7ldkv60y3MJDjRIhQCOx9x3iXNjQVfUbSXG0q7 x1m0LXAS6rlyup76Bfz3Jyz7mS8/sBx7m33mrbQIrLYMNNXOiXtWS7riWw8N3i/i3liv PADvLU8V1+mU21v/wk7s5RrF2cZbNj1OAolyJdkhZBlOCwcR49k42SPmPsZ3rarq6bFK 8v9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xyAjM7U0; 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 j19si11156003edp.531.2021.03.10.05.26.43; Wed, 10 Mar 2021 05:27:07 -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=xyAjM7U0; 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 S233468AbhCJNZk (ORCPT + 99 others); Wed, 10 Mar 2021 08:25:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:45716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232840AbhCJNYe (ORCPT ); Wed, 10 Mar 2021 08:24:34 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1196564FDC; Wed, 10 Mar 2021 13:24:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382674; bh=VBBtXgNqdF9iNjBKKGSmHIW+yN5i8KFxP1cLRxPc5HI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xyAjM7U0ExVSD012/nb5rRJh8vssijJfSOaIgTN2kFIhYuLqFGeS5GdPbeRycuO5g VRJIqf2MBAH7jh7333DsWDm/wy0l8kkcI7qdof/3qxBouPPI7BjI0EOlJJhtxI1Uwr Abl79XcQF0Xf3vb+Uslsx4a97uifYCoKwqtY/8EY= 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.11 22/36] scsi: ufs: ufs-exynos: Apply vendor-specific values for three timeouts Date: Wed, 10 Mar 2021 14:23:35 +0100 Message-Id: <20210310132321.205838523@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: 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 a8770ff14588..5ca21d1550df 100644 --- a/drivers/scsi/ufs/ufs-exynos.c +++ b/drivers/scsi/ufs/ufs-exynos.c @@ -640,6 +640,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; @@ -1236,7 +1241,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