From patchwork Tue Jul 14 15:18:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 11663097 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C02F1722 for ; Tue, 14 Jul 2020 15:18:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9AEAE22404 for ; Tue, 14 Jul 2020 15:18:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=toradex.com header.i=@toradex.com header.b="pZ31k9Ki" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727975AbgGNPSr (ORCPT ); Tue, 14 Jul 2020 11:18:47 -0400 Received: from mail-eopbgr60113.outbound.protection.outlook.com ([40.107.6.113]:11653 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725890AbgGNPSp (ORCPT ); Tue, 14 Jul 2020 11:18:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FFQAwM0FXiwF0tPqDEQGgRQrADQerglzDePNAdlouSFQmzwq2K6fIzUgNqy4Y55HHe3Pbgcu+L8S5t5x2QQRPgjcWjU8LKnZR1Oeh7R5FdWfNjta0/PhykIa3u3tKzBcELHBrcMPB39uYltCVm2gIVqrPSbqKErD08++0O0GcaUjBwRPCCWKd5wjhWblqq4vT5u4rX76S8/FbNdaxYfQNbmDOuERkMUnDjdnIzTqx3xRzhiGfw4cAvzr7OQWx/w7MZeFRSgridV/1dW0JLsnGeRjbESFXqxDkoCg+xnd1kGUAmPPRai70996jv6kJVgN27AxpnBIRjdlk0EuvIOA6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BChI7i2E2ULDFrKu7M5Fj8dVzUlBDS4yziyfaBaHB/g=; b=GiFNdAkJzyHnRtY0nxoHoJLrjGBx7jNpINY74fz84ebrxf0dL6AgTyLjBONLMnxFypbbQNp0c54DNkbHwKouulRtlHnIH8f6nDPRJL/JdmXDL04gK4ccfg6hKK1rYliFmexSlm4i0sl7DBGDGc5FMqo+62tdgda8zKbRY+l65t/5fQ+B69chpu+NuseKCZ3phyhw0alJVtP7wNygDgRUrBYqatxI46cJER+amDCmtg2GdUFH+WHjzF2ncFgO1EBGfkOBNfmtTgr/xmT1ZDE8sKTlgvCqBSHFRVpcwW26QHks/5RCwXn11B62DXP0RJSMXH81kjAnhu8YakLsN5o2Kg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=toradex.com; dmarc=pass action=none header.from=toradex.com; dkim=pass header.d=toradex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BChI7i2E2ULDFrKu7M5Fj8dVzUlBDS4yziyfaBaHB/g=; b=pZ31k9KiwNwyB1BEZMdWHzlVYXtwUanIUdWUMxkC8qQ8BNF7+b11IQq9arPiYWP4r/1Sirr7RpCZzQ1WKGOPCkFbHEI5cZNrYYDGEqpOtthcUtyXY+TKnh5JuS5cV11ERzi9cYMRGcrxKSHBiNL9hNnN4susImPzEFa82nKgnZU= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=toradex.com; Received: from AM6PR05MB6120.eurprd05.prod.outlook.com (2603:10a6:20b:a8::25) by AM6PR05MB5174.eurprd05.prod.outlook.com (2603:10a6:20b:66::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.24; Tue, 14 Jul 2020 15:18:37 +0000 Received: from AM6PR05MB6120.eurprd05.prod.outlook.com ([fe80::1d81:6a9b:8c26:3b7d]) by AM6PR05MB6120.eurprd05.prod.outlook.com ([fe80::1d81:6a9b:8c26:3b7d%4]) with mapi id 15.20.3174.026; Tue, 14 Jul 2020 15:18:37 +0000 From: Philippe Schenker To: Rob Herring , devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Peter Chen , Shawn Guo Cc: Philippe Schenker , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] dt-bindings: usb: ci-hdrc-usb2: add property disable-runtime-pm Date: Tue, 14 Jul 2020 17:18:20 +0200 Message-Id: <20200714151822.250783-1-philippe.schenker@toradex.com> X-Mailer: git-send-email 2.27.0 X-ClientProxiedBy: GV0P278CA0019.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:28::6) To AM6PR05MB6120.eurprd05.prod.outlook.com (2603:10a6:20b:a8::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from philippe-pc.toradex.int (31.10.206.124) by GV0P278CA0019.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:28::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17 via Frontend Transport; Tue, 14 Jul 2020 15:18:36 +0000 X-Mailer: git-send-email 2.27.0 X-Originating-IP: [31.10.206.124] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bceea4ca-1589-4e6b-0f34-08d828092e74 X-MS-TrafficTypeDiagnostic: AM6PR05MB5174: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HoicR8jOnqhZcvvOgLdUqd/CaonSz+UiRg/seCojW2lTiScRNZISlVEcdSC0nGPfceS0j0jE+duuTagZD7j/Pm2TBu8YCVtaHpLeWhriUt64IXE9CZLH1cSQ9PFmCip0m7DyA7qMTQZtUNEjyFXE2qNs85C2pKSGwslxHbmSp1r0WxQUbwfxGSaY7bTuXhyuYQvkHZNAEufzZ9whbT/B80bOJIKavlDO+yOc0DbY3cBpBDGr8bCdm63i2mVnhab9FNXX7s8z5FhsttbFmeUM4drjnJEPXjTFElvCeA7lX/4H77w38IWm2xyvy+8M+ff+lhP6oW99kdvWd+rqxXaBUb3KlVOmMQ8QM9FLoPoUhzhOtvSjtJJE8YPQpzo+sEEk X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR05MB6120.eurprd05.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(366004)(110136005)(86362001)(4326008)(5660300002)(83380400001)(8676002)(6666004)(1076003)(6506007)(186003)(2906002)(6512007)(26005)(66556008)(6486002)(2616005)(956004)(36756003)(16526019)(66946007)(66476007)(52116002)(498600001)(8936002)(44832011)(54906003)(16060500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: lNTcjaDZlp3OBwb/25eWin0Rf7JZmdp4bWgSOgB5mX94A7l0II0+21VFUgTlQ9FUrrbfusxZICQ3bY10zVaYzFnhNdzCvme1NknpkUNMlWE5qXp1Mz8ARCZxIlxPFNEkQyYkEAyvI05LOxDCLqq6KTuybT13wjpyVFuvOUYjTLyM2cR7xoNdQvMZQar8QR2gbamZi/b9wRK9WaFnYOk4BAYafmo3+O4YiV5QWVpxDz1Wdt+UbSh3kbBDqA3PmvdjcWkAftI1QvDaTx8ZICrQLTEPT9vcWs1/SYftX1Wr6ivb14eQOXAcIoniqtzEeLHyH+O5yVit0vwgKJnAobscscGbmlG9OyIDSQ+GIgGhmQgI+Agr0kf/PU4gJLb3nWxMGN5ycfguGBjTPkvOBVGwOBpNkDiujr76g0MW7O7wLisSPtxLsC+p+tMUGSVAHwtfLoz64nW6g8YWrZxhdpgjxgWE+HQO1s6rFrrQRu+pV+A= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: bceea4ca-1589-4e6b-0f34-08d828092e74 X-MS-Exchange-CrossTenant-AuthSource: AM6PR05MB6120.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2020 15:18:37.4128 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: u1VjModaoCXBkvaAlXumyDTfi4IPaX7ok7Q1PGNMlE0JLimX2Ock/O2SFrNgm0DEl03uNRzMp+32HQMRv0bIhRexGVxIAMZ261tsowPxJVo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB5174 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Chipidea depends on some hardware signals to be there in order for runtime-pm to work well. Add the possibility to disable runtime power management that is necessary for certain boards. Signed-off-by: Philippe Schenker --- Changes in v2: None Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt index 51376cbe5f3d..67a31df13e69 100644 --- a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt +++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt @@ -90,6 +90,7 @@ Optional properties: case, the "idle" state needs to pull down the data and strobe pin and the "active" state needs to pull up the strobe pin. - pinctrl-n: alternate pin modes +- disable-runtime-pm: This disables the runtime power management. i.mx specific properties - fsl,usbmisc: phandler of non-core register device, with one From patchwork Tue Jul 14 15:18:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 11663095 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 75D39722 for ; Tue, 14 Jul 2020 15:18:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 58230223FB for ; Tue, 14 Jul 2020 15:18:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=toradex.com header.i=@toradex.com header.b="XzyHONEW" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726370AbgGNPSn (ORCPT ); Tue, 14 Jul 2020 11:18:43 -0400 Received: from mail-eopbgr60113.outbound.protection.outlook.com ([40.107.6.113]:11653 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725876AbgGNPSm (ORCPT ); Tue, 14 Jul 2020 11:18:42 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aB57KZ2XNPO7HL0FPWWYoB6O6j3AOQlMPbwHpihKOhL+L2G8B5V1pLSXxGJ+8JJTaAigX4w89KFfgmghnXRkfbKMC23RGLid7b781oSTt2mEOMvBXIpe51DUHo+QE/RGcR1UJW8+FPoN273osp7hNCvAjGENhdQ3cf8qrYFqWfj5EblzR2jzCa3IDWASHJ3WvBxYLuZEm/VxVf7BzStOMA/8w1sMialhEJ5FmZ5pIBjOg+/d2HCc3NIjg7mjWrDXzR2OUC1W6a0WvEpPVBN5W7S2DVSeRZvbJwcdUv7QV9jNU2dxyaf+rETgehFbeyfLtkHOiONH/Z3gy1L4Fl3zwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k6jBOO5qxYI/+Pif5uhgIprpRO82xMTxLQpu7lhBUEI=; b=ejzTEGcd6Yyiu0IrrybhxGJE0R4KAFPCjZu8QSMAVNYZIxJTBrF70JShZo3JEHXGdb7kH0ii9VfIRdunGhRjNsaFpplcTrTtwOz3Vw70GK+nN8fFXDnWmKq0/e1OB84J3BPw79fmQ3fBz7TXfj1l49I7ATY+sAjcZ/g7714xOMM2IaY4rorV75RRjMhmAIN+3iC9U5MfQqXCxxFxftk7RuGvpY2xrWmIFXELOZwIj7D+oqhx78lbREsG6GmYii2CQS3mUx8JYvcSz6njpEkegNVwgnQDPOJKMBXDu02DGbHpBs1qqYEK97oQ/jaONHrrmCMHuMaOAzFEKFLfZC/3uw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=toradex.com; dmarc=pass action=none header.from=toradex.com; dkim=pass header.d=toradex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k6jBOO5qxYI/+Pif5uhgIprpRO82xMTxLQpu7lhBUEI=; b=XzyHONEWRRmi2cETKSmMJTRTKsfGf4DK+H6ePRN845x2o6t3pyTbJM8eyDtZtCoFtCz+cGJ2Yo/OHI/fSozNylYRUIt+R/UAkXuqyjARyBjKp1qglXwckGLGL2uRsFf8OSCCxS1zHjgwKMXe7eLlWm99PTFnmfRiZW3qm2RZZSw= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=toradex.com; Received: from AM6PR05MB6120.eurprd05.prod.outlook.com (2603:10a6:20b:a8::25) by AM6PR05MB5174.eurprd05.prod.outlook.com (2603:10a6:20b:66::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.24; Tue, 14 Jul 2020 15:18:38 +0000 Received: from AM6PR05MB6120.eurprd05.prod.outlook.com ([fe80::1d81:6a9b:8c26:3b7d]) by AM6PR05MB6120.eurprd05.prod.outlook.com ([fe80::1d81:6a9b:8c26:3b7d%4]) with mapi id 15.20.3174.026; Tue, 14 Jul 2020 15:18:38 +0000 From: Philippe Schenker To: Rob Herring , devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Peter Chen , Shawn Guo Cc: Philippe Schenker , Fabio Estevam , Greg Kroah-Hartman , NXP Linux Team , Pengutronix Kernel Team , Sascha Hauer , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] usb: chipidea: imx: support disabling runtime-pm Date: Tue, 14 Jul 2020 17:18:21 +0200 Message-Id: <20200714151822.250783-2-philippe.schenker@toradex.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200714151822.250783-1-philippe.schenker@toradex.com> References: <20200714151822.250783-1-philippe.schenker@toradex.com> X-ClientProxiedBy: GV0P278CA0019.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:28::6) To AM6PR05MB6120.eurprd05.prod.outlook.com (2603:10a6:20b:a8::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from philippe-pc.toradex.int (31.10.206.124) by GV0P278CA0019.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:28::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17 via Frontend Transport; Tue, 14 Jul 2020 15:18:37 +0000 X-Mailer: git-send-email 2.27.0 X-Originating-IP: [31.10.206.124] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 53f761c8-de3e-42d2-1f50-08d828092f01 X-MS-TrafficTypeDiagnostic: AM6PR05MB5174: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1091; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: czZnlq5kVcJH0ECYRdgaP5qTCICdbXgB4atJBjQevkOoLv9+cUCeFnnUlqyauta2kxigKGQCYLCwEHciy/FzGIkzHKcBbmst1apB/5Mb3yaUaS1891rfK9ELDj4iZucKPwCjZZLmFvKQYJDd0LuJh3OcFh+pzOv3CH/1dCTSCbNs03YWhfqKQg0iZlci5jx+sbtBfOw4DXOYR9pzUQHebbf/zE4Ail8eAa0oGUZNeGrkcOgOozH/czVe/KoI0Dk0rBiUDEmZjkPePTlLJnCkAdmnvUFapuW01Ox5lWkFrcAyS00g5tMK1H1ctSYkR4hNYYSij4fixZsHBaW8FBfdVBGELbTXeeAPti3Q3+qxFRcpfHI7r5tb+bP2uggcYMHX X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR05MB6120.eurprd05.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(366004)(110136005)(86362001)(4326008)(5660300002)(83380400001)(7416002)(8676002)(6666004)(1076003)(6506007)(186003)(2906002)(6512007)(26005)(66556008)(6486002)(2616005)(956004)(36756003)(16526019)(66946007)(66476007)(52116002)(498600001)(8936002)(44832011)(54906003)(16060500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: HJtTe6zhSW5FBerHHmj8E6YtwJ95c2cjVi+725Q1546mEI3jRYMY/tX3iCzaGTJmjBJpqXdSKVwXrNKEYRoWQ7EJ75MfHxWZOI5G0WdUsPiPtBpIGTxiGhLtENXvJ3/P4J1eeRVceUGmKOgkDg0H9p9HkhkDlfy0JXFgC1bAHdCq688r9hpVlFa2s41VADexe6U3QX6xmf5VomSLat112UFuh70gT4AdwoV9/0QuRHDy8AttXLkfDxJDBGE2nM8C/9D8a8v9q67N1XYIQhgd/onQ5QDQlb3T7gcap49Sprn5rRxnBFPTn+JcpOgsGcKA2mtBwveDLX1RuW8+fNUVxqjo/vGPy+ZTFKFfiQougIFCM370FE60mjGRBOZjbOuzVn63UQPhk4ToAnDOAU5/CjJ5oKEPa3+B8JJTmUgBWqvBdRzAO2kPVMFssO4hIk+/THCub8x+q0rni7TAKRvXgbLZwKJCDGHxRfOjQtBpmA0= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 53f761c8-de3e-42d2-1f50-08d828092f01 X-MS-Exchange-CrossTenant-AuthSource: AM6PR05MB6120.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2020 15:18:38.3463 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jXmFlBgErBFKQzYJolm8WJ4cJj4ynzt/dXOr/E34yiyUCLi/WwRLQNteSZp9NpCONKdJZ9DNqj2u6NUhTYInNA6FWJ7uRhSYksTE4JcuTEQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB5174 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The Toradex Colibri iMX6ULL board has a special USB hardware design. With runtime-pm enabled USB reset itself continuously. Furthermore the OTG port is also not enumerating devices if the Chipidea IP is in runtime sleep mode and a device or host gets plugged in. This patch adds the opportunity to disable Runtime Power Management from devicetree Signed-off-by: Philippe Schenker Signed-off-by: Li Jun Signed-off-by: Vipul Kumar Signed-off-by: Srikanth Krishnakar Signed-off-by: Li Jun Signed-off-by: Li Jun --- Changes in v2: - Change commit message to tell the use case for Colibri iMX6ULL drivers/usb/chipidea/ci_hdrc_imx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c index 5ae16368a0c7..5078d0695eb7 100644 --- a/drivers/usb/chipidea/ci_hdrc_imx.c +++ b/drivers/usb/chipidea/ci_hdrc_imx.c @@ -434,6 +434,9 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev) usb_phy_init(pdata.usb_phy); } + if (of_property_read_bool(np, "disable-runtime-pm")) + pdata.flags &= ~CI_HDRC_SUPPORTS_RUNTIME_PM; + if (pdata.flags & CI_HDRC_SUPPORTS_RUNTIME_PM) data->supports_runtime_pm = true; From patchwork Tue Jul 14 15:18:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 11663099 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6B8AD722 for ; Tue, 14 Jul 2020 15:18:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4F15A2240B for ; Tue, 14 Jul 2020 15:18:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=toradex.com header.i=@toradex.com header.b="NqUDJylO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728058AbgGNPSv (ORCPT ); Tue, 14 Jul 2020 11:18:51 -0400 Received: from mail-eopbgr60113.outbound.protection.outlook.com ([40.107.6.113]:11653 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725876AbgGNPSt (ORCPT ); Tue, 14 Jul 2020 11:18:49 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ys1oD5TZpuLGFdYc+W+lX5qupd0nJAVx/uXMyDr/iSLQtv1U1mAVePDdtGpE1Q9K276J1UbISWMVn4MlOPskY22yhBLvwQBCNQcoIaJeY/e8joHSdz+juTE5WkLaRvmEEbQLB48n1swDPUltI4dBn1Obnf99QagoyHf4fcS8IwZutpUHaVdlNP5qHoSbS8dtokl50+EraxVkxM1aVakHTV1NXNZYGdt2ek3SKMJ6rmoDCVeXKMhFgFcFpcRuZVvKhdhWo9awhaW0nFA+9SLAfNjZhOgRhJLeOBOxH9GZX9bbML25klh5/SXEBqp6Xvw0DP1ox5qORfGtst85Bgdkew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z1qePeighLYZBdGgVpONpJ/bncdGzDKQCGsnUqfn6N4=; b=iy6xtp4V1LOAA6XNud7nsatUIW2NvX+kGwgzfsBl1aMGFH6Oy1wfKSZWfEeuirC9seEgezt6zR//ZyxqPkgc52xKOWMgSNwcloATI+31qrvsuMfLiWvacbbSbZ6BaWTk7tWMua7yQxP8A+k0awSW+pWFOPHFEK0tdMzONh+VI6AuI4woK243Llbxfrwv8rRP/i543rx5b+nTyh8q7MB04TzTAmjqcIBIhttHnAuk2UybWJ2ADAiYoJSpihRRWPe8EHh9DBhyoFef4N2M9yvs/ihtpiJKQc5fM2xmEhQk6ck1NfNdghm5TJQLkW9h0GnzAjKiIuvU8zRuqHT8WOB68A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=toradex.com; dmarc=pass action=none header.from=toradex.com; dkim=pass header.d=toradex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z1qePeighLYZBdGgVpONpJ/bncdGzDKQCGsnUqfn6N4=; b=NqUDJylOLjRxt43k03K16o9HccgJFR8e9U3bVtbBW50SAAeXuZyc/FpVdnAIXHYMaVD1e2SOkVnK0zr7MJEaSoD7a6i6IhauvG13vGZJHpA8q7vp9ec1AowGuc/umi0le7JPr9hsn+V8zYDmv01xbbicNH6flhC9TN7D0k5bR58= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=toradex.com; Received: from AM6PR05MB6120.eurprd05.prod.outlook.com (2603:10a6:20b:a8::25) by AM6PR05MB5174.eurprd05.prod.outlook.com (2603:10a6:20b:66::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.24; Tue, 14 Jul 2020 15:18:39 +0000 Received: from AM6PR05MB6120.eurprd05.prod.outlook.com ([fe80::1d81:6a9b:8c26:3b7d]) by AM6PR05MB6120.eurprd05.prod.outlook.com ([fe80::1d81:6a9b:8c26:3b7d%4]) with mapi id 15.20.3174.026; Tue, 14 Jul 2020 15:18:39 +0000 From: Philippe Schenker To: Rob Herring , devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Peter Chen , Shawn Guo Cc: Philippe Schenker , Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team , Sascha Hauer , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] ARM: dts: colibri-imx6ull: disable runtime pm Date: Tue, 14 Jul 2020 17:18:22 +0200 Message-Id: <20200714151822.250783-3-philippe.schenker@toradex.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200714151822.250783-1-philippe.schenker@toradex.com> References: <20200714151822.250783-1-philippe.schenker@toradex.com> X-ClientProxiedBy: GV0P278CA0019.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:28::6) To AM6PR05MB6120.eurprd05.prod.outlook.com (2603:10a6:20b:a8::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from philippe-pc.toradex.int (31.10.206.124) by GV0P278CA0019.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:28::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17 via Frontend Transport; Tue, 14 Jul 2020 15:18:38 +0000 X-Mailer: git-send-email 2.27.0 X-Originating-IP: [31.10.206.124] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 444b7346-4b33-4c4b-7ecc-08d828092f7c X-MS-TrafficTypeDiagnostic: AM6PR05MB5174: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2276; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5af6HB3h4H5qQIp1xJwJ/rJtsdU1baZRHu5BP561QbxTFMcIrlFIzrGsDdcqAv6lj2vV6Vbq5eW7TLqY9hUAUNPxDPLsDYjR3wvy4F1EoC5YKSophZ02qiF+QVBBLCjKNOrSEh7Ab1tnyQtfJ3kKQUbPQWO7/cnpR4ZiOL37DqsliGn5KYnoewK8zki1O7TL+2vcq1wqO0twHsuFL2/if921BOfNgL/xGZiBGKVBjsg+UDQNnqJH7zcBIaAtpWyT4L9XdKRCoAa89np8jyOC3TWy4RNl5Blzjd5sYE92BgGIkysVPg4y/Jn16CkBmVimUC+Ve9z3Ort7Pp7n0sQrvSHToS0dj8wZYv1DXOI7DZ+FOpiMsH0Ds0N+S9oJtgGs X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR05MB6120.eurprd05.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(376002)(346002)(366004)(136003)(396003)(39850400004)(110136005)(316002)(86362001)(4326008)(5660300002)(7416002)(8676002)(6666004)(1076003)(4744005)(6506007)(186003)(2906002)(6512007)(26005)(66556008)(6486002)(2616005)(956004)(478600001)(36756003)(16526019)(66946007)(66476007)(52116002)(8936002)(44832011)(54906003)(16060500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: F9DZ0H5fs4dIPjEjrDVCfBEnhiet4EA1uDGhyylieoJhkaSsR5OprE5yZG06e6WQhQ6FMkaRlrUGWaS/CCnqnxST2qQFKrTqY9OppFMyusGpJTgpwjjlQF6Rs2vFxnv0eIfJiNo7ZO1kGlwLl8izuhSOrY64CdCHS4mmZ3YoKHKQhD4t9nQwjXTE5dwROwUTD5RsdRG9SqGH7SJdbPfCc8XGbz3CSaeqvqEJZTPkx7KF6V8eO5BZndwtRO6Km7k1gqIbZpi7OMxL/5jb5Wpol/OzJQNZV6+YPUinhGLDuZBgWxIRu85AYh4iqTicwRys8RMbvR9jyXUhiUqs2kIiN/R+sg5iCkpeOhHiMcTsgyTHGMdWMrA7GK2NVNvT/ury933UeIdJMg/06sgz0Z8fDAc2YGyTqzhz+JzvfdcCiXSl11yhFKan/fHBd2slq3fcfSycnELveVd4f6hm9L5IljhrJj5vDbC+rrtzsR3sh54= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 444b7346-4b33-4c4b-7ecc-08d828092f7c X-MS-Exchange-CrossTenant-AuthSource: AM6PR05MB6120.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2020 15:18:39.1698 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: dSzuqVRj8LdvLxs8zpBxVdS2ku79O5PuXuXiwaLinuUMIDUluDV8trFalUiFiF9r7x5t0W28i+r8mNr0WshME2mQufQhzGdTdVwylJurs1Y= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB5174 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The Colibri iMX6ULL has a somewhat special hardware design due to some legacy decisions regarding USB OTG. This leads to different issues when runtime PM is enabled. Disable runtime power management on colibri-imx6ull USB. Signed-off-by: Philippe Schenker --- Changes in v2: None arch/arm/boot/dts/imx6ull-colibri.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx6ull-colibri.dtsi b/arch/arm/boot/dts/imx6ull-colibri.dtsi index 9145c536d71a..1c6692237506 100644 --- a/arch/arm/boot/dts/imx6ull-colibri.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri.dtsi @@ -195,6 +195,7 @@ &uart5 { }; &usbotg1 { + disable-runtime-pm; dr_mode = "otg"; srp-disable; hnp-disable; @@ -202,6 +203,7 @@ &usbotg1 { }; &usbotg2 { + disable-runtime-pm; dr_mode = "host"; };