Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp791455rwd; Tue, 16 May 2023 07:48:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ41ZZUZRzV4g2Xy37L7x1kbAe9u/JyD2K7ta0whAj0jT964RSr0h0V5WXkRjk6fpe+OiFKf X-Received: by 2002:a17:902:f54f:b0:1ac:750e:33ef with SMTP id h15-20020a170902f54f00b001ac750e33efmr40005012plf.3.1684248499016; Tue, 16 May 2023 07:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684248499; cv=none; d=google.com; s=arc-20160816; b=W35E4V7TRajsZKDWZOBEODDv/4NwPfsrv3CxikTiCewryELQ2hjTuYY61MCBZwI/Om x4Jk5cr2ubTyNGHS3ZguVePwYSqC4V7BY94VO62Wa3lLb0dxmyjXVW7e6JcBS8/N1JxU 5qRoF+qyLD5iSRUC57bJAD/KIVhxbX3t7l+qgd+hl7xwQuJczgqTD1cQWMQhsmMy+yh3 OJD3X+wSguTJnzMGVXWc81iaYuOu/ZAr7EcIeHVRcQ74joQeJA+NtjJRMAomC/AkcvUF 2bmNtoLjfAPckhHGJfG+MGOpD3oybcvZQhyZwPXIFJso4A08ebfjvvyycFU4w55A4++i LzBw== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=3iWlqFDJktNo5W1sr2/ohA+zv0D/wn4ClSYhKh5VB9w=; b=Mw7TVSRQRID9hgPise9xz95zqJEcMbEH4DlBGNUuhL/oNKsmMNt8p955ylRNxSp7Vv 5T+Uw/VjO8DxcSVEzGI3DrnkIOBT/blfPuQcJAao7CZvHHXdsGThqqzHwWkyrI1/9VxJ tPlXU/xvfXYfJtg8O8CCi8GkGK6oaX5UXu8ferJQ19JeQ4zTrh7X+MhS6mnXInNlMSnK X4Cwf2QdCYmGLOx2UmOT60hzLyM+g8hBMpk/HwyfbSlTPk+CA15+/w1TaH1OCkOVIfDz NGPjQFtiprUsMlTolpFFtrIgW5ebuWkw2SmoVAoyOvxfOc2V/LmN6dNLjsFfxRdUlJ0j UKBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iZ2ctJAP; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk9-20020a17090b4a0900b002508259bbbbsi1986184pjb.125.2023.05.16.07.48.06; Tue, 16 May 2023 07:48:18 -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=@kernel.org header.s=k20201202 header.b=iZ2ctJAP; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233980AbjEPOm4 (ORCPT + 99 others); Tue, 16 May 2023 10:42:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbjEPOmx (ORCPT ); Tue, 16 May 2023 10:42:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91F3B2738; Tue, 16 May 2023 07:42:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2F23762FB5; Tue, 16 May 2023 14:42:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 712C2C433EF; Tue, 16 May 2023 14:42:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684248171; bh=HN7cB36mHJDr+coVuUiXg1w8lrdjqdRHhxGR7d6sEJ8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iZ2ctJAP1LQY+anh1SdRlopJRSkOyxtbGd1UVXLaaavt0OPmxn8ywTWx/g0SAPctR LQnJIjURUF/XoA6jcIokWYljB3eH6Uz62xreUUfKI/tG2X4uBl+uGsX7z8Z9DeQdPF 43YX1WEcYI8r9BMVSBSluw+GVgKEFXE1o2HosMO4dJNnyPn2AFS6unOOEENv9+4aDh zEqo8AJrdhUYqSz59uZYPRNsvh9nd0VhSn7aknURCLpSonSJtMJj1vM0wr880iXmzl aSMy9/420LwjmjFd7Pcg0Wg2sASy72dllh7adGy5kZxueWUXDMvIM2gJ8KT7ZTgEyV 0XOHN2cFxA1kA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pyvt5-0000jm-K6; Tue, 16 May 2023 16:42:51 +0200 Date: Tue, 16 May 2023 16:42:51 +0200 From: Johan Hovold To: Krishna Kurapati PSSNV Cc: Thinh Nguyen , Greg Kroah-Hartman , Philipp Zabel , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Felipe Balbi , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, quic_pkondeti@quicinc.com, quic_ppratap@quicinc.com, quic_wcheng@quicinc.com, quic_jackp@quicinc.com, quic_harshq@quicinc.com, ahalaney@redhat.com Subject: Re: [PATCH v8 7/9] arm64: dts: qcom: sc8280xp: Add multiport controller node for SC8280 Message-ID: References: <20230514054917.21318-1-quic_kriskura@quicinc.com> <20230514054917.21318-8-quic_kriskura@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Tue, May 16, 2023 at 07:54:00PM +0530, Krishna Kurapati PSSNV wrote: > > > On 5/16/2023 4:24 PM, Johan Hovold wrote: > > On Mon, May 15, 2023 at 09:02:13PM +0530, Krishna Kurapati PSSNV wrote: > >> On 5/15/2023 7:56 PM, Johan Hovold wrote: > >>> On Sun, May 14, 2023 at 11:19:15AM +0530, Krishna Kurapati wrote: > > > >>>> @@ -3133,6 +3133,72 @@ usb_1_role_switch: endpoint { > >>>> }; > >>>> }; > >>>> > >>>> + usb_2: usb@a4f8800 { > >>> > >>> As I believe someone already pointed out, this node is not in sort order > >>> (i.e. it should go before usb@a6f8800). > > > >> I missed that message, but since I named it usb_2, so I placed it in > >> order after usb_1. Hope that is fine !! > > > > No, the nodes should be sorted by unit address so you need to move it. > > > > Sure, in that case will put it in between usb_0 and usb_1 nodes. No, it goes before usb_0 on sc8280xp. usb_2: usb@a4f8800 { usb_0: usb@a6f8800 { usb_1: usb@a8f8800 { > >>>> + interrupts-extended = <&pdc 127 IRQ_TYPE_EDGE_RISING>, > >>>> + <&pdc 126 IRQ_TYPE_EDGE_RISING>, > >>>> + <&pdc 16 IRQ_TYPE_LEVEL_HIGH>, > >>>> + <&intc GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>, > >>>> + <&intc GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>, > >>>> + <&intc GIC_SPI 857 IRQ_TYPE_LEVEL_HIGH>, > >>>> + <&intc GIC_SPI 856 IRQ_TYPE_LEVEL_HIGH>; > >>>> + > >>>> + interrupt-names = "dp_hs_phy_irq", > >>>> + "dm_hs_phy_irq", > >>>> + "ss_phy_irq", > >>>> + "pwr_event_1", > >>>> + "pwr_event_2", > >>>> + "pwr_event_3", > >>>> + "pwr_event_4"; > > > >>>> + interconnect-names = "usb-ddr", "apps-usb"; > >>> > >>> Looks like 'wakeup-source' is missing here too. > >>> > >> > >> I believe this property was added to enable wakeup from system suspend > >> in host mode. I didn't add this property as currently I don't need to > >> support wakeup. If any requirement comes in future, then I might need to > >> add dp/dm interrupts (if any) for other ports as well and then need to > >> change driver code to enable/disable them on suspend/resume. > > > > If there are dp/dm/ss interrupts per ports then those need to be defined > > in the binding and devicetree from the start. > > > > Similar for 'wakeup-source' which indicates that the controller *can* be > > used to wakeup the system from suspend (which those pdc interrupts > > indicates). > > > > Remember that the devicetree is supposed to describe the hardware, and > > which features are currently supported in some version of software is > > mostly irrelevant. > Can I take this up as a separate series (Wakeup support for multiport) > once this series is merged. If I am adding interrupts for other ports, I > can add driver code to handle those interrupts as well. Nope. You can possibly add driver support later, but the binding and dtsi need to be correct from the start (and it may be easier to do it all at once). Johan