From patchwork Fri Jul 10 15:49:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 11656913 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 8E5EB6C1 for ; Fri, 10 Jul 2020 15:50:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6F5D6207D0 for ; Fri, 10 Jul 2020 15:50:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=toradex.com header.i=@toradex.com header.b="fRrKUGss" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727919AbgGJPts (ORCPT ); Fri, 10 Jul 2020 11:49:48 -0400 Received: from mail-db8eur05on2108.outbound.protection.outlook.com ([40.107.20.108]:30784 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726950AbgGJPts (ORCPT ); Fri, 10 Jul 2020 11:49:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KhedyrS583iVXfEQVx1uHO5xcwMmIEPiLTA3iLknpbGV6rk/K0/Az9l91SdRIpLXNgnbRwLlMMbH/pBLVdA/1WsLvGTzSKTkvykqUTFM0WGHltd7fzP+ARveNC7y9CyFhlBOMj9QsuWNGMyCmIe1qQ6YI3tH80awYxfjKRUYlaLLG68gSTybJA8W/cJCeWceIVRfJ5sT7IqLCgNw9C8QJ2MbSqRPbUz/kt4rcBuZvv43MYxA50dvvPadsmcJ0DIT640J4LYOxuOd3dAHf9XTluyjTAwlpOl/fo2lZFgztkIgwGvcmvEYj/vtF6LB7m9Hexu7O//mhQM6ol1TKttZag== 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=ntUudqTpdIV2P2ptD1MDuZY6tRQ5gZwq4AhJhQrFWKc=; b=IzlVzVeOT8DQ+9/qsVipkW4aIHRRYJiEZzJ2XQz5XBMtSRyW3NNrgkEi6DCGlsuCXz6EciJ3hdoIb/GRJRyHL7KciM1ow5e3Z4/fQKL2Xg58oJ3HRbJnVd6LbpFo9BWGMS+aJHGO1ahaGy/aFR/YGsU/KeaHrE5JXlZA1A2qjN585AKq2K0dwotudsQ1U2/KtYQf9dGtvT2D6WIctHVcN7ClX2t2vmDqzJygNxNXrfF8W8hZ/tUUbGw6OOEFjNYZW73a2xEZsCa2WfOyhZuQ3hwR/kdi1nJ+2feYkUkB1E07d04yV0lPKv9RDSZOeWZ9wQo3oSBXBePZ0w7TxoMgvg== 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=ntUudqTpdIV2P2ptD1MDuZY6tRQ5gZwq4AhJhQrFWKc=; b=fRrKUGssO/MiDZp8B9BtVRCktpcn+OTI1YU3zOVwm9LwTaW4OA765Syek+hSumyKXUCSe9WQLDxL7XJaJRb8xsutmPeXI4A8P7GpsB10grzlLO+xeRNv1lNYXw/szXH6CV5iVacGPQEaLwAvfcfPmvV7XmNhg239GZd1Cct3pL0= 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 AM6PR05MB5879.eurprd05.prod.outlook.com (2603:10a6:20b:a2::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.20; Fri, 10 Jul 2020 15:49:44 +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.023; Fri, 10 Jul 2020 15:49:44 +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 1/3] dt-bindings: usb: ci-hdrc-usb2: add property disable-runtime-pm Date: Fri, 10 Jul 2020 17:49:32 +0200 Message-Id: <20200710154935.697190-1-philippe.schenker@toradex.com> X-Mailer: git-send-email 2.27.0 X-ClientProxiedBy: GV0P278CA0047.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:29::16) 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 GV0P278CA0047.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:29::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.23 via Frontend Transport; Fri, 10 Jul 2020 15:49:43 +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: 6e6226b2-6a98-44be-72cb-08d824e8dd5f X-MS-TrafficTypeDiagnostic: AM6PR05MB5879: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: X9YhtxW1tGjJzniJZ6MK0RhuwuM6BJHNPrg2ceka6rlt+ytxFt741KMZuDCOXmHlWI0tGkwVUI8H9O4jargY9bWX21NDuY1ZMmP5Rwdrm5ofSZFrj5OwQUXHROrBdfkIrIGvIoH1S1x2bDDUakx+b223bq0Iid/4d3y66emnq6BrWhlCVaUNX6dV+vOoWuvMJKtBL2O40ctK++SfFoRjjZtEU8FJXoeNjXEp2j1IS98vNjn0giT0cmKtE9GpKb1iTS1D4oKKJskRyBbJIdQRhF2R59bg3X30W2J6rPshrQhuC5q7JZryHPh4boG4/0Kh8i9EtDeg4WB78WznkUWm2uiaAlwLtJ96sa6Ue+VBj8iJUEqkfvgAzijJm0iq0vl7 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)(396003)(366004)(346002)(136003)(376002)(39850400004)(54906003)(66946007)(86362001)(52116002)(478600001)(110136005)(1076003)(6666004)(4326008)(6486002)(316002)(6506007)(83380400001)(26005)(2906002)(8936002)(44832011)(36756003)(5660300002)(16526019)(6512007)(8676002)(66476007)(66556008)(956004)(2616005)(186003)(4744005)(16060500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: z019xzeYg+ojJdyLOsfQwo4hHg77LaMET3F9pTJJ8Xham0St72jTDWeXfUSv7Iyxk5sVzXnMQFOt2Jt21cIpw8y4HFeBSLBXqKa+ClFJxgAc+G9TqCBDOC8+oYnsEW0FF/7dKGcfU3eN1E/8xI/lnDg2ulC79ZPrbJ+OkrkGSxXuNPiIbHc0dCr5JEQx7x+1ga3CIoA4bnrR0aR0V7SkD2Z2jaRHlhvTBk5CBUrhN+xKoT/neBgYFKRJzF/D0lgge4V8k0Mu74t75LOOt9CYwmk2J4HUNeqlohamHzZUo+w5SZJy/Y374/N2jeI26VCpprXVvDSW6DDWZwZpl4/MjLPdnju+E0e9m2vvWeSz+AV+FZyOGWaJkBfzgR0QDtWUmADLde2iINW4xgB2QXgNAO+WyENkXa7HHR/qjJ2UCiAuWp5Gt6Mr+eBots8d8Q1W4WRiOXdcrR0kaGzhJwwrBfiQaf9kzvRrC+drS8O8wG0= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6e6226b2-6a98-44be-72cb-08d824e8dd5f X-MS-Exchange-CrossTenant-AuthSource: AM6PR05MB6120.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2020 15:49:43.9436 (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: E889PdGyF94hWhK4ogblsBTF3OcafpDouKZnv+DLwCmKZWmdJAUHSSakKc9bqQ0JXIUS/9SiSiWazDH26jSYPJ2bX8/mx94YnNIB8exMTQ8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB5879 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 --- 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 Fri Jul 10 15:49:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 11656909 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 693A3913 for ; Fri, 10 Jul 2020 15:49:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 44DAF207D0 for ; Fri, 10 Jul 2020 15:49:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=toradex.com header.i=@toradex.com header.b="Gi8cC7Z3" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728337AbgGJPtv (ORCPT ); Fri, 10 Jul 2020 11:49:51 -0400 Received: from mail-db8eur05on2108.outbound.protection.outlook.com ([40.107.20.108]:30784 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727065AbgGJPtu (ORCPT ); Fri, 10 Jul 2020 11:49:50 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mgb+mobSFVo5w4Ac+AStUgcfsfbc4Sv6jjP4tQDsAdVc7/URtTt66duhwPjzgkHs/pzwYU/L98uNp8/oF3JeBoLwTJKIFqzdRv4upSwpon8VCyG237IVMBp1EtEvByIiwtMtC2BDraJtbMo9UXzIR65V2pp4o3AmP4Sbb9D+6+p8ZgeQJPYFXBh9rLCRkCFpa5Yf0Q5WBC4a073MLdTFpaber2T5qTM1A6YdhQf2jcYf6jIF3swlHBI0GP41rKSYgHyxKkd3UuD9s2slg67lQgWPzud5SIaYUvOQy7qjLg+PsH+ZQzy0bS6VriGkkZQmdj/XVUf34QAi7qs+bJPVzw== 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=cRBZYzXnWp45ZboQyx2bYkGHj0PQVPU/PzTGdg5A5NM=; b=nR/whOIZnhkSFXMgazkzHd7bvaxirGXZvZ5JuKkG0UvIT3qWnUhjbYBU7zXqlXLdAsjabXMqZmmQzZ5Dk06/Q35PVaykBpxtvE8hphj2FZExAbyOL9BAcm0TRlMDYeb1SrSskwZd8RDWDB0sMNDawBggYyNhki/lGSHU/R/ZGIWJoW8oA5Q6fhe0C6ymdj4pBce2o0NIXMFq2ZcyZHZX7yfDw94F99pCfrmjkG+gwysPa2bYMFb1QkXleW4J6oiMD2B+KcXGnGf7eMd0CESFZWQzJzVDLwnUsuJDBfVc3mW3rpjMUoqUYnpz1/C99ltL6sWfQA+MggISMsOiVowyZw== 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=cRBZYzXnWp45ZboQyx2bYkGHj0PQVPU/PzTGdg5A5NM=; b=Gi8cC7Z3BV3eTAOOJsOilPaSeHFgkNeyJy2BqHpUQFY8CQbzun4WdpiS8GuHNQsE9p1w6hkUa9iVqcjRoipzha0udtgJice15m7ZLf3q6ryxrxlOtqDuC7sn1k1M2+SOVPoBD+qCwxHhb3DP96eZUH9tXW9Bx1gLvlygxexVpI0= 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 AM6PR05MB5879.eurprd05.prod.outlook.com (2603:10a6:20b:a2::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.20; Fri, 10 Jul 2020 15:49:44 +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.023; Fri, 10 Jul 2020 15:49:44 +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 2/3] usb: chipidea: imx: support disabling runtime-pm Date: Fri, 10 Jul 2020 17:49:33 +0200 Message-Id: <20200710154935.697190-2-philippe.schenker@toradex.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200710154935.697190-1-philippe.schenker@toradex.com> References: <20200710154935.697190-1-philippe.schenker@toradex.com> X-ClientProxiedBy: GV0P278CA0047.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:29::16) 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 GV0P278CA0047.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:29::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.23 via Frontend Transport; Fri, 10 Jul 2020 15:49:44 +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: d8e28cc3-7397-4dcf-b450-08d824e8ddd6 X-MS-TrafficTypeDiagnostic: AM6PR05MB5879: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EKgVXtSa15rpGPIDja6IS6fbtZQQR27k3u5wF1EbZZUZIW6AR3OiWsx9cNMQ1acyqpvSZjyVHaIXzMo87MN7i/wNhnr+hhXfDe8/N8Vla7qeJkzzzRf6EZ/jIeDcw5l55bpHIucKDI1ZdV9fkXjZerr/ctDan4wWpaipZbQxCtbGfQx3RwGJ33LtfE0SBXXCc7kGhm5Uc4rwvSFMvJHy/j7dF37bPLD8ObFLE9zRi8f54y5UMSX6BBXaAmvruZzGL6Ssk3TT3P/iVcGzEuYdOISdu/P74d1DXjeykkK8dQs/fRqgqf0YiamtBCXz+CTYwHqg6A6QRS+6Ldhls9gPaDBKmQTXbTpxt0727Flm5YOwdN3Uo9mzTrTcIngwrHZi 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)(396003)(366004)(346002)(136003)(376002)(39850400004)(54906003)(66946007)(86362001)(52116002)(478600001)(110136005)(1076003)(6666004)(4326008)(6486002)(316002)(6506007)(83380400001)(26005)(7416002)(2906002)(8936002)(44832011)(36756003)(5660300002)(16526019)(6512007)(8676002)(66476007)(66556008)(956004)(2616005)(186003)(4744005)(16060500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: mM1vZzn/o8uZum0qTCXYZe9irbClIWkAqTFgBTczpuV4xTTlCV/s6B9aA/FDFW7vTb7ZNXjK53N/sBXuawOrUOJQpZRHR5jKoqf18PJPrUlFI9AWQIv1iDcJWgHlT4CmUgrbdJXUlDVXLh2dHaCHOPX2Yn1wKOoveJpyHVg7ye9JyAGndY/iCJ9mAzu09EKqdWbResqhNbStMx1xFTPVlD+sS7TEanvMXM/U7zigkADiNayDlM5zdY7LRDtSETqbDRLc9JXTEBysquuNLd8JorE1nzBGp4CkHX4OF0WV9E0/mXQhk7zwYeU3KylS1j95TIsRmksXrm43dpIQV6wtqZdw2uSFMbF75wmHm4SJgg/Zj0+Q3hWVZMxl1mZ7Sn5O5roiNYYu5JV2Eq7aVVLeHOAx2MacRh51tUG8+imEuBS9aPocJoRAI8pRLlckYzPFJ2GrrWSr9Z9wKkrvkqMdFduxo5bERuKHmYY2orxG7I8= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: d8e28cc3-7397-4dcf-b450-08d824e8ddd6 X-MS-Exchange-CrossTenant-AuthSource: AM6PR05MB6120.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2020 15:49:44.7072 (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: kjtnirtwbXSi0BOa4IBT78WW7q8MCSQxjQcpzf6zdDoZphsQB9mJRessXwR1KXGvw6Ps7AAMSoUo3DBsN3R6tKzgamKpjHUuYFZqxr4MSh8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB5879 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 --- 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 Fri Jul 10 15:49:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 11656911 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 2F1BF6C1 for ; Fri, 10 Jul 2020 15:49:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0D2592084D for ; Fri, 10 Jul 2020 15:49:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=toradex.com header.i=@toradex.com header.b="nx/gpwMp" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726977AbgGJPty (ORCPT ); Fri, 10 Jul 2020 11:49:54 -0400 Received: from mail-db8eur05on2108.outbound.protection.outlook.com ([40.107.20.108]:30784 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726950AbgGJPtx (ORCPT ); Fri, 10 Jul 2020 11:49:53 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VIgj8tv0AI53AvBGa2SutPBL/Uw7xMuZBCbX4C0YDHfB1HM0BOZ+U+sC5zYaX8d7cFG1wz8RHwWkyojyVMBdGepVGwWiRzjEpNXGoPInAE1mAWBEHsuSYahTG0g+LiY0d9P9Nm1e+JjlsfTLVJXtdiKbWeW72CVNlLstFmNw2SYTu74ZN6SVycQAD4EZ9C/JNXfxI/o+zNoDEyBEERgTfeOACqL0tl6Nwmy51+QQTd6zuv+Z5kuqeBXhU25GB6oAvj76hJwcUU4fFRxrdeKjhmSm8dcmnMAqHaEOFTH5J8AVxiwkLjF8cSrLSXNBiSLloiHfD/c3gxjUCAmkUzSCig== 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=P7VZ/lscJR0Q5fXY/y8VWvdcz2ufoRTZzeCN0LVp/6s=; b=g7+IdGn64n8H+Mz2l9Mdktdhpv7ed4PM0nvWV1kjgaq6LStv4zBqAggZ7SSOEgjpMZW1pEyoi+eZ1ZiRJuYlgG/1yGqk7ZarZXSvpXIMU6xmrkXLp2qEuDcV4apT7YvnnBSmf6BubFQsSatd54u6IWPT9yx6hF1fKIZxA77hiD2Umv80i9cZ6UciJfe0rm83b58Rdqo5+Ur/G3m7UcfpvHsn6dMPXbAYvPBRcObWXRlyI/Ijyh1N4uCzSezjmbTgXBpbXxnDaLQpE+cn5vdXz3MBUwn+j9hA8aG4MR5FjzMTR5i8VVcFIu5Z27zlaDMqDILAumTEH6BxQ0dejUz0+g== 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=P7VZ/lscJR0Q5fXY/y8VWvdcz2ufoRTZzeCN0LVp/6s=; b=nx/gpwMp5XlkL3qXGrXNsGbKkBxK9nrD9EcrQzymqmW2v0Vqd40LrFSvsSZXrsoRzV+Pvk/EgTK+VnkUQW1e7DXUagYi3eC7cszc/SIelZCmy2VwU4S+MJz4QHF1Ws4Sj0wwkyUfVdrbBag6w2yZ5cY/pZwOCQrYPPCVmnwbAfc= 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 AM6PR05MB5879.eurprd05.prod.outlook.com (2603:10a6:20b:a2::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.20; Fri, 10 Jul 2020 15:49:45 +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.023; Fri, 10 Jul 2020 15:49:45 +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 3/3] ARM: dts: colibri-imx6ull: disable runtime pm Date: Fri, 10 Jul 2020 17:49:34 +0200 Message-Id: <20200710154935.697190-3-philippe.schenker@toradex.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200710154935.697190-1-philippe.schenker@toradex.com> References: <20200710154935.697190-1-philippe.schenker@toradex.com> X-ClientProxiedBy: GV0P278CA0047.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:29::16) 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 GV0P278CA0047.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:29::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.23 via Frontend Transport; Fri, 10 Jul 2020 15:49:44 +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: 09073e39-6fe8-492b-5152-08d824e8de48 X-MS-TrafficTypeDiagnostic: AM6PR05MB5879: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:590; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: I0vW4diXeCXKZdVPHU+8MfSI+EdWYT5IJC6/ayB1AOTuYHIog8V45ju7XgPxtHuXnK8qKjdBwiB9tfzqz+j1Efs72BL9/inlQxv6YGnxHkCWzdyL4Ga5CZQlqrPtEqyXVlKTgpMJnC0LHR15ommpvC8emeHrVcT5XDx6pS7y8/l55jXMa0rEI49XJTOeezGjX5bPPm460iaa5kQmQ8FW2D1yFv0S3QZwPmxN3VBUDYRSNtjeJMJ3pON1S/qPBMhJctXM6ga30bi/Oogb7Dzm7kgOrWteV1yPYteF6yboJFWOExFabTrywQqHI3zery98U5IRKuOUDWy3oHNFFOdbtR9+ZjQLg1YxyfTUp4TovgdcLa3BhfCXpbNiIu0Q1w30 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)(396003)(366004)(346002)(136003)(376002)(39850400004)(54906003)(66946007)(86362001)(52116002)(478600001)(110136005)(1076003)(6666004)(4326008)(6486002)(316002)(6506007)(26005)(7416002)(2906002)(8936002)(44832011)(36756003)(5660300002)(16526019)(6512007)(8676002)(66476007)(66556008)(956004)(2616005)(186003)(4744005)(16060500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: 3V2JP85FpzvMpYLYWYcUbqCLvwwApr7O4YV5JkLhxilc43qq1QCfVxS11ZqKqj6K+1cg8ojB2VC7WGn5klBmXFlbpTBMF6JRjrQoEXSmwhgX74YkM8qO3oOea9TwtdfPJSC5vLNvZthDfXytKBdEE+v5zZBU6iXXrGcDvWnHqiMvD3kSpg1QXo17hI4TPtYsYmU5tpbbU8zT/MZaADKqx8G7HoJCdwXSMFxlB+70SmyWyOUZFaDzYlaDcrb42TfNao8RMgKSRokIM3YwKaNud23h4REdnBTiOQVILGZ2/o1TFLsxG0Z3ZpCbH8hXPOI+ub7TU5QAealZfupxYo8uq/4b4R9uDZi6FJs6xxrtNgG5/nRscFy91Oirl0jhO0WpiTosW2vSaAdEYMKZPeSWRh9qa5HmqI7rIa6gocv9w/iGNeUFtLAmoPj19We+UCi2txALQCVrbrjGeGN1Vpcakz7Y/JCVPXy0tIJ4xvXZyyw= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 09073e39-6fe8-492b-5152-08d824e8de48 X-MS-Exchange-CrossTenant-AuthSource: AM6PR05MB6120.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2020 15:49:45.5198 (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: SIziJ+6Rq8dWgNRj8eRNFGzkSpLKOcYY/pxcRA3Rw4/vYkFau+0XQn8BHoXyv/J+MAixlL8JJtwB/7bHZqOYx9EvhOyYnsrk+tIQ62NXsLw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB5879 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 --- 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"; };