From patchwork Tue Feb 23 15:50:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= X-Patchwork-Id: 12100509 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7382BC433E0 for ; Tue, 23 Feb 2021 15:51:34 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 19C8464E20 for ; Tue, 23 Feb 2021 15:51:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 19C8464E20 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=h48y8aQTR73X00SCNkNLdp+mgoRxrkOFmNXTfdF4fAI=; b=AA9lvVlupsrQpSLfham38pV1R x91qFRyZgh3ZIQOjNqboX9d6hPf7Qzeeq7/lJgzqz4qTfTfvV+aoaLRBUPzwPZEItClaDUJlIqEqk 5pzAuolWGq+de0/C4zgU92lzvXnz/jy+aK4kin51jrxNXYW6vaefJPzuvvlrRgvsBeAKbsj3dxqPs +Q7zV3rLwZGqIi5fCjsRkEpUbIo+aL4qOWpjhf2RZBuSGKRqcIIUlHpJbk8+3qfwf4dJTGvDSRYAy fWnFDS/g8WPNKBycCQSUugX/svrVIpat48LneS9hIU5yQGRp45WQCke6aE9VL/UHovBVUVc+JYBcR zlh4szOMQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lEZxG-0004mq-Ce; Tue, 23 Feb 2021 15:50:30 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lEZx0-0004hJ-N7 for linux-arm-kernel@lists.infradead.org; Tue, 23 Feb 2021 15:50:17 +0000 Received: by mail-wm1-x333.google.com with SMTP id l13so2888738wmg.5 for ; Tue, 23 Feb 2021 07:50:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eQwe9NJal+9xVku41hj0jNRXaZ5etqUoeLkfgTJjhEE=; b=k9s0F1WdPXhOc6rInvcXG1IfKqZ1aerGl43gEGEk5apTwif5AKr+DWB3P4dc3Q+bZl r0ODdjWLkd2GmC+U2yaUltCW2oCEiBcCRMW9a+0d27T9R/PoShHvFBBt3c7bLaiMN36J l6NITLjIEUyEAldgvpbrC5yKJ7UcT1PKjo7SmjhOVqDzRR4DLoj1ZJq0v6sbbRln9mFS 2T+M6g4pOu71prEVTKJVSYvjB3gp5sbEy+xAwwacJeRKIQ0iF9jyL4s2T33vq55FBX16 amWb8FBPZSAKO0cJaHLrGig/7dajuAM7ae978VDo2Xj7Dx2FNfJ3oOeefsQEnQHeegA1 Bulw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eQwe9NJal+9xVku41hj0jNRXaZ5etqUoeLkfgTJjhEE=; b=NsY6DJ6cdOFC0fw/TckhIAIfTgmai6mFNeh2WWd4Cv+aBEpbrxnuCl1W2dgtU/cy2P qxV4TXVmy+2RoAom+ndkRKAwt9tyJkGGCskc9PPwqyrlCQEXggK5lb4Esa80jbs1sUlk oPQtSR2KKAeMliUZ1+OIFBth1BoerHNccWiLBlW9mFsoOCKfHAaCPSWvlpVxlbd2Q/Rc hDJbIP+pn7tbCgLVK2kXbIdCCPVJ++9bnQxn+lKLnvuDbo2FGoLP513GFD4cHDDiHwtn npOaiUOlpbdmL+LqH17wgCVe/oEkW8r+Li4sACzkifEzNvG00GxScmIE5MO8MZ/majqJ +M9g== X-Gm-Message-State: AOAM5318SKZvYSDpgl8oZN4vLNDghVeYe+nTyDUgrLm8tixrSX6xZOSK KCbD7sp131BCe5wxakROUUg= X-Google-Smtp-Source: ABdhPJwJuLRCrJYSWXYea/XMr57BFa8YkfoPAnCwVgavZ+Kir/O1G9q1OlnbBvOxVICSUe+aTcNFnA== X-Received: by 2002:a1c:1b4d:: with SMTP id b74mr10310085wmb.31.1614095410680; Tue, 23 Feb 2021 07:50:10 -0800 (PST) Received: from skynet.lan (170.red-88-1-105.dynamicip.rima-tde.net. [88.1.105.170]) by smtp.gmail.com with ESMTPSA id t23sm3209201wmn.13.2021.02.23.07.50.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Feb 2021 07:50:10 -0800 (PST) From: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= To: f.fainelli@gmail.com, jonas.gorski@gmail.com, Greg Kroah-Hartman , Rob Herring , Alan Stern , Tony Prisk , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] usb: host: ehci-platform: add ignore-oc DT support Date: Tue, 23 Feb 2021 16:50:05 +0100 Message-Id: <20210223155005.21712-3-noltari@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210223155005.21712-1-noltari@gmail.com> References: <20210223155005.21712-1-noltari@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210223_105014_853631_C30CFC59 X-CRM114-Status: GOOD ( 13.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Reported-by: kernel test robot Reported-by: kernel test robot --- 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..f8e58372f7fe 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, "ignore-oc")) + ehci->ignore_oc = 1; + if (of_property_read_bool(dev->dev.of_node, "needs-reset-on-resume")) priv->reset_on_resume = true;