Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2358796imm; Mon, 28 May 2018 06:41:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLIDpAqqhB0auWqHmxNpV4lbRH7LgTXLizMvNgQDdxUoR5Dwz+CW1ox0LU+vdFSOgUX5C9I X-Received: by 2002:a63:2c0f:: with SMTP id s15-v6mr7188915pgs.75.1527514868703; Mon, 28 May 2018 06:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527514868; cv=none; d=google.com; s=arc-20160816; b=0ns7PuAhcEXZ8HZavoioQnzbdq7+C+aFK4QzEsqF7afAtxDL1kSI6RORLaWXM9Uoag MxPip1BrML9I5PR08sklqEiZ+u50PulndvqHkI2FftDBsTCnPouS3L3pvTxLBRQzilgD 7BiFJqakguOWzVqblPP6YqrhsQXqxUggnBELXh6D13oXVCJCzMWZXDd1N7vpCdCKR7g0 TTEI/Eq+POhiIxD5PsxbBStBL4EBEsr4n4NonUCPoMIHe9ySaxXAnVo8x9lWeeJZuKQk N1yccM6pm4BmXIr2RyLfSG6+mif6dx+LXkpaEhOxyCb6MqwhArclSr+eZLfZGauJr0AG LAzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=69hYYKqeL/562G+Sc90f9mSgKLoIRDPEBd49S85mxXA=; b=yCUgrCFOuGBa9wV+7Qn2RibU3jousxi1LeLt2Epe9iGLh+NiF98PvrsA9HEA2pkLQA 7vEFrEOAQYgXaWtEr6/Sat5tIhSgey6nhWYqaBMqNbM2260KCUn6yk6Ssuo0ZagmBrbJ xLXdtPKXynljs6N5yVM1BOxYAd6XupGg3gLT02wRWdGdTx2HHFIChNHmamfaVoqGJFfi eEyW0QPt9ol2WsgogYtVwuzASVHqWnmmGjAE/cuRT6Pl5tErNkKolztfjZR+4+3AZWZP 1lBsV+UQCDp2pzbq6l78WN3ZaHEm2DfTZpxqhdvXVq3ER4U8U2Hdj9sYKfQdc7mfzYJx eOKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vZ5pPLwK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v63-v6si8216787pgd.82.2018.05.28.06.40.54; Mon, 28 May 2018 06:41:08 -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=@kernel.org header.s=default header.b=vZ5pPLwK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937788AbeE1NkP (ORCPT + 99 others); Mon, 28 May 2018 09:40:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:35368 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937511AbeE1Kol (ORCPT ); Mon, 28 May 2018 06:44:41 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0C992204EE; Mon, 28 May 2018 10:44:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527504280; bh=9HNwtY1poUZ0IwqqxRkBSnnm1RMR6Iha+MAEAvnjMkc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vZ5pPLwK4Hdv+sGPDB9vs/G4FLbrXZUjPvC4XgZcVYTqTzDGtpHbQUqiMBGRuGJn+ XLsvKzhKoOPpR5BoekCkzr9wUzQhdkj3TNj6iRAgynDfRD9TU1jEzcnBVaO2O/Zzx5 lRbuhkAoBxDPb8dophXHfjXuu2vfTX4zh5O4HV3w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Robin Murphy , Heiko Stuebner , Sasha Levin Subject: [PATCH 4.14 081/496] ARM: dts: rockchip: Fix DWMMC clocks Date: Mon, 28 May 2018 11:57:46 +0200 Message-Id: <20180528100323.186877882@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100319.498712256@linuxfoundation.org> References: <20180528100319.498712256@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 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 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Robin Murphy [ Upstream commit e78c637127ee7683d606737f2e62b5da6fd7b1c3 ] Trying to boot an RK3328 box with an HS200-capable eMMC, I see said eMMC fail to initialise as it can't run its tuning procedure, because the sample clock is missing. Upon closer inspection, whilst the clock is present in the DT, its name is subtly incorrect per the binding, so __of_clk_get_by_name() never finds it. By inspection, the drive clock suffers from a similar problem, so has never worked properly either. This error has propagated across the 32-bit DTs too, so fix those up. Fixes: 187d7967a5ee ("ARM: dts: rockchip: add the sdio/sdmmc node for rk3036") Fixes: faea098e1808 ("ARM: dts: rockchip: add core rk3036 dtsi") Fixes: 9848ebeb952d ("ARM: dts: rockchip: add core rk3228 dtsi") Signed-off-by: Robin Murphy Signed-off-by: Heiko Stuebner Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/arm/boot/dts/rk3036.dtsi | 4 ++-- arch/arm/boot/dts/rk322x.dtsi | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) --- a/arch/arm/boot/dts/rk3036.dtsi +++ b/arch/arm/boot/dts/rk3036.dtsi @@ -261,7 +261,7 @@ max-frequency = <37500000>; clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>, <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>; - clock-names = "biu", "ciu", "ciu_drv", "ciu_sample"; + clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; fifo-depth = <0x100>; interrupts = ; resets = <&cru SRST_SDIO>; @@ -279,7 +279,7 @@ max-frequency = <37500000>; clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; - clock-names = "biu", "ciu", "ciu_drv", "ciu_sample"; + clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; default-sample-phase = <158>; disable-wp; dmas = <&pdma 12>; --- a/arch/arm/boot/dts/rk322x.dtsi +++ b/arch/arm/boot/dts/rk322x.dtsi @@ -600,7 +600,7 @@ interrupts = ; clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>, <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>; - clock-names = "biu", "ciu", "ciu_drv", "ciu_sample"; + clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; fifo-depth = <0x100>; pinctrl-names = "default"; pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>; @@ -613,7 +613,7 @@ interrupts = ; clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>, <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>; - clock-names = "biu", "ciu", "ciu_drv", "ciu_sample"; + clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; fifo-depth = <0x100>; pinctrl-names = "default"; pinctrl-0 = <&sdio_clk &sdio_cmd &sdio_bus4>; @@ -628,7 +628,7 @@ max-frequency = <37500000>; clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; - clock-names = "biu", "ciu", "ciu_drv", "ciu_sample"; + clock-names = "biu", "ciu", "ciu-drive", "ciu-sample"; bus-width = <8>; default-sample-phase = <158>; fifo-depth = <0x100>;