Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2663134pxb; Tue, 23 Feb 2021 12:19:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/SUfV/yzyRMrOXBejD9X8WNCvvwJ4ZDeCP9qqmuiWnaH/1yU4hdJcI7N22GM9F3Ap3NDl X-Received: by 2002:a17:907:7672:: with SMTP id kk18mr13633136ejc.514.1614111571002; Tue, 23 Feb 2021 12:19:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614111570; cv=none; d=google.com; s=arc-20160816; b=xKct+1RjsftCF/pkn9YH6MgiekoskqtvbQEBpgzHQriRuOrk/n+B8QwrIuw4JAhx7Y VOKGS9pufjGZ+H5CN3yDoYfgG4pJs7bMQT8SnRjO1rjNooxkzA76sVEqiWviWB8sUDAw 1+baFuxbgztKI6iz80DT2sCX7cc9hmrA1MFdcGzF+GrpczYjdEvI7xU34IfYgFRawjBO cpNmd2TC3v4f+wrPA78TsFy0/JnB9DH8RIxSLgPgzKRGxNdFhR8qxZWFeQ6AcFVT/UOh Ss8LJ97afFVAUsCPk9oSm79r+GDI9f8orMun73E1jeZGIvYgdNCgnRe75wmHkundCZb3 pN8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=HCKdohuuB8hYGIpFS5DvfM8DbZAJJvU+eALXlKg6h2g=; b=aYNwcby6gbgGlgi54lKJ2rTSzdw/kd5eYBAbF4216tsY4oHhr12S3XYHXFnguDK46D 7YNXKDdz8lUPnEUd1fFReGqTomhoMaplosh+1DzI3VWOU+sdtFfJvzaf291/2vOtVlqj CpaJDTRY4OGkPLmr+k7hHq6G4+7VAnan5LmSmZApIrPQ35Bg/Hqjhe/KWmI6OGPM/i3q DrCFBMMKt/0ktJb/DQ0MUBVIAmKrbq5ewlEJ6Z7uGzLEfN/WWOLVuPdT7Qkjn4tQ+Ie0 ReMaHJ5wf26f5GuF8/xfUX74F9eCg+u2pVW9aSpmvaJCCPfgw/LV8lQChOxcQ8jFraj+ EyBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f27si16667816ejf.555.2021.02.23.12.19.02; Tue, 23 Feb 2021 12:19:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233454AbhBWQKW (ORCPT + 99 others); Tue, 23 Feb 2021 11:10:22 -0500 Received: from netrider.rowland.org ([192.131.102.5]:53271 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S233296AbhBWQKO (ORCPT ); Tue, 23 Feb 2021 11:10:14 -0500 Received: (qmail 1264834 invoked by uid 1000); 23 Feb 2021 11:09:32 -0500 Date: Tue, 23 Feb 2021 11:09:32 -0500 From: Alan Stern To: =?iso-8859-1?Q?=C1lvaro_Fern=E1ndez?= Rojas Cc: Florian Fainelli , Jonas Gorski , Greg Kroah-Hartman , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/2] dt-bindings: usb: generic-ehci: document ignore-oc flag Message-ID: <20210223160932.GD1261797@rowland.harvard.edu> References: <20210223155005.21712-1-noltari@gmail.com> <20210223155005.21712-2-noltari@gmail.com> <20210223155443.GB1261797@rowland.harvard.edu> <54E1894F-C8D8-4E2F-92DF-DC891153BAAB@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <54E1894F-C8D8-4E2F-92DF-DC891153BAAB@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 23, 2021 at 05:04:57PM +0100, ?lvaro Fern?ndez Rojas wrote: > Hi Alan, > > > El 23 feb 2021, a las 16:54, Alan Stern escribi?: > > > > On Tue, Feb 23, 2021 at 04:50:04PM +0100, ?lvaro Fern?ndez Rojas wrote: > >> Over-current reporting isn't supported on some platforms such as bcm63xx. > >> These devices will incorrectly report over-current if this flag isn't properly > >> activated. > >> > >> Signed-off-by: ?lvaro Fern?ndez Rojas > >> --- > >> Documentation/devicetree/bindings/usb/generic-ehci.yaml | 5 +++++ > >> 1 file changed, 5 insertions(+) > >> > >> diff --git a/Documentation/devicetree/bindings/usb/generic-ehci.yaml b/Documentation/devicetree/bindings/usb/generic-ehci.yaml > >> index cf83f2d9afac..294bbf02399e 100644 > >> --- a/Documentation/devicetree/bindings/usb/generic-ehci.yaml > >> +++ b/Documentation/devicetree/bindings/usb/generic-ehci.yaml > >> @@ -117,6 +117,11 @@ properties: > >> Set this flag if EHCI has a Transaction Translator built into > >> the root hub. > >> > >> + ignore-oc: > >> + $ref: /schemas/types.yaml#/definitions/flag > >> + description: > >> + Set this flag for HCDs without over-current reporting support. > > > > This is not a good description of a device property. DT entries are > > supposed to described the hardware, not talk about how to use it. > > Any suggestions on a proper description? > > > > > When you say that the bcm63xx doesn't support over-current reporting, > > what exactly do you mean? Do you mean that sometimes the hardware turns > > on the over-current bit when an over-current isn't actually present? Or > > do you mean something else? > > Yes, the hardware turns on the over-current bit with no over-current present. Okay, in that case the property should be named something like "spurious_oc", and the description should say something like: Set this flag to indicate that the hardware sometimes turns on the OC bit when an over-current isn't actually present. Alan Stern