Received: by 10.223.176.5 with SMTP id f5csp2278403wra; Mon, 5 Feb 2018 01:04:17 -0800 (PST) X-Google-Smtp-Source: AH8x226jcseP5tMzfm0KM/Q/vCqJWrfZ91pyrroQcIoXz2L9dmZYM6DSGFKtgVwHpl33VJHpWuvE X-Received: by 2002:a17:902:7441:: with SMTP id e1-v6mr12656662plt.204.1517821457625; Mon, 05 Feb 2018 01:04:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517821457; cv=none; d=google.com; s=arc-20160816; b=pz2ca2vzSwoWpk7hpBYQ+7tph62wbryInIMRExL1ZQkkLzNigxZtTlaLP8hXWQz66b P04vyWifhBdgHzJRwtSGglwYPwkGIlbvFaa2oovMGE+jcd7uOqgsNAFBpt7D88OOYDDm zdvH2h1dEuHdeo53cfU35CWqIavmRJSyAjSDLr5QSa9V9mOv03v8Cd5b5R4iu7aGXOMe W5hU3+3FrtUy3NDk8vAq6/so031xY44u9/d+Y2z88gumn8BmSb3AtYcgep4vUERPnE38 zG38T6PqC54KU+sFL63MOLnAEICCeDWmQYoJpYK3RW9Wd7B42+Pl9wvPRIrFXOTvR4Ks akYg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :domainkey-signature:dkim-signature:arc-authentication-results; bh=bnhhKFvN8T/g2jVzyNOC3wH1z8k0GnaWVSoO8/dmDok=; b=Sv2jr31n+0eVKuhITx36cgxkk4ti6CIWz1vI2VzOVcgAtfeZJk9ycdxYxt5oQFlHy0 DeXATAdDYu3VgMsUPuMP1b3vyj8iJAejXOLwtNnINsLrPUOlIFA9YLpu39U0K0QDzeKB Nm6RUTu3IlHuN0faRd4y+jNPaqn/5BvYow+AaCvYtMa5cw2x5ci5cN5TXO9NiZGn60LH FYnpfBKSLjX1txoW9xkd8w89BdCI/ljMudufft/9jHnJQAV113g6KFl+yermbCW3QsXe +nvaTpTiNbSDDF2476yX+k7LpdSoXAtUtFOLSBlf25XJmfsA1PpUo8Q4Hs8suG0Uw4e+ ZFnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bidouilliste.com header.s=mail header.b=WRt66fgs; 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 e3-v6si6749517plk.542.2018.02.05.01.04.02; Mon, 05 Feb 2018 01:04:17 -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=@bidouilliste.com header.s=mail header.b=WRt66fgs; 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 S1752722AbeBEJCp (ORCPT + 99 others); Mon, 5 Feb 2018 04:02:45 -0500 Received: from mail.blih.net ([212.83.177.182]:59658 "EHLO mail.blih.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750962AbeBEJCk (ORCPT ); Mon, 5 Feb 2018 04:02:40 -0500 X-Greylist: delayed 399 seconds by postgrey-1.27 at vger.kernel.org; Mon, 05 Feb 2018 04:02:39 EST Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 7c983374; Mon, 5 Feb 2018 09:55:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=AjeMOvTWv3EB4Ln0Cf6DMnCyrmk=; b=WRt66fgsb0Tf006yv0KpJQ2AV7hC ObkKhGrscnugUsEFJYNmLIhprwwxwgkmRdsfzQlLcTQeldV4FtZwogEsbqlo5z8a zDAJeGet02GrumETThTbGx0M7N/0DQxKh9fOJ2msyfhnh/WkGvrrNZBkzKDjrm1F Jq4eQg6g5mBuwt4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=gCjteEzMJLgt2uDsCisFOPTRbwdlnmgdZrnCMz34D6OVDvPPhSwINvEk ulhZQsLOOi5/PA8nvenfPMuh48hNm4/lltS/GluPA0kmdba/TLV1kRielZUF61aH qSltQ9t83rK2ovyfqbHPPxYrpor6Ql0ZtL48Wsra4VeP6AwMa5Q= Received: from arcadia (evadot.gandi.net [217.70.181.36]) by mail.blih.net (OpenSMTPD) with ESMTPSA id c6ea6b94 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 5 Feb 2018 09:55:58 +0100 (CET) Date: Mon, 5 Feb 2018 09:55:58 +0100 From: Emmanuel Vadot To: Icenowy Zheng Cc: Maxime Ripard , Chen-Yu Tsai , devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] Revert "ARM: dts: sunxi: Add regulators for Sinovoip BPI-M2" Message-Id: <20180205095558.2e713c24cdb7c3232943db52@bidouilliste.com> In-Reply-To: <20180203112353.13497-1-icenowy@aosc.io> References: <20180203112353.13497-1-icenowy@aosc.io> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Sat, 3 Feb 2018 19:23:53 +0800 Icenowy Zheng wrote: > This reverts commit 7daa213700758b5b08fc0daab09bb139dd334165. > > The original commit has several problems: > > - vdd-cpus and aldo3 (AVCC of the SoC) are not set to always-on, which > leads to system hang when disabling unused regulators. Indeed I should have make those always-on. > - GMAC (which uses dldo1 and aldo2) and Wi-Fi (which uses aldo1) are not > considered, and will fail to work after adding this commit. While I understand the problem with vdd-cpus and aldo3 I don't see why when you don't declare regulator the code should do something with it. DT is supposed to describe the hardware and the code should not use hardware not described right ? The gmac node doesn't declare any regulators and the mmc2 uses reg_vcc3v0 (haven't checked on the schematics yet if it is correct). > This indicates that this patch should be not tested at all. This have indeed not been tested with linux. I think that this commit should not be reverted, I'll send a proper patch tonight or tomorow night max. P.S.: Also as I'm the original sender I think I should have been in CC no ? Cheers, > Signed-off-by: Icenowy Zheng > --- > arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts | 57 ------------------------ > 1 file changed, 57 deletions(-) > > diff --git a/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts b/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts > index 51e6f1d21c32..a565316eb340 100644 > --- a/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts > +++ b/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts > @@ -86,10 +86,6 @@ > }; > }; > > -&cpu0 { > - cpu-supply = <®_dcdc3>; > -}; > - > &ehci0 { > status = "okay"; > }; > @@ -155,17 +151,6 @@ > status = "okay"; > }; > > -&p2wi { > - status = "okay"; > - > - axp22x: pmic@68 { > - compatible = "x-powers,axp221"; > - reg = <0x68>; > - interrupt-parent = <&nmi_intc>; > - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; > - }; > -}; > - > &pio { > gmac_phy_reset_pin_bpi_m2: gmac_phy_reset_pin@0 { > pins = "PA21"; > @@ -191,48 +176,6 @@ > }; > }; > > -#include "axp22x.dtsi" > - > -®_dc5ldo { > - regulator-min-microvolt = <700000>; > - regulator-max-microvolt = <1320000>; > - regulator-name = "vdd-cpus"; > -}; > - > -®_dcdc1 { > - regulator-always-on; > - regulator-min-microvolt = <3000000>; > - regulator-max-microvolt = <3000000>; > - regulator-name = "vdd-3v0"; > -}; > - > -®_dcdc2 { > - regulator-min-microvolt = <700000>; > - regulator-max-microvolt = <1320000>; > - regulator-name = "vdd-gpu"; > -}; > - > -®_dcdc3 { > - regulator-always-on; > - regulator-min-microvolt = <700000>; > - regulator-max-microvolt = <1320000>; > - regulator-name = "vdd-cpu"; > -}; > - > -®_dcdc4 { > - regulator-always-on; > - regulator-min-microvolt = <700000>; > - regulator-max-microvolt = <1320000>; > - regulator-name = "vdd-sys-dll"; > -}; > - > -®_dcdc5 { > - regulator-always-on; > - regulator-min-microvolt = <1500000>; > - regulator-max-microvolt = <1500000>; > - regulator-name = "vcc-dram"; > -}; > - > &uart0 { > pinctrl-names = "default"; > pinctrl-0 = <&uart0_pins_a>; > -- > 2.15.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Emmanuel Vadot