Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2522541pxb; Tue, 23 Feb 2021 08:58:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJygZVw/w44SFrqSsZWSIugAO567FpDiTEGGWHDk8g5rShGaVSWMRs1bvj8q4Zuy3T1s1DwG X-Received: by 2002:aa7:de8f:: with SMTP id j15mr29521451edv.268.1614099531460; Tue, 23 Feb 2021 08:58:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614099531; cv=none; d=google.com; s=arc-20160816; b=BFmifTncH0pyytKUNu+1VIZAGvO7jhBUttTtccX1GDYa+r7WjjgWKoSLj3LB2KCCqR WJnWmzhh0A5+hIb5vFqVQhZhSqKRt+NylaegK2MM2ed01xdUxcseNI0gR2TpAfQuv9PY E9fqfNAPEtnGLJOQXr9iAfJEbEM+ea9BoRF9VvLZn5ZtQAMJGz904/WMaeU7jrlHeU1D S8ty7DXbNIz0zdJml0qs1QXnqX/Y09GliblSIzOaGqD5VAPy0FIuUX6xwqr7lc/OBS9s nLFTxJC/wRcgLvjF3uCKLxHOnHRGTaHnwhXSiW+DnkKVH5FVpMzy04uECnrBspnzlO6n vjiA== 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=SVv3Nvcdzc3HDF3yFQQMPmU6J9rdhZ2a6M6tl4Fp82E=; b=NapJHSCbs4TMsNaTYzKqRt0iV91gQ8rCGZCirom83zxxni9GbRDiUfeVjUDnz/lVhl EiVz89sxfO0hhdemAPB7NF+cln5KuzjpNmig8nLiFBez7M+CrR1uUoPOlCodvaA/6N1n WqYVmHMpfqrm9unxYWsofCFArx9COjD2teh5V2ddJKjLMJxu0vqycdh/jqTRAfbdZAYT X1aIUySRHZgfr5t+8xPXXa8b+MBhQUoGU73XJUCWVEE2Fdv56gw8uOWP6SLh/VKoVQKB v9bDZ/TlMF1zI+d3olaZLJhZor7jdxbnS6MgYOFfB//AA041F+BQEQ3n6qlIkwOnptno KBWw== 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 a4si11790846edx.68.2021.02.23.08.58.26; Tue, 23 Feb 2021 08:58:51 -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 S233585AbhBWQ4N (ORCPT + 99 others); Tue, 23 Feb 2021 11:56:13 -0500 Received: from netrider.rowland.org ([192.131.102.5]:60701 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S233635AbhBWQ4E (ORCPT ); Tue, 23 Feb 2021 11:56:04 -0500 Received: (qmail 1267268 invoked by uid 1000); 23 Feb 2021 11:55:21 -0500 Date: Tue, 23 Feb 2021 11:55:21 -0500 From: Alan Stern To: =?iso-8859-1?Q?=C1lvaro_Fern=E1ndez?= Rojas Cc: f.fainelli@gmail.com, jonas.gorski@gmail.com, Greg Kroah-Hartman , Rob Herring , Tony Prisk , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 2/2] usb: host: ehci-platform: add ignore_oc DT support Message-ID: <20210223165521.GE1261797@rowland.harvard.edu> References: <20210223155005.21712-1-noltari@gmail.com> <20210223161644.6095-1-noltari@gmail.com> <20210223161644.6095-3-noltari@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210223161644.6095-3-noltari@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:16:44PM +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 > --- > v2: change flag name and improve documentation as suggested by Alan Stern. > > drivers/usb/host/ehci-platform.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c > index a48dd3fac153..2c587e31d010 100644 > --- a/drivers/usb/host/ehci-platform.c > +++ b/drivers/usb/host/ehci-platform.c > @@ -286,6 +286,9 @@ static int ehci_platform_probe(struct platform_device *dev) > if (of_property_read_bool(dev->dev.of_node, "big-endian")) > ehci->big_endian_mmio = ehci->big_endian_desc = 1; > > + if (of_property_read_bool(dev->dev.of_node, "spurious-oc")) > + ehci->ignore_oc = 1; > + > if (of_property_read_bool(dev->dev.of_node, > "needs-reset-on-resume")) > priv->reset_on_resume = true; Acked-by: Alan Stern