Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 78770C433EF for ; Fri, 29 Apr 2022 17:50:48 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 01E8A83DEF; Fri, 29 Apr 2022 19:50:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=writeme.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=mail.com header.i=@mail.com header.b="0u2AyaqX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3A6AD83DEF; Fri, 29 Apr 2022 19:50:44 +0200 (CEST) Received: from mout.gmx.com (mout.gmx.com [74.208.4.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A1C638343B for ; Fri, 29 Apr 2022 19:50:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=writeme.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sinan@writeme.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.com; s=dbd5af2cbaf7; t=1651254636; bh=y8sqZhIF/zm+kBpeEdavCg+hcKk5dEqNQnhcCBibu/4=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=0u2AyaqXfEjtbEiBlFOUbV55pg0uMHFPo4OZL0dx9rYyssiucwLYjFz3kpzbx+egJ WVb/ME5AM/vJRIFx7NepT+i7GZJ21eJL/HF73lm+Y6uqBJ2L5Q9ZR1OkOQG1uTIvgv 6LTaBcikgwiHkX5a5hYFdiT+bjvvG2myiPBA4/V4= X-UI-Sender-Class: 214d933f-fd2f-45c7-a636-f5d79ae31a79 Received: from [192.168.1.26] ([176.42.27.81]) by smtp.mail.com (mrgmxus004 [74.208.5.15]) with ESMTPA (Nemesis) id 0Ldot3-1oBp5U3qex-00iz7D; Fri, 29 Apr 2022 19:50:36 +0200 Subject: Re: Error fsl_esdhc: Internal clock never stabilised. To: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Priyanka Jain , u-boot@lists.denx.de References: <20220429173553.72ayuu5j7elkhsf7@pali> From: Sinan Akman Message-ID: <16801e45-cbef-07db-0bb8-d6e9c52355e1@writeme.com> Date: Fri, 29 Apr 2022 13:50:31 -0400 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20220429173553.72ayuu5j7elkhsf7@pali> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Provags-ID: V03:K1:znYanTo7/0aELVflQ0qJPAFjnGcs142nGxr9Nh3U1RZc+3J87UE +bh//nGz3xrMunhTVogmvElZsod51YcUnVuK9+e5kGBITWXY93yLbEEBxluCvlfQjBDu1JC fvA4Uzpj6hmyaSfL94selXB0E3T/aghJOSIVjcr5DId+LV54JtbHuIoZcNEae4T2XiHF43o Ld3IEl78LcZaAuDL9waIQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:tncI/Ug9HIs=:Ez3j7QBEeGuMrd8i6npuRJ Tv78G/DqugT/vaiTEK66xht9ud4nhxmYSr8TqTQqYcvWGasbeqNipYwo2zJvxBo3nFZWKl6+Y /L/ksXkT6jLbbt8Uh7WpcjwsSWdkdvtE+8KZjaXCBm11vkcrBR2Cz7VCWtGKzgm5mDiQ6o4dI qVwGnouUYQ9gpoW3ZcWCuOfwgMiWxnRF2aHZqRq5ZYSL7yrDGjcimX3YwmCOPt5G74X2x1lty DYAYoHt9EkGkkM/iDf2sAKWlf9gN+jKJLfhfTtZAiVSp0pWfFNCZTBgr8iUyk4zPzzNG5+DQ6 34GJSdxtOKZXJKLnoKfGH6gXeAM/qtMu/4FrZvMvCe2S2uNc72/onCDftL0tysnks+3rtwedi 5kijX+7hwQURMuvugUAGLVTaIaDZ2A2WYwwJlq8j4nOsT83MKbwjB9SeJ9GfT1954gzvBOg97 Dj6wsvFl/IgvXZyIKhdDSsRK7Spekssinvi+pJQXt67aUqjEraYJTpnE1ZX2wSrsSu/GtkCyR BzL4QtY82XzEfzFZomPcEAt0Y/ivLzH7Oz0RWMIrDs8J5kU3xFMZ3/2MEQIXh3OIl+f2YyaYa 0bRuWLtX/0O/aRy8JQZXBEcbbDZX1bFJgjz3FqoKml68Fz/fAgSOYJkk1yduRVWQyzwxn+Frd yBHXi8BPFf+t/LsByBuBFBCI+O9Kb6nyUG967XyRZ14mIp1+/UQpw+upwZZsrfyOQ5K+d9PRW FnXf8n5bdxzgi9oOFvzyhBPKoFInNxkGaQuODS5K7kuzqqE6S/VQBq7Uh3WYoT5slVT53iQEN NGRzxWDd9rss0PCecb6LisQKBB/Bv8FHUABwQz5VYri3jb+He0y/QDDdO6NMDXJSwpbzH7ZMN +5otGF9SqDVHBITR9poCK3F5OyAnM8v2gstwIqEYIbiTR+KTaBv07HateYHqG0QGUqOsAsy6V c+xJwGweQ5ckRJWyy7QP/GKKDnwZ5obJJTNL3tpcAlhXE39KU095oIZeESgshUhWLvw4TZHsb qX6XNWugJXJcUDK0JkkOBTj5f+DG+2xPp2gvFMUDpAx/JeMyXJZXO4AbfmsvmSjd7YCRdaA9w bNkOWzWuOzZxtc= X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean =C2=A0 Hi Pali On 2022-04-29 1:35 p.m., Pali Roh=C3=A1r wrote: > Hello! > > U-Boot prints error "fsl_esdhc: Internal clock never stabilised." on > P2020 everytime when trying to access SD card. It happens with every > tested SD card. Note that both read and write operation with SD card is > working fine, U-Boot just prints that noisy error. > > For example: > > SD boot... > No max bus width provided. Assume 8-bit supported. > Second program loader running in sram... > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > > Or: > > =3D> mmc info > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > fsl_esdhc: Internal clock never stabilised. > Device: FSL_SDHC > Manufacturer ID: 3 > OEM: 5344 > Name: SA16G > Bus Speed: 50000000 > Mode: SD High Speed (50MHz) > Rd Block Len: 512 > SD version 3.0 > High Capacity: Yes > Capacity: 14.8 GiB > Bus Width: 1-bit > Erase Group Size: 512 Bytes > > I tried to bisect this error and I figured out that U-Boot prints this > error since beginning when this error message was added into fsl_esdhc > driver. > > Do you have any idea what is wrong? And how to fix it? =C2=A0=C2=A0=C2=A0 AFAIR this is related to the issue that some of the th= e register fields did not exist in p2020 and the patch was added for T series. Please take a look at the reference manuals and verify that the register that the code checks did not exist in P2020. In this case I believe you can simple exclude this check with #ifdef P2020 or something to this effect. =C2=A0 Thanks =C2=A0 Sinan Akman