Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4485764ybv; Sun, 16 Feb 2020 23:40:39 -0800 (PST) X-Google-Smtp-Source: APXvYqzFANh4b/s5yL49qfhFWHe1biEXJYhUCKVYvuvsntFhMfIDbQUUfKPdY/EiKCJTDXp3Yu+Y X-Received: by 2002:a9d:6f07:: with SMTP id n7mr10855685otq.112.1581925239631; Sun, 16 Feb 2020 23:40:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581925239; cv=none; d=google.com; s=arc-20160816; b=MoKa+Dvhr9A3KhoD+Ul/7AS7Nbu6RTSyU6F/pdlg2Hwq4SOCzg2rj/ILMmhKR6IK14 cQFjj733/yf0NfqFlXlmfPE2zYYk9i/MabgQpc+u/wPWwNqGfKRpZ0+tScEy4OHfeM/v LML+mPpufOcWFCb/Mvzq6f3P/EhKb2CQd6Es5pQEvV24aDcte7iLrWEMS5E2TssqylhR XMEAThOEfkm2TV9uwZVkh9AM4fmPgLU8P4l7tHbA+QbKRyogagv5mjHtM/NDPg9wR7IU B476xxLW6GP5xe4MftX8HhBmV/O3sU9u+pbBib6AAnPTYhileO9ivd/hujidsyoEZl9C Owyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references:dkim-signature; bh=Ra+M29CjHPnhIpuNAQgZQpc3ckx3Pxcs/DfQWA9zI+8=; b=dpMhze7cJhXgvlwKvVowhkDxWsAN8WfFQxLd4XWyLyDH1RLhIHUpmuEOlUI7hoS8/4 LNApMI1fe68VXd6MX3J67PRYUPOBAJTTH7SkNSCwIiVfZdUjvGcdt+I35bb8ufjgsLSu cY6e7qsWvc0C7Mt9q2Dl1tfi4NnaetAdBnw55bkA40kXcvLJxu2fSlU7JJpIFQjY5/J/ gx9z3SbHG6baU5cRdOtSKD5ptjUFHQCQO/QkgyMQhzqumAEavA2cG8Ds1KLhjynpgtkE EOSf++dCZbvE9er9kOD8+CRmPwEp1CztkWF8fRLxMGzkfcKwDKfzcH70Ss/8GlcnHFJk zzTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=xSIYa2za; 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 m14si6546387otr.131.2020.02.16.23.40.27; Sun, 16 Feb 2020 23:40:39 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=xSIYa2za; 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 S1726736AbgBQHjC (ORCPT + 99 others); Mon, 17 Feb 2020 02:39:02 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:40899 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726683AbgBQHjB (ORCPT ); Mon, 17 Feb 2020 02:39:01 -0500 Received: by mail-wr1-f67.google.com with SMTP id t3so18335913wru.7 for ; Sun, 16 Feb 2020 23:38:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=Ra+M29CjHPnhIpuNAQgZQpc3ckx3Pxcs/DfQWA9zI+8=; b=xSIYa2za/Qrh1kzrTrcFaipMEucxZqWSY1/sGPKm7xetj4GzRFRHUlgd8Pxv7F7Amp KVvw7M8fgQQK/Tz4HDQwlT2Kp9qz4Phw/SIyj0xXHUpSlF0azECO0qc1CRYOuhyt/Ueq WMPzRKD3GSXgHqMlBbR8s3D8oIw/zCmV/f62nKfE3CKXSjDjR0IEHmMfmPxbkmrpZRCu TfnSiEuIvqx/UKMzfhTm8kr6ev6jphuZlw6l0dkS2ouHS3uZ6dLgVgA5uZvOaiYNfTX6 7Naf2BDDJRtpuhJInlOKV9mO9uhL0+kTu+nQfF+TRLnXk75rqNEvH3L+ZI0mJwlNQ4xE Esmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=Ra+M29CjHPnhIpuNAQgZQpc3ckx3Pxcs/DfQWA9zI+8=; b=Z7uWrbQklJAvYnLRcHiMAlwJF5I7Mhzq7LKdq2j4R8BtHuQ0uSADpnNJaEIlBXJWpY MgTx8JBJ6GEZ4ZcR8As33omC4kZ2xYn31I0LNjF/pkND+7HM1SUHepkTlWLimyxpzWz2 407pJk6TFNLit3UrwJEuaSjH9wHYY6f3dhy4ulV+qV67sJGtU6y6DN3ZimPV3k0889A8 8r12XFHq1kHIGieqEDgqFHx1QNtZEsxjZJ8/9E0Iq8cogB6wn1GoRCB3wFRuoTZBEgBi uwcLP015ik0NpA+8kPK4itwqLEHhyUM6bu00nEDtzkae01xTGFw0mMr4fyTEGzEnzD1F FoOQ== X-Gm-Message-State: APjAAAW/0HpytPlpIDOMli/+BcV1SdGHyxuUaZ1DIvOCbho0o0gh+lun dLg5Nheo9Bvf+ZKFPU2G/k9Okg== X-Received: by 2002:a5d:5273:: with SMTP id l19mr21442762wrc.175.1581925138814; Sun, 16 Feb 2020 23:38:58 -0800 (PST) Received: from localhost (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.gmail.com with ESMTPSA id c15sm19842783wrt.1.2020.02.16.23.38.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Feb 2020 23:38:58 -0800 (PST) References: <20200216202101.2810-1-linux.amoon@gmail.com> User-agent: mu4e 1.3.3; emacs 26.3 From: Jerome Brunet To: Anand Moon , Rob Herring , Kevin Hilman , Martin Blumenstingl , Neil Armstrong Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: amlogic: odroid-n2: set usb-pwr-en regulator always on In-reply-to: <20200216202101.2810-1-linux.amoon@gmail.com> Date: Mon, 17 Feb 2020 08:38:57 +0100 Message-ID: <1jpnedzmr2.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun 16 Feb 2020 at 21:21, Anand Moon wrote: > usb-pwr-en regulator is getting disable after booting, setting > regulator-alway-on help enable the regulator after booting. This explains what your patch does, not why it needs to be done. Why does this regulator need be on at all time ? What device needs it and cannot claim it properly ? > > [ 31.766097] USB_PWR_EN: disabling > > Fixes: c35f6dc5c377 (arm64: dts: meson: Add minimal support for Odroid-N2) > Cc: Martin Blumenstingl > Cc: Jerome Brunet > Cc: Neil Armstrong > Signed-off-by: Anand Moon > --- > Patch generated on top of my earier patch. > [0] https://patchwork.kernel.org/patch/11384531/ > [1] https://patchwork.kernel.org/patch/11384533/ > > Before > [root@alarm ~]# cat /sys/kernel/debug/regulator/regulator_summary | grep USB > USB_PWR_EN 0 1 0 unknown 5000mV 0mA 5000mV 5000mV > After > [root@alarm ~]# cat /sys/kernel/debug/regulator/regulator_summary | grep USB > USB_PWR_EN 1 1 0 unknown 5000mV 0mA 5000mV 5000mV > --- > arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts > index 23eddff85fe5..938a9e15adfc 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts > +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts > @@ -177,6 +177,7 @@ usb_pwr_en: regulator-usb_pwr_en { > regulator-min-microvolt = <5000000>; > regulator-max-microvolt = <5000000>; > vin-supply = <&vcc_5v>; > + regulator-always-on; > > /* Connected to the microUSB port power enable */ > gpio = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>;