Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2583285rdb; Mon, 12 Feb 2024 09:15:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHbHbpy1l2KIK1xL6GelnzZFFeAvReEnFztBKSPV5ejcbNca+XKrNKy7+gZU50qOXaPeB2C X-Received: by 2002:a05:620a:22cb:b0:785:bdb5:c0df with SMTP id o11-20020a05620a22cb00b00785bdb5c0dfmr7250053qki.1.1707758153378; Mon, 12 Feb 2024 09:15:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707758153; cv=pass; d=google.com; s=arc-20160816; b=IhmlM0JhdIVo0rv2035jqHx4/UCmYCp8Vmksb0h8fbnSsczLvXMPGnukHjuexQ2rXP Xuib8Rbxsfq5wTWoMnkku/ubGw4en/6Jjl+E9aVCcdJ1/qQ+XzwrC+dY3Vt9OsVb/0LX 0Jzlzj0BrvvoNbQIUnD6L0Gftw8TxSUDDIxz418bDCZm6h++JPZcA7Nj/K0GBJBmW9IK IoN7hQrYV7ViMoj7qilOHhqAu8P3M2rjV0QvC5w2mcx+MA2YOcTX9KHzEoLpq6AG4xjm To7wk0HETlzvMIpgmz5+OSfhumv4FWBcb5dJwylueUrYKiV+5uViJpI7A5Jqm6cTXeKY J0GA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=/goh5bYm7kak+eE/3tyXMap6BlROBx5h/vGSs9PbcH0=; fh=k/Mbw61al4wmymqsyl8bF+i3B5uEt5JsygduwEea4/Y=; b=Tt9GYQOIKaQCcMDeG8fPvHHRivymOVq3Nux4RDbbfJJWw4LLIB/JJtwLkZS4O1TpJs bve/mrCBUmwl13MkxYmwsm1UqV69RDqmn2D4FnEuju60XodoCNf+Ez6m8AeldLuv63ZK ZPyUxKlSKce2LxWLfYu4VZq3eHhn5pP3pEKm7ukDS4LbCepMoW63HrMAcB0b3NBi+HQ9 UiD5iwXoLR3pL424qg9PD1YTBnRReCbK6f+lZV25sOSComIhz/9PJow4C9YO8LMilZML U1F9sK3oHPHY9iz+7CR0EYnirXHXAWgu+p6sFjDPkGjVv3rE7RaZRr4BIdI/D9cYT7G3 KEFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=S3xJSVsW; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-62072-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62072-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=2; AJvYcCXZC0yExX8JpOD64SKc5CPgsQN6lSiGi5C7d9NHDIRogtCNrJ+IMBOiXcUWAA0MTbnCFbuOGAawkFF0gVk417R6pV+MZ7xyJ4cfj5YsNg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c12-20020a37e10c000000b00785cc7a8b56si5217808qkm.298.2024.02.12.09.15.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 09:15:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62072-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=S3xJSVsW; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-62072-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62072-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 599811C22C33 for ; Mon, 12 Feb 2024 17:15:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D07213F9F1; Mon, 12 Feb 2024 17:13:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="S3xJSVsW" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44F143F9D6; Mon, 12 Feb 2024 17:13:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707758002; cv=none; b=QqoSWecVzbzD1RYquL3tQgPMQ2gWHBIqy8wVQQ8GOkqjiehdn6VByg48tAibEcJl7t/qtSX9a3MjF8xRTlJRyOUPImMk3nMPSEw4SwAKUH/W8LirSASuquHHH7xbZhPCGcvb0Ks6goQxDAf5rCf+KU88GeGgkuJiBuBl8DKd9xw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707758002; c=relaxed/simple; bh=dsbr0JzI0K/C/i8Mp3MJyf2UUlU1fv5w1ZItT9s5p/w=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ZQileVRnBT2k9GIdDgIStTWB3rX+03Vv25BsYlDINmAJTiIp9fOGaSWkrnUR7e3eP0LUpnVRmlINIIFvncltoS+sO/6fvkUR9UIWhZd+QCDTvVc8p2vTKjM/tWv7Rx6Jba4J2pFX7PKTseAq2ZN6MHOJLucI3v+PcsCiVpXkHU0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=S3xJSVsW; arc=none smtp.client-ip=198.47.19.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41CHDH25083309; Mon, 12 Feb 2024 11:13:17 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707757997; bh=/goh5bYm7kak+eE/3tyXMap6BlROBx5h/vGSs9PbcH0=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=S3xJSVsW6F2E3UY/Vd3qwpYmUEc5WJexYw6n4XTmh+E7naY/aH2D10M+H2MecsQyJ xo1F/vHMQ6AjImywxzCyMBJLyX8EBd4aQLxj01hho4teSlrZoGo/apdNctTa8IPeyg bVJtK14k+o6bxJGb5+dffPcxyImSpdoaObLXn0uk= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41CHDH7k093690 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 12 Feb 2024 11:13:17 -0600 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 12 Feb 2024 11:13:16 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 12 Feb 2024 11:13:16 -0600 Received: from [10.249.42.149] ([10.249.42.149]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 41CHDG5l025075; Mon, 12 Feb 2024 11:13:16 -0600 Message-ID: Date: Mon, 12 Feb 2024 11:13:16 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/7] mmc: sdhci_am654: Write ITAPDLY for DDR52 timing Content-Language: en-US To: Judith Mendez , Ulf Hansson CC: Adrian Hunter , , References: <20240207011520.3128382-1-jm@ti.com> <20240207011520.3128382-3-jm@ti.com> From: Andrew Davis In-Reply-To: <20240207011520.3128382-3-jm@ti.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On 2/6/24 7:15 PM, Judith Mendez wrote: > For DDR52 timing, DLL is enabled but tuning is not carried > out, therefore the ITAPDLY value in PHY CTRL 4 register is > not correct. Fix this by writing ITAPDLY after enabling DLL. > > Fixes: a161c45f2979 ("mmc: sdhci_am654: Enable DLL only for some speed modes") > Signed-off-by: Judith Mendez > --- > Changelog: > v1->v2: > - Call sdhci_am654_write_itapdly() in sdhci_am654_set_clock() > instead of sdhci_am654_setup_dll() > --- > drivers/mmc/host/sdhci_am654.c | 1 + > 1 file changed, 1 insertion(+) See how much easier this patch is this way :) Reviewed-by: Andrew Davis > > diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654.c > index 2c66a965c225..b50db5d4a452 100644 > --- a/drivers/mmc/host/sdhci_am654.c > +++ b/drivers/mmc/host/sdhci_am654.c > @@ -299,6 +299,7 @@ static void sdhci_am654_set_clock(struct sdhci_host *host, unsigned int clock) > > if (timing > MMC_TIMING_UHS_SDR25 && clock >= CLOCK_TOO_SLOW_HZ) { > sdhci_am654_setup_dll(host, clock); > + sdhci_am654_write_itapdly(sdhci_am654, sdhci_am654->itap_del_sel[timing]); > sdhci_am654->dll_enable = true; > } else { > sdhci_am654_setup_delay_chain(sdhci_am654, timing);