Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4797406ybg; Tue, 29 Oct 2019 12:32:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXGt8Yy89iwDZ2xjImeN6NkcOqGWuFNnfigO+xLUaZmOul/w71YhTgbVBSmgoEzaW6P99G X-Received: by 2002:a17:906:6bc4:: with SMTP id t4mr5196553ejs.1.1572377534588; Tue, 29 Oct 2019 12:32:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572377534; cv=none; d=google.com; s=arc-20160816; b=ShgSCChvLJfPxgTcsxR3zqPZs0xy5OH7CeJbfrvLlwfEIjhIuT1KOHGzxyPbd6wKbd iGDil1QyVRQ0Uz5RzqXUqTzLyW8B5j/65A3Osj9lSo3gxkf3PvNRPvF4OmAa4u62jnsI 0a+P020nFxLGJN+Ezo7qXcXBrG2bq5HdTL2euyKbEZPOhPUwHnYHO/hgThUy+zrw3cWF xVWtvPUPd/6qBiel6o55HPBP569gPCJzzNgKV+nTmQH6H+Hs0kkIz5BHvCU9EgCvJDRL AZkZKm5eGI/WOUgz6DaqirtT6TrKVE7E5LHDUd9N4IJ/r1pAxekxeC1tiGaqc7+42W3x 2+Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=rQbCwQn4OcCXCHFwwmFatk+l/n8S/B77Id3xHHz9OsQ=; b=uIA7GGy9ntsRHLsVzNV4Qer4Qt8nflDLoRFz2dtVglx49mws8hT1u5EZ4EC3dy7eZp CKnc6CalSnMWgr444D7XwgP5TeTRi7Ezbb8CrI2NFJ005jVvNPAyXJ+Bp/AUdWQNGHwV Sm8vKDWqpgn8Kh4+TSynCKCXL5/I//o1zLyp6Y6zHrmXs8DU40NNrp1Zb3hPf2/9b2bU uPrt/5WhzoXqF2JOU4sJHSHIyUdNbwl5Xv2UaR7503H9GvPZpL2fBNkikoypEmXHs94w 9szEJsW1vO8eToaQ+7kFyIyR+x8KQu9oucY7Ok1cXrkxKAwtdLgTTnKDKIAmBsizPQqR ocSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hZjxpuAg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b12si11012856edk.16.2019.10.29.12.31.50; Tue, 29 Oct 2019 12:32:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hZjxpuAg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388238AbfJ2NPb (ORCPT + 99 others); Tue, 29 Oct 2019 09:15:31 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:44586 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732534AbfJ2NPb (ORCPT ); Tue, 29 Oct 2019 09:15:31 -0400 Received: by mail-lj1-f196.google.com with SMTP id c4so15200769lja.11; Tue, 29 Oct 2019 06:15:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rQbCwQn4OcCXCHFwwmFatk+l/n8S/B77Id3xHHz9OsQ=; b=hZjxpuAgz7brG/rgG0uL289gCvd0Rg+88SXtx9mT7soxurM5WbTxvC1hQ/lW/drlyR wXm8QSuoxTtFS380W5cBhc+CWa6zdNldQWI5Z7iYoXnhFcTkJJoSWA/mUpPSTN9nILM2 o0hdPoyUu2RlEnrDpVfatezm1YRMLbsCb2kQZx1vd6xmo/sjU9ffvr+4tGMLGX1iBbgN HjA33qGO4LaEfelPQxH0Qtm8nbxY2owSG3UliwWk9PLtpSyTCg70RiaotxwE5P/tTNNL 4/+BJck94WL0BsUuYjAzgaFG74yvXqKueQivrG3a/z+li8SYPnjsU+XJBvnrsz7rCPPp xfZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rQbCwQn4OcCXCHFwwmFatk+l/n8S/B77Id3xHHz9OsQ=; b=te4TVB5WNIjt1p5mD9DUQAIapDQueXDRZeVO0wmwFIRSoX4cOCCkLXNbe6fhlfULiW FBDqUFFQSidDmxT3DjI6zyxmiVrgLTr1Wp1L0Fi/s6uTumjcc476mXAdF0i7TFO8iX6e +kXeds1CU2XJ8CdiYWnRB5W9Gp1W4cxpub2UoWqCAuCY4uJzxWsW65fPzuCTnVVcxbjt hvJxDbSmTlxjF+/4HaQVI5FKtwIyva5yMP9XyBYcEJCgmGkubx3l6gsIRu+srmpgTLrQ rp4PIjwYJWNCD3pGDEbkofcs/73J/RzabYn74/HWwLzGgRJlcebWe7jU3LrPj/pxsTTs 4cIw== X-Gm-Message-State: APjAAAUQzQ1ouEfbMs02TXOwdnd3zUfnQrct9VZSV+Otmez35kE5slQr itbPTBSvMDbstwyZLGWOjUR4sV2LItN1mymI6EA= X-Received: by 2002:a2e:819a:: with SMTP id e26mr2713781ljg.26.1572354929138; Tue, 29 Oct 2019 06:15:29 -0700 (PDT) MIME-Version: 1.0 References: <1572343372-6303-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1572343372-6303-1-git-send-email-Anson.Huang@nxp.com> From: Fabio Estevam Date: Tue, 29 Oct 2019 10:15:31 -0300 Message-ID: Subject: Re: [PATCH] ARM: dts: imx7ulp-evk: Use APLL_PFD1 as usdhc's clock source To: Anson Huang Cc: Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Sascha Hauer , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel , NXP Linux Team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Anson, On Tue, Oct 29, 2019 at 7:06 AM Anson Huang wrote: > > i.MX7ULP does NOT support runtime switching clock source for PCC, > APLL_PFD1 by default is usdhc's clock source, so just use it > in kernel to avoid below kernel dump during kernel boot up and > make sure kernel can boot up with SD root file-system. > > [ 3.035892] Loading compiled-in X.509 certificates > [ 3.136301] sdhci-esdhc-imx 40370000.mmc: Got CD GPIO > [ 3.242886] mmc0: Reset 0x1 never completed. > [ 3.247190] mmc0: sdhci: ============ SDHCI REGISTER DUMP =========== > [ 3.253751] mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00000002 > [ 3.260218] mmc0: sdhci: Blk size: 0x00000200 | Blk cnt: 0x00000001 > [ 3.266775] mmc0: sdhci: Argument: 0x00009a64 | Trn mode: 0x00000000 > [ 3.273333] mmc0: sdhci: Present: 0x00088088 | Host ctl: 0x00000002 > [ 3.279794] mmc0: sdhci: Power: 0x00000000 | Blk gap: 0x00000080 > [ 3.286350] mmc0: sdhci: Wake-up: 0x00000008 | Clock: 0x0000007f > [ 3.292901] mmc0: sdhci: Timeout: 0x0000008c | Int stat: 0x00000000 > [ 3.299364] mmc0: sdhci: Int enab: 0x007f010b | Sig enab: 0x00000000 > [ 3.305918] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00008402 > [ 3.312471] mmc0: sdhci: Caps: 0x07eb0000 | Caps_1: 0x0000b400 > [ 3.318934] mmc0: sdhci: Cmd: 0x0000113a | Max curr: 0x00ffffff > [ 3.325488] mmc0: sdhci: Resp[0]: 0x00000900 | Resp[1]: 0x0039b37f > [ 3.332040] mmc0: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00 > [ 3.338501] mmc0: sdhci: Host ctl2: 0x00000000 > [ 3.343051] mmc0: sdhci: ============================================ > > Signed-off-by: Anson Huang Thanks, with this patch applied I can get SD card rootfs to get mounted: Tested-by: Fabio Estevam I think this fix deserves a Fixes tag so that it can be backported to older kernels.