Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2492395imw; Wed, 6 Jul 2022 06:55:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tnK7aGhhZfDwpHn9YFtFIA9izo8HXfA3Y1v/SF+7GpetoiQ4NF8//h21h1pp1QZwvGQ9IT X-Received: by 2002:a17:907:7248:b0:726:30fc:e7fc with SMTP id ds8-20020a170907724800b0072630fce7fcmr40719628ejc.274.1657115705186; Wed, 06 Jul 2022 06:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657115705; cv=none; d=google.com; s=arc-20160816; b=irh7VAZy1am/hV9n4szonVL0wO22weLY0fcCMqQQOMWoXokjiKNligdWpQo5zIPAYy d7h4x1m17O0S0Zm4L+sobHlsXlRW7JDFv3wBME+TySQkmCeVA312hV457uJkjJfBnkPK 0g8IcqHW+QPDnO/peJ2gqpNQlZARD9mqI0LFoeLVG8vl5anhdpUxW2hiHpxUqRMfpwXA Dnwp8BYLtkjHvFwJGnPYlfIa0ca4aQiDJt1AzqaRdNiUG4++cvhT7PTYHWjWsCHfkNQr 66qfmYF7Y9sRwLijmRXFYORIUvBgCrba7GK+N8sbkYGxDYC1S9ZJ2afe1O3YHtXF5Vr3 PwHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=Hb0pG4h58JrCQcsFcw0SsgMsyCn2JsXpAKf2xsOH1Z8=; b=rQKzmDp8wd8tlM/j3iFPm4lmjXEk9QQLDqkyBWGxNenIinmMonvjcSFom5Hb1CRHH/ te2lssxwwYW8c0KovSPsBZ++obN2KPfS1jrT9MDOpsjC3WUU7ud7PHi9xQO1ciiuuJxb YzWlyh3BkNvNRLuk7jHjqXfNRHOy1OFwkmB2WLtvr9KWQChYaMFjMaFBxV8+cTzfLzbg CxzHtfsCW7fHgFBXARXECKdUEjSzE288zcRGpHgHQ3y0IcAFJ/tjnZ/vhT7rcONX8BN7 ChdA6TlOTp3ucBykgdRLVTdXaK5ibmxzTC2EfwFJUtT5C54Y8BNvzADI0+zH4EFJN8cW 09qg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n26-20020aa7c45a000000b0043602f1f761si16348184edr.340.2022.07.06.06.54.40; Wed, 06 Jul 2022 06:55:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232444AbiGFNdc (ORCPT + 99 others); Wed, 6 Jul 2022 09:33:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233305AbiGFNd3 (ORCPT ); Wed, 6 Jul 2022 09:33:29 -0400 Received: from relay06.th.seeweb.it (relay06.th.seeweb.it [5.144.164.167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D65FB28D; Wed, 6 Jul 2022 06:33:27 -0700 (PDT) Received: from [192.168.1.101] (abxi46.neoplus.adsl.tpnet.pl [83.9.2.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id E31643F770; Wed, 6 Jul 2022 15:33:25 +0200 (CEST) Message-ID: <837c6cd8-72d9-e7c8-dfd9-e171d809f0bf@somainline.org> Date: Wed, 6 Jul 2022 15:33:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 06/13] ARM: dts: qcom: enable usb phy by default for ipq8064 Content-Language: en-US To: Christian Marangi Cc: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan McDowell References: <20220705133917.8405-1-ansuelsmth@gmail.com> <20220705133917.8405-7-ansuelsmth@gmail.com> <62c58b03.1c69fb81.527d5.ecc6@mx.google.com> From: Konrad Dybcio In-Reply-To: <62c58b03.1c69fb81.527d5.ecc6@mx.google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6.07.2022 14:59, Christian Marangi wrote: > On Wed, Jul 06, 2022 at 03:04:44PM +0200, Konrad Dybcio wrote: >> >> >> On 5.07.2022 15:39, Christian Marangi wrote: >>> Enable usb phy by default. When the usb phy were pushed, half of them >>> were flagged as disabled by mistake. Fix this to correctly init dwc3 >>> node on any ipq8064 based SoC. >> Are you sure they are used on *all* devices? If not, you will >> lose power by enabling unused hw.. >> >> Konrad > > Well there could be device that have no usb at all... so honestly > enabling one of them is also wrong. Should I disable the other and > enable it for the upstream device? We generally disable everything that's not obviously being used by the SoC internally or is required for components like these for function (think clock controllers etc) and enable peripherals on a per-device basis. Konrad > > Also it's all handled by dummy vbus so i think we can ignore the losing > power thing. (this thing is old) > >>> >>> Signed-off-by: Christian Marangi >>> Tested-by: Jonathan McDowell >>> --- >>> arch/arm/boot/dts/qcom-ipq8064.dtsi | 4 ---- >>> 1 file changed, 4 deletions(-) >>> >>> diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi >>> index b2faa4a067e9..9c32c637ea46 100644 >>> --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi >>> +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi >>> @@ -1177,8 +1177,6 @@ hs_phy_0: phy@100f8800 { >>> clocks = <&gcc USB30_0_UTMI_CLK>; >>> clock-names = "ref"; >>> #phy-cells = <0>; >>> - >>> - status = "disabled"; >>> }; >>> >>> ss_phy_0: phy@100f8830 { >>> @@ -1187,8 +1185,6 @@ ss_phy_0: phy@100f8830 { >>> clocks = <&gcc USB30_0_MASTER_CLK>; >>> clock-names = "ref"; >>> #phy-cells = <0>; >>> - >>> - status = "disabled"; >>> }; >>> >>> usb3_0: usb3@100f8800 { >