Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2513014imw; Wed, 6 Jul 2022 07:12:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tgHS6E/dgikgl6oUMqfkMwjOe9FVVnGZIwStZ4EztmVCq31LK2wJ0ijF2l9RShzVViiPX6 X-Received: by 2002:a05:6402:c47:b0:437:ce2d:c30d with SMTP id cs7-20020a0564020c4700b00437ce2dc30dmr54645759edb.395.1657116779123; Wed, 06 Jul 2022 07:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657116779; cv=none; d=google.com; s=arc-20160816; b=g93Jiw2JUFM1RrGCYB2tZ6Qpfz30Quf7WewriuuekUne2j/2X/YvYdPiSLkYQVn6dr Q26ghcoGNkg4DPpNO708geGbPJphyVssVJAUbMIxdFWuW7/iFgPXguleusIJJEP2khdQ gm1d+bBCDgGTgYAEQKtD8g0hYARQ5mcT9d/xlUIGDEeK+kBRp47naDAFvg3+hQqcKtKJ cZzjDUStk8FpctBaJ8fsvnKM0iH7z+LJzqwa42x2D1AKa8kMfOuDMSFoVaLyU2Bi0LU1 h+2T8GfVbYqHjeL3z6qv1M4cWVcyb/GncpNqNZLTXw/+miS2C7XkwrYIZt4Kr7sgpMUA ez6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:subject:cc:to:from:date:message-id:dkim-signature; bh=dKKydK5tKzNauOSLwuMbV7i2MBJlb9QQ2YCYOCrDsp0=; b=CFVhor5nqaer07BOlwYTVLFzfN/AVy884aKR4ZEzv9PcDRNxOm6qbwoqsrO39bq7Ye ftE1BQ+mv/fTUraPeg/bSMAXehYM4XIClZmHDqn5MGjHNXiKRqBkGe+RmaLWQ8o+z1Mo IvJoC0ZBT6e2wQNduxLLY9phHvyoU2YVKQaeO3pWF2pS31teLEZhdC1pQlG7DS0875Xa bNe7ZXkViUvIwvHVACco9C+CEylf/UHeu7S8tpsUJbQGlXunOHIeaHn/g9KVGF8Fln4e dTYJ5XzFeJy2yFBzhWO2UbXgnW2DLk616QCg94t1eP4mDv+stwzRDio10l6q3hfWVewO brOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="RCOcZ/ho"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc3-20020a1709071c0300b00722dbb8f74esi17782673ejc.960.2022.07.06.07.12.18; Wed, 06 Jul 2022 07:12:59 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="RCOcZ/ho"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233655AbiGFNhw (ORCPT + 99 others); Wed, 6 Jul 2022 09:37:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233709AbiGFNhq (ORCPT ); Wed, 6 Jul 2022 09:37:46 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0276A22B0D; Wed, 6 Jul 2022 06:37:44 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id sb34so27110991ejc.11; Wed, 06 Jul 2022 06:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:from:to:cc:subject:references:mime-version :content-disposition:in-reply-to; bh=dKKydK5tKzNauOSLwuMbV7i2MBJlb9QQ2YCYOCrDsp0=; b=RCOcZ/hoR/jOgEOOmG7sVY3Cwwm5J3af33LdQfjNdAmlIsJKjRu5c+DZyyN/x6vvKr 6DkFdOIjKTjWW1hrfSJf91OFXO9fVs71YIg1NkAWTG6muLnHQeRL0vB2VGafhf/0b4eP jRgl6534p614z/2XJ+d08Aa6rJcqnIz0vCOca5xBVJALxjW+Su2osASE2YgSTd6aX9qX XhebzEWfi3DCB/ZVJ1k/aSBPZ0/If5kdmBDg2aVnqOLn9YQHBRdFBz1XG8EOFfY7lBge UnmnLhuVMSxzHhl9F4jHbo10yT2b2NH3tPIaMCHrCCsMkCDzx15cUU8dyEe0iPrwdKKn rbLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:from:to:cc:subject:references :mime-version:content-disposition:in-reply-to; bh=dKKydK5tKzNauOSLwuMbV7i2MBJlb9QQ2YCYOCrDsp0=; b=l+TO3TFqNZObD0ki9LRqGRYiykzUvybX1yLWouAucDDUh5DA+QmlY9VwveoWb3vfUa UH0p5+FuIHblCzqn4nobmec/a+eUlbi+fHYItTTJR3WQBd0oKw2iiW6DlVJWgM6REmyt 4VVmWkBsgUITIakngAOhF9pVeY/cekLDfVgObuY+hUl5c/2TaaTU2lAfgje/FsQj821L TdhIbfoJtiLZNAtYBSZxzuYGBVpe56j5a7ExD/3JcdJ9kGo2hUQMvo5aCd2edxoaITJ0 Who/4P83NXo14BsIsy9Wrc7CZlVRc6x7LbUeq1RBiJjgP4sROgbhTIvBqk//F0X7XhqG Zp8Q== X-Gm-Message-State: AJIora9ykDm41wLtfqcMwmGIxBnpfDptonRr+BWYe6Iu9Ut0nSgbYCco 1XmglC2LQnF6npSLSxvwQ94= X-Received: by 2002:a17:907:a428:b0:726:c9f6:cb72 with SMTP id sg40-20020a170907a42800b00726c9f6cb72mr38200703ejc.663.1657114662366; Wed, 06 Jul 2022 06:37:42 -0700 (PDT) Received: from Ansuel-xps. (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.gmail.com with ESMTPSA id fi9-20020a170906da0900b00722e5b234basm17492148ejb.179.2022.07.06.06.37.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 06:37:27 -0700 (PDT) Message-ID: <62c59017.1c69fb81.a08b4.f18c@mx.google.com> X-Google-Original-Message-ID: Date: Wed, 6 Jul 2022 15:20:49 +0200 From: Christian Marangi To: Konrad Dybcio 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 Subject: Re: [PATCH 06/13] ARM: dts: qcom: enable usb phy by default for ipq8064 References: <20220705133917.8405-1-ansuelsmth@gmail.com> <20220705133917.8405-7-ansuelsmth@gmail.com> <62c58b03.1c69fb81.527d5.ecc6@mx.google.com> <837c6cd8-72d9-e7c8-dfd9-e171d809f0bf@somainline.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <837c6cd8-72d9-e7c8-dfd9-e171d809f0bf@somainline.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 Wed, Jul 06, 2022 at 03:33:25PM +0200, Konrad Dybcio wrote: > > > 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. > Will change this to disable the other usb and push another commit to enable usb on the upstream device. > 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 { > > -- Ansuel