Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5002264ybl; Tue, 14 Jan 2020 01:44:09 -0800 (PST) X-Google-Smtp-Source: APXvYqwOqQ6EBct7Bsp8jLErZMkt1dqSetyX+gj9ZJAUWuKcqWErYQ6I67l9dv04kA/YUg5CfM8d X-Received: by 2002:a05:6830:1d6e:: with SMTP id l14mr16212232oti.32.1578995049367; Tue, 14 Jan 2020 01:44:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578995049; cv=none; d=google.com; s=arc-20160816; b=sRo6E9Dd9HqGM0+gWo3g5mlOh5RJpxdf4r8/HbKFb5B8UdCqIC9XKMoiuUV86ggI3J C1glHI5D+M373mjCgvNhc7JrDYN9LPb4W3OB4eF7iIzzOm3po6u/E6biD9OwEiWHMa20 j4Usbtzzh/k3hjO1q9HnCJOjEFLPheX0G19EmcZzFocXEbeW/gets51iEELi0iiu3fHe xwANobcR3wrI+EMSNvwzZstafQAgPfpShCmxGtVLht7g7TiyzsHN/R6zU9hGvOKhiR8K EtUNwVcbiF8YIOnY/kygcH9vHXwDUD7qRRuaP6cfnlSM4MWlNFbUdoRH04XltE0syGPh R0Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=K8YXqxfFHqt8QWETpLueycxCTe+CfkJa3OCsj35XydE=; b=gyMQkV5vyEt+Jedtw6rwp/MdzZsIRCzEqRuXBi+ShW5wy46Wdg9DDWXa6tNdC8im0/ q3AGjtq58OFZxbYkh75btj0+oISfhEysFI2L1k4qymiLyjJdidVFzeXSV/FL/PiMGvUa Y+RD2GA4I6yXOQcjGyiBlu2nFK8S65jmuKSUmpuzQQZd9IRUA+6HD1cA2rMW0nq2cGtn warRX9ek46hvjeZ8ZF297Zg8Oo9+zz14mUmxiKZZWxWg4vj4e2do+kMXYMLd/rxWMlsy O34N5THfEVMUejZZk2W4BYefw5uRIaI7br7oHpXCkCtazUMYYWT1Xgg+D5ZFYfKlZ0S8 Q8Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=J0meMBCO; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w202si6966401oiw.194.2020.01.14.01.43.55; Tue, 14 Jan 2020 01:44:09 -0800 (PST) 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=J0meMBCO; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727556AbgANJnB (ORCPT + 99 others); Tue, 14 Jan 2020 04:43:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:35420 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725820AbgANJnB (ORCPT ); Tue, 14 Jan 2020 04:43:01 -0500 Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) (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 8AF052084D; Tue, 14 Jan 2020 09:43:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578994980; bh=ZY32olhBC9Vu8GoFnoJlyKFKyLmpEDns5sByfyxWduo=; h=From:To:Cc:Subject:Date:From; b=J0meMBCO3EIcNZcCnTo3GjEw6jIjd/3BjqmkWnaw4uxOrcVNa27MEziWkOR6idYlY fukBMrgtxqNzPUPw1yUafxPOgrX/CUbMLrp1qe+DZHx6tAUmFR/a4RtlEq1WLVXWnW r+dv808jcPRdMXdnJvGTpLhxqpEmRnjm+2fsvM1o= Received: by wens.tw (Postfix, from userid 1000) id 1F57B5FC9E; Tue, 14 Jan 2020 17:42:58 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: dts: sun8i: a83t: Fix incorrect clk and reset macros for EMAC device Date: Tue, 14 Jan 2020 17:42:52 +0800 Message-Id: <20200114094252.8908-1-wens@kernel.org> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen-Yu Tsai When the raw numbers used for clk and reset indices in the EMAC device node were converted to the new macros, the order of the clk and reset properties was overlooked, and thus the incorrect macros were used. This results in the EMAC being non-responsive, as well as an oops due to incorrect usage of the reset control. Correct the macro types, and also reorder the clk and reset properties to match all the other device nodes. Fixes: 765866edb16a ("ARM: dts: sunxi: Use macros for references to CCU clocks") Signed-off-by: Chen-Yu Tsai --- Error on my part. Hope no one was affected for too long. --- arch/arm/boot/dts/sun8i-a83t.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 74ac7ee9383c..e7b9bef1be6b 100644 --- a/arch/arm/boot/dts/sun8i-a83t.dtsi +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi @@ -1006,10 +1006,10 @@ emac: ethernet@1c30000 { reg = <0x01c30000 0x104>; interrupts = ; interrupt-names = "macirq"; - resets = <&ccu CLK_BUS_EMAC>; - reset-names = "stmmaceth"; - clocks = <&ccu RST_BUS_EMAC>; + clocks = <&ccu CLK_BUS_EMAC>; clock-names = "stmmaceth"; + resets = <&ccu RST_BUS_EMAC>; + reset-names = "stmmaceth"; status = "disabled"; mdio: mdio { -- 2.24.1