From patchwork Tue Feb 19 18:22:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10820563 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7EF1D1390 for ; Tue, 19 Feb 2019 18:23:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7539D2D256 for ; Tue, 19 Feb 2019 18:23:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 675E72D273; Tue, 19 Feb 2019 18:23:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22B362D256 for ; Tue, 19 Feb 2019 18:23:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726110AbfBSSXg (ORCPT ); Tue, 19 Feb 2019 13:23:36 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:45701 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbfBSSXf (ORCPT ); Tue, 19 Feb 2019 13:23:35 -0500 Received: from localhost.localdomain ([37.4.249.100]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N4i3j-1h4nHh3k19-011lyv; Tue, 19 Feb 2019 19:23:23 +0100 From: Stefan Wahren To: Minas Harutyunyan , Greg Kroah-Hartman Cc: Felipe Balbi , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stefan Wahren Subject: [PATCH] usb: dwc2: suppress confusing warnings on BCM2835 Date: Tue, 19 Feb 2019 19:22:54 +0100 Message-Id: <1550600574-3674-1-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 X-Provags-ID: V03:K1:Wmsw4IzkjEm7D/4UJqHWMdmF2Qlg4io0U3aDsbZoSuTi1i6W05E heP0tXqCbeseip02VLOhxmJHvZxuecKQlcbXCOIcx83TxVMGuwXfFK5zErwoThgZRSuMfi0 0kEqwypisjClqRHak0YzsTHMUBIAbdnvVLkz2v9GjHsXnSQy7pqvlWzZ8i4XcbzPCwfWaJo K3NDjGrM1MzeW5fcVzDqg== X-UI-Out-Filterresults: notjunk:1;V03:K0:yMbY9C20dEA=:HNxH+Ayk3K7xKBvB96HL8N dObXLzyPpYgo3Z30T4y2QUYaKe/jHztvrPrhZvNKmAstXaPTaqOeaWC2/Di/sHvQOxEBcKNk0 BYnB/joA6xlrzwlq2evxt3YiusOHu8ZWS0LZLq6RRX7dAmA0AaoCXt83Gxe8VSBZYstglmn6o X9bSeO+bwOgIZIwTKJG68eWaiQkNOEF5DF5UJnzsEqhjzY48LiFcs4xlXa2o+UWeLI1ynXTOi uDn6b7GqRvZRej/YSfI32uUGJW7wNrn2JSZPHlWVX9dYZOb6THUa46Pxrdp5npVwIomJ5vlky 6ix8R2YJsKTjI8iT5CxMydrLyE/mi740nw6TSUwi7UgeV5nouZlXRHBtMYhcr8FL/oSjzFBEc bGjlaq8lXVUzJb/H8uFAl0u2wOuZtLP/jrDOaSErTiTpaVCCQD+NO5apKXikLg+ZQFQAmH8z6 00a6teyn6ecN0F8ud8pTWCE3yDQ/cLAVEuPDHkwHiTx2vauOvIQi1EM7EZJjcq8o5evvYkdyg exVTRSKJiroiFFNJ3gcP7r+qNJ1fxJ8Faq2RAxhs/3gcI0RhrNJ7TzYwUBSgTitctxhjKv1RM betu/Z3diSNvRw9PhJJqmMkGdcnu8ut9ROhEZGkoUa553HYHpO1rB+OKAWZb9mZo1cPdxfmyG p500CvwN7Sld7MySYFkSme/OLxk/ljt9flMyhGWtT/+RrlPDD6oluf31HYSloqEubhakXp3x1 Sf+ZBDVaCpE0b6Gwbr96nxU2tO9zneL3Yr/l1bBqErjYmhzFHFjYxlfvHPs= Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP According to the BCM2835 datasheet the used Synopsys IP isn't a LPM-capable core. So disable these features and suppress these confusing warnings: dwc2 3f980000.usb: dwc2_check_params: Invalid parameter lpm=1 dwc2 3f980000.usb: dwc2_check_params: Invalid parameter lpm_clock_gating=1 dwc2 3f980000.usb: dwc2_check_params: Invalid parameter besl=1 dwc2 3f980000.usb: dwc2_check_params: Invalid parameter hird_threshold_en=1 Signed-off-by: Stefan Wahren Tested-by: Stefan Wahren --- drivers/usb/dwc2/params.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c index 24ff5f2..a158abb 100644 --- a/drivers/usb/dwc2/params.c +++ b/drivers/usb/dwc2/params.c @@ -47,6 +47,10 @@ static void dwc2_set_bcm_params(struct dwc2_hsotg *hsotg) p->max_transfer_size = 65535; p->max_packet_count = 511; p->ahbcfg = 0x10; + p->lpm = false; + p->lpm_clock_gating = false; + p->besl = false; + p->hird_threshold_en = false; } static void dwc2_set_his_params(struct dwc2_hsotg *hsotg)