Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp661196ybj; Thu, 7 May 2020 04:49:27 -0700 (PDT) X-Google-Smtp-Source: APiQypKgx+rX6sgvWxrejBMRTrAp8aiMs1FNVgGrygwxHbc8wTsOVviFDIh9/eKWaw1oXxuHRTXz X-Received: by 2002:a17:906:8549:: with SMTP id h9mr11338981ejy.145.1588852166951; Thu, 07 May 2020 04:49:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588852166; cv=none; d=google.com; s=arc-20160816; b=OQtZxdNvaOw93fuUI+5BlZ5uo2nfZ14LdQ3tNNchAwhYuPYwTR4aZ8fyk3heEnIv9U ow96MdkpIWXlVToU1KoxhN8qHXEDxBZkvResb2hRHhlf/5Hvg1SVbyNCfs89eZy9KFMM DzG9N8I772Xvhpv3kPDfzjj1IT+dPfkzAY3obf+8WgiIWOhrSVrwWvuR7Ye01PgxDgQv WI+FzbppCe+DaU7IDAuFCU0Alw67K2DSPCkk/0zrmRrmqZUmzuQC/7pYiz6GD3Q1IhjV KLR0GuWLMF/Hf8+gnR/A9iaE3VPFh9ddz8Xg+XhyI3oDtoy/WLnjGKT4Onfyo6dRPtnJ 2S2Q== 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 :message-id:date:subject:cc:to:from; bh=FBx5TEk0NLf8bfF62kpWz/sdrZtnCOgz36cbb0JVXhk=; b=HKKztHrZelLmUHiVoADDcpyeU4Vd45BlFB68LD+AOOWofqB+fE76EASewYjQUCFyk6 u4Gn1z5n6z4nHEbmUyxbB+56R2I7KHTW2/UvzNHzrokD8wa+GGhB2oysB1NECj11LR9s GOu3szizLWdr+LnYvuZR8Kt9WZ4+d/Volhjzk0YN6felvJSU1x/G9XrDoy/wWhBjl8si g7kpm+6dl5L3r7IrdJ+FcH3ixsFDS3Sa1KrZ7ennJ4nhNCROxstn4AH3JiLA1dPl9i/4 F9CQtfN78r4O5Ph6zIYx3SlVUAPoWBfDOWLUpcx07uKC9VGG5HdCkaqXxovAaZ7Lm58G SqGw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd22si2748930edb.162.2020.05.07.04.49.02; Thu, 07 May 2020 04:49:26 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727119AbgEGLpg (ORCPT + 99 others); Thu, 7 May 2020 07:45:36 -0400 Received: from mail-m17613.qiye.163.com ([59.111.176.13]:24924 "EHLO mail-m17613.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726350AbgEGLpf (ORCPT ); Thu, 7 May 2020 07:45:35 -0400 Received: from ubuntu.localdomain (unknown [157.0.31.122]) by mail-m17613.qiye.163.com (Hmail) with ESMTPA id 2BEEA482B3F; Thu, 7 May 2020 19:45:22 +0800 (CST) From: Bernard Zhao To: Lukasz Luba , Kukjin Kim , Krzysztof Kozlowski , linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com, Bernard Zhao Subject: [PATCH] memory/samsung: Maybe wrong triming parameter Date: Thu, 7 May 2020 04:45:14 -0700 Message-Id: <20200507114514.11589-1-bernard@vivo.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZT1VOS0JCQkJMTklLT09NQ1lXWShZQU hPN1dZLVlBSVdZCQ4XHghZQVk1NCk2OjckKS43PlkG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Pgg6Gjo5NTg0GT8wSyNCHzMv IkwwCRJVSlVKTkNDQ05KQkhISkxJVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlKTkxV S1VISlVKSUlZV1kIAVlBSUtMTDcG X-HM-Tid: 0a71eef455f993bakuws2beea482b3f Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In function create_timings_aligned, all the max is to use dmc->min_tck->xxx, aligned with val dmc->timings->xxx. But the dmc->timings->tFAW use dmc->min_tck->tXP? Maybe this point is wrong parameter useing. Signed-off-by: Bernard Zhao --- drivers/memory/samsung/exynos5422-dmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/memory/samsung/exynos5422-dmc.c b/drivers/memory/samsung/exynos5422-dmc.c index 81a1b1d01683..22a43d662833 100644 --- a/drivers/memory/samsung/exynos5422-dmc.c +++ b/drivers/memory/samsung/exynos5422-dmc.c @@ -1091,7 +1091,7 @@ static int create_timings_aligned(struct exynos5_dmc *dmc, u32 *reg_timing_row, /* power related timings */ val = dmc->timings->tFAW / clk_period_ps; val += dmc->timings->tFAW % clk_period_ps ? 1 : 0; - val = max(val, dmc->min_tck->tXP); + val = max(val, dmc->min_tck->tFAW); reg = &timing_power[0]; *reg_timing_power |= TIMING_VAL2REG(reg, val); -- 2.26.2