Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp748031img; Thu, 28 Feb 2019 07:16:17 -0800 (PST) X-Google-Smtp-Source: AHgI3IagX0PVgGtZkZBWkmH1LYEVqiTNdzRxuv/WG7i1wg5SZbyupc26viPKk8QooOXyKw5mhaht X-Received: by 2002:a17:902:b483:: with SMTP id y3mr8507553plr.114.1551366977675; Thu, 28 Feb 2019 07:16:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551366977; cv=none; d=google.com; s=arc-20160816; b=J4LYgwaiAfpI8Kh5uT0zuIKT7T4f8rHwnSiijjfcIy9IJNiDDREhp3CoitonBJvUCo EyAgD0h1V6qGv5Wha7swrDh+Ij0jIw4+8rwgSdR5W/giW7DBH/SqvcEAlM33K1S2OnVP wia3CNvbaJehX61youWvEszoWaybajcMJuO4KEj9+L49+bWqyLW3M3IG7cZXSdjrc3pe 3BPmLiUmQnxGX+qQGkpWeyDTNVUtfv4lWit6EO56Gt/XtFHFK2yq1TMtKcbt4NoNfMI7 85xemjjN1cWbWsB7W3nyNKAm3ZjvftzLMKcu8THHSkHrL+uF9jAGiAmkI+hG/PtRr9tn MaHQ== 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:dkim-signature; bh=tTXiJi9xpSr5l+AZgP9Q7s4Uu4nS+q7jv6dK3A+jPYU=; b=TlNZSiECvCiBpgwX3Au1ni7TiS9RV8stxtEQsPd4egDm6RVPKb0KN1F2W1O/d8ds2L nDjmnA2woBy/IEOiEjyzg9Kq6zRIlzlPIKUySP4c3alLHBCaxQQ/bXggTtLRHo31ShGz RPmGvEEbZExKf7G5fM2x1orHgvgbUI46/AuFzIAXOwpUKprtUE2I9TVYDB7BwME9+kq/ L9YW9MbS2QMb9R8E/QXIEp2SZQD0k8IANfJAXfKNiTo+pClqZrxTEy1cg95TkjQfHU+0 6/xPGuosyQvTIaLUDubQsrxegRrYRY51pIbvs2iqKTyzL2doa2/vNTgP4WOKlLxrJDJ4 tBbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pPsDmY2t; 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 b2si13877661pfi.286.2019.02.28.07.16.02; Thu, 28 Feb 2019 07:16:17 -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; dkim=pass header.i=@kernel.org header.s=default header.b=pPsDmY2t; 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 S2388511AbfB1PNm (ORCPT + 99 others); Thu, 28 Feb 2019 10:13:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:47628 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388470AbfB1PNd (ORCPT ); Thu, 28 Feb 2019 10:13:33 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 571C0218FC; Thu, 28 Feb 2019 15:13:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551366812; bh=byAg77FHN3WI5S1frV8IHsE1cuzxw/EeGiVs4Ma0yCI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pPsDmY2tjjxJvBQhNDa7rFUeSrlSVV0123nVIbojMmrb2xKfaL5B/gTZEeCd91L16 0/Gh6aJlJd8zHMytPC2Mql8KA0W0aGudXGMVeQcrJ/8IJPJypzemn+TNXSlysayW4H uJc0gh0vd5TVpQS02BwX/8fc2cE3FbvKr8hPGIY8= Date: Thu, 28 Feb 2019 16:13:30 +0100 From: Greg Kroah-Hartman To: Mans Rullgard Cc: Rob Herring , Mark Rutland , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC][PATCH] dt-bindings: usb: add non-removable device property Message-ID: <20190228151330.GA1360@kroah.com> References: <20190228143344.16312-1-mans@mansr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190228143344.16312-1-mans@mansr.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 28, 2019 at 02:33:44PM +0000, Mans Rullgard wrote: > Add a boolean property indicating that a device is hardwired to the > upstream port. 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 have a situation where userspace would like to know which USB devices > are built-in, but the on-board hub doesn't have the right setting. > Also, the hub itself can't be indicated as fixed in any other way that > I'm aware of. Then that's a firmware bug, right? We have a way for firmware to export this to the USB core, why not use that? Your on-board hub should get a firmware update with this information, let's not try to create yet-another-way to define this type of information please. > In a way, adding this property seems a bit silly since dt can only > sensibly be used for hardwired devices in the first place. Thus the > mere presence of a dt node could be taken to indicate the same thing. > On the other hand, it's conceivable that someone might dynamically > generate a devicetree based on what happens to be connected on boot or > something. For that reason, and explicit property seems safer. > --- > Documentation/devicetree/bindings/usb/usb-device.txt | 8 ++++++++ > 1 file changed, 8 insertions(+) Can you show some code actually using this? Again, this should "just work" for USB today unless your platform is really broken (and if it is, go complain to the vendor...) thanks, greg k-h