Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3635123ybl; Mon, 27 Jan 2020 07:36:27 -0800 (PST) X-Google-Smtp-Source: APXvYqzzNbNUml9j9mlR/AJf547volsX0JC20XYyvnNkUzyfM2WUQV7r1f4R4ktzMXOCO9+S8kar X-Received: by 2002:aca:f484:: with SMTP id s126mr7425925oih.48.1580139387221; Mon, 27 Jan 2020 07:36:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580139387; cv=none; d=google.com; s=arc-20160816; b=w7D4POFT3wh8zOzXH1t70aPsTUG2QAUnFw+Vtg+cfHfB+G3IUQp3r5fw37HssTvvk5 NgRozejbvpz9khpOLj8QNTiumYYmBnvjbJr22VuyAYbhFe2sY96XpaHk01Jervkoc/Ig qpUk9wP4PB+0q8ma/uZ5BvoeG6O8SUHWEx8mJ9IVGrQEDmTkBr2xWw40wmBBRu9QbBDl u7vIlPTHuq1qaCKw3Jjry24IGpdJLmc0LMWBqiar/kLthGXWOjDa1q+19Kxh32xHhI6s jHwJe3M1HCgC3GxNZma/nj6acIi8WkIpPp48b0kgkmJ8/qPUlgeN8rNCoqdIcRIWHKzh NY5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=omtnsWBjbVm/NZL/pqX4cwBZTFhWoiBZO939OVp2MOA=; b=z5TA4vabI/atN1ifoY5XtKMziTDwega3Z5qEzT+rBzChN9pq7tzRVnvkMdF5KupiOH TEeFHi671T8OOyXIOcu52hpTBmFCqPe2/BEb22B4qOh6YD8F37ZLmjDmLrDp8yozpJjM Xp8US9DLbm98sEc4yP0GpCLjp2Uv6hPIMDejc8+7GJ4g/xkOYdIKbNjM3dMNSOQd0Pe0 HxH9ZN1xXQM1DAB+XrLNgAP2PoSpeHMP/Rf9l5Ae67Y82kYTRsWbxzEovuyxeMP4vSXz yIYpPDVZdAYNChkFNt9udmV6FeY1IyR+z+wvqeaSwT/x/kZybMHbvl+mXdrZV4LHXXk+ 8HWw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si7034614otq.317.2020.01.27.07.36.13; Mon, 27 Jan 2020 07:36:27 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729538AbgA0PfJ (ORCPT + 99 others); Mon, 27 Jan 2020 10:35:09 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:35290 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729085AbgA0PfI (ORCPT ); Mon, 27 Jan 2020 10:35:08 -0500 Received: by mail-oi1-f193.google.com with SMTP id b18so3077424oie.2; Mon, 27 Jan 2020 07:35:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=omtnsWBjbVm/NZL/pqX4cwBZTFhWoiBZO939OVp2MOA=; b=JlmgtMQp5lo1ph99hEYYeebBX4WCrk4C9Qzl3cHJZoYMMoHGy0kMDrzzLMPt8fDkMT FsqsVGsGRjGCCU/a+txb4LAk64jRGNaM/82B4rXuPBwTKG9lbo65nr1teT+ZqCktQ2/w GLAqLaxkV2C1FOKW7rIYeJGP0xr1YtvD4keRvFPB6MEhQnJf5c24vN2BWFv6T09o8EL9 cgxilNdqE+ApzW7SucgtGGBiUNLzNwaUHw8NSrRk3syzNfiITgpebaTedabV6xks/j8L 9gA5TbHPxMwuE/UURlf2CxQg0xfQUs/UAQGvnE8RsegBA2icPAdlQ8YPy4xznM12Cuv6 AIWQ== X-Gm-Message-State: APjAAAXR+JPoxmKBTeuA2OyAzfIWtVi78Zs8UZeZKlkfmHzj5UP5ad/Y oqpL0bwX025ufsJ7ADj0kQ== X-Received: by 2002:aca:e146:: with SMTP id y67mr7414091oig.93.1580139307777; Mon, 27 Jan 2020 07:35:07 -0800 (PST) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id l1sm4872297oic.22.2020.01.27.07.35.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jan 2020 07:35:06 -0800 (PST) Received: (nullmailer pid 29568 invoked by uid 1000); Mon, 27 Jan 2020 15:35:06 -0000 Date: Mon, 27 Jan 2020 09:35:06 -0600 From: Rob Herring To: Mans Rullgard Cc: Greg Kroah-Hartman , Mark Rutland , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RESEND][PATCH 1/2] dt-bindings: usb: add non-removable-ports hub property Message-ID: <20200127153506.GA4589@bogus> References: <20200124152504.23411-1-mans@mansr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200124152504.23411-1-mans@mansr.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 24, 2020 at 03:25:03PM +0000, Mans Rullgard wrote: > Add a non-removable-ports property that lists the hardwired downstream > ports of a hub. Although hubs can provide this information, they are > not always configured correctly. An alternate means of indicating this > for built-in USB devices is thus useful. > > Signed-off-by: Mans Rullgard I reviewed this already, but since you didn't add my reviewed-by, I'm looking at it again and having 2nd thoughts. > --- > Documentation/devicetree/bindings/usb/usb-device.txt | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/usb/usb-device.txt b/Documentation/devicetree/bindings/usb/usb-device.txt > index 036be172b1ae..92d863cc96b6 100644 > --- a/Documentation/devicetree/bindings/usb/usb-device.txt > +++ b/Documentation/devicetree/bindings/usb/usb-device.txt > @@ -66,6 +66,10 @@ Required properties for host-controller nodes with device nodes: > - #size-cells: shall be 0 > > > +Optional properties for hub and host-controller nodes: > +- non-removable-ports: list of hardwired downstream ports If you have a hardwired device and need to know that, doesn't that imply there's some other stuff you need to describe beyond what a standard USB device has. Such as a power supply that's not Vbus from the hub. At a minimum, I think this should be a per port property. Though really, I think this should just be implied by describing the device in DT. I'm not sure if there's a case for hotpluggable devices described in DT. Maybe with overlays. Rob