Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1246386pxf; Fri, 9 Apr 2021 03:56:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxESsDcv6Ilb4hcQSDrX2mDuR6pMUdVfTO+Q4yzeGw8Sc7DoxE+Lbf1yLxR8kkqUeVrecB5 X-Received: by 2002:a63:a62:: with SMTP id z34mr7757041pgk.189.1617965764578; Fri, 09 Apr 2021 03:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617965764; cv=none; d=google.com; s=arc-20160816; b=rW4SkTFBd9uNsame9qbTw3eoSdhnkWmHLtntxbJ9vCjba4CgyyZTxXGatw+2pjLFE2 r10oVPB9gWhKcPIcZJ37KVqhxO4i0L82kVn9b3TMhfgX495DeJr7SX711kS3+9DS9ZG7 G8iOHP4XzqdcYQPMHOyh+gr3ec7PzjpCYKCFdZ7jGwD/xQp1owsOtpE3/y59Ggsm0Jjm I6DVU+6koCuGbeICC0dWydOchd2kjqyIUCnSIPaYZigtUhjDfB1lD1n2B6r5MauuMPTH xYMjzCuUgmayl/xdCjwiRr2RQemHM/Gns6rjrLW3KxCwRKlXZT8krK4v3Ze8Nb0uprID sNAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :date:cc:to:from:subject:message-id; bh=M1poKK5oR6PZQqaBu8vK7ySfwpqk2nMxacd2lsGkATc=; b=j6/cNeg+cGNdB4dxF8VwaovrWTpnG+HNibY9kwGTKPkPH1TNW72M88OG7+zGSslZIh G8ghzL3ItDAeHRnPe+jOlFpR9i4vR1fRVTpWcMbcbD/+E9cNpc4r6jGUeCeDodIBzkuQ NrqCuCeQyeI55S2ACIcjrBeS+1MHsJXNhO5lPZD58cyCHcFakwn6WhHUvSXWqu20WbAY WoBvYjfUMag/01CXgFzs8CGQdtONMGrfr1f5NyO4wVMh0xPDErB8D3HUW4A8oy7ZyZQT 22GOhwA8O/pHK09pSDmNoVI1i8lj7TaDDw49KI9dGWvW1w5tgnkBr+x8mcslJ1+KwM9Z 2Riw== 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 r38si2577831pgb.154.2021.04.09.03.55.51; Fri, 09 Apr 2021 03:56:04 -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 S233583AbhDIKyn (ORCPT + 99 others); Fri, 9 Apr 2021 06:54:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:59252 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232087AbhDIKym (ORCPT ); Fri, 9 Apr 2021 06:54:42 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 875E9AF9E; Fri, 9 Apr 2021 10:54:28 +0000 (UTC) Message-ID: <2dbb9e8c1f1e107712b05e36aa1b244329381425.camel@suse.de> Subject: Re: [PATCH 4/4] ARM: dts: Fix-up EMMC2 controller's frequency From: Nicolas Saenz Julienne To: Alan Cooper , Florian Fainelli , Scott Branden Cc: Stefan Wahren , Nicolas Saenz Julienne , "moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE" , linux-mmc , DTML , BCM Kernel Feedback , linux-rpi-kernel@lists.infradead.org, Florian Fainelli , phil@raspberrypi.com, Tim Gover , Adrian Hunter , Linux Kernel Mailing List , Ulf Hansson , Rob Herring Date: Fri, 09 Apr 2021 12:54:26 +0200 In-Reply-To: References: <20210322185816.27582-1-nsaenz@kernel.org> <20210322185816.27582-5-nsaenz@kernel.org> <401100ea-90ad-57b1-50da-967118a090da@i2se.com> <78dec30c052e9bb76e52c38f3da5af371e5d65f5.camel@suse.de> <2d2a2638-8213-5d6e-0a3a-927ed5bb2ed7@i2se.com> <4d4e3de99dbee711cf47878bf98a7cc34c3f1e65.camel@suse.de> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-KxZS3sx9rZTVwyYp0yY2" User-Agent: Evolution 3.40.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-KxZS3sx9rZTVwyYp0yY2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi again, On Wed, 2021-04-07 at 16:37 -0400, Alan Cooper wrote: > Nicolas, >=20 > I got a better description of the failure and it looks like the bus > clock needs to be limited to 300KHz for a 500MHz core clock. > What's happening is that an internal reset sequence is needed after a > command timeout and the reset signal needs to be asserted for at least > 2 ticks of the bus clock. This is done using a 12 bit counter clocked > by the core clock. That means a 500MHz core clock produces a 122KHz > reset signal which is too fast for 2 ticks of the 200KHz bus clock > (100KHz) but is okay for the 300KHz (150Khz) bus clock. Is there any value in implementing this in a generic way? That is, will a S= oC other than BCM2711 ever need this? Otherwise I can simply limit BCM2711's sdhci-iproc min clk frequency to 300KHz and call it a day. The alternative is something the likes of: min_clk =3D clk_get_rate(core_bus) >> 11; But it involves updating the bindings and DT. Regards, Nicolas --=-KxZS3sx9rZTVwyYp0yY2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAmBwMmIACgkQlfZmHno8 x/7ntQgAiD7GcI2zPvYkkdlBBtohEpENZTydgEPLuTHhXzablbGyC/GT5EJ5Pr+K iXL1Qlv5xpovPxWIx5hGdFLY/RbFSI4s4C7f2HYoPgRwwwn5AuCmuVwcL+tKkJ6d sD1dmGUJo/uMQ/P3oT0G0Ea4yuz2LSIXeq/K8PEqWLEl+Aaw3ciINqYeUlWOuGcB jPTJlSOgYj5rzYAskiRKcTiUp1fVbe9hiMi5ppft4fnJ1nYIU6wQcDxCo1WUUDhe Op/DdFTTzW+JP3mSmtr/EzVp5ldrupNFTcOzQODhDb4lEsO/ALBMMiKKhAlJVh0j 0NofzFbS3vtJ0ffpD7TnoQlkKSIE7g== =pOg3 -----END PGP SIGNATURE----- --=-KxZS3sx9rZTVwyYp0yY2--