Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3717764ybl; Mon, 27 Jan 2020 09:06:34 -0800 (PST) X-Google-Smtp-Source: APXvYqzadrsYirtau50q+qZv7GcQ1Rs+bAKAyVb/zP7EzZetHlTAc1ygpGfD+KjMOeuJoZducFqn X-Received: by 2002:a9d:394:: with SMTP id f20mr13145466otf.148.1580144794830; Mon, 27 Jan 2020 09:06:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580144794; cv=none; d=google.com; s=arc-20160816; b=RrGHej1Imn9AEi2rRPMZ0BIYBzU3d+k/6RB8q12DCGKUlGRlCml1G4PSw9+vhhSUo8 68pMes10gY2FuO2j48YQdPWfDeCS9DQ7D1L8ATWhshcWkdJVnFjSukzirZ4J7WVnTGX9 3Ktaf8WrNSUGyHjQIVHq++6tG5Vgrq4BdAkRewQH8SYF30cMC5eoy+O3NT48ES+XQNic X9VgatQvQlgPBBRi5v9OK5bZms6dDhUQSUoQkRDGD2lU1uAlN2Y5UeFg7jZy+W6JCic+ NpKPymBtqfo3PVY4yXIPaY+vd8vhSJS7QbukKdlNOB3+INwNv7DqHMsc4K/xeILi6Ir6 Pj+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=YNK17saVez2IUqGgSRg72ByGSJNFPjVkxVVgxjM1DKk=; b=MVGXPfcaxZz0i03Tv2js2BHJHlXkArZ2CW8c1tPjUJfuLiKZ9WkT/jLHeexPsgayRW nJjc6+hXHKZ2A2TQ/syUthbqn8jdUiKpz6Vrnwbbsk6HxjebgaegQc7vJs3xVIKWsJK0 LS0f3ZOWMCqcOaj7UVCMHIji5OotZA9t3szw5dQTgNd1AQuqahzNtXquYbj4nn7YB0cq 6WfsxRBwIvLOwt4KTqgdE6TO6rQ5gbyuqUtT6vhFHzSFmS0ua295OhpO+njGb4dLLIkP 6ZWTFWpmXivbBv8Xd4/OoU0jo4jPTCVr7jxfayjBFpN6v51qrOsrIZVMDXl/dDlWtSRe pNEA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u23si3537915otj.242.2020.01.27.09.06.18; Mon, 27 Jan 2020 09:06:34 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726026AbgA0RDh convert rfc822-to-8bit (ORCPT + 99 others); Mon, 27 Jan 2020 12:03:37 -0500 Received: from unicorn.mansr.com ([81.2.72.234]:34980 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725845AbgA0RDf (ORCPT ); Mon, 27 Jan 2020 12:03:35 -0500 X-Greylist: delayed 437 seconds by postgrey-1.27 at vger.kernel.org; Mon, 27 Jan 2020 12:03:34 EST Received: by unicorn.mansr.com (Postfix, from userid 51770) id EB3581B0D9; Mon, 27 Jan 2020 16:56:15 +0000 (GMT) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Rob Herring 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 References: <20200124152504.23411-1-mans@mansr.com> <20200127153506.GA4589@bogus> Date: Mon, 27 Jan 2020 16:56:15 +0000 In-Reply-To: <20200127153506.GA4589@bogus> (Rob Herring's message of "Mon, 27 Jan 2020 09:35:06 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rob Herring writes: > 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. I suppose there could be, but there isn't in my actual situation. > At a minimum, I think this should be a per port property. That's what I suggested first. Greg told me to do it like this instead. > 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. That's also an option. Greg, what do you think? -- M?ns Rullg?rd