From patchwork Thu Oct 22 01:39:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 287464 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=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, 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 B77A4C2D0A3 for ; Thu, 22 Oct 2020 01:40:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 592672098B for ; Thu, 22 Oct 2020 01:40:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="kAc5yv8N" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2894764AbgJVBkN (ORCPT ); Wed, 21 Oct 2020 21:40:13 -0400 Received: from mail-eopbgr80044.outbound.protection.outlook.com ([40.107.8.44]:61966 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2894744AbgJVBkN (ORCPT ); Wed, 21 Oct 2020 21:40:13 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nSk737WEXN+VlcxYRUKTAN8Zv+3WG0JXFPsxaXorZ/XEW/eeSK9byQm+33BaK+L3llwG4/T/s2dFIxz4nzBqvcIBDEJnkebAhK7nw3tzbPXZxJ4K2Rv+tZmxNdyExxa9ZJ0uszIaohO7Zl9576OVBZKhBqbPVbSDIlKVXugu2+ZFBxNOV8jpDG9N+YFFq4fyq43fS5iEWvxSqL6V6zcKc4IeSyMiv26ewHCyRD3L8WhI+oWIL1hvthJNiKaiDa4HVVfg5XG8fMZcKwcL4uNijZSqPZA9rI4bXiGndYHPYTgO7RE5zUEIvdu6XiFFalSTyqduawsamQFgYGlM8bmDxg== 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=42qBS9GtL6OEhjGN/yM5apQ0BKXt5blygYT63dRgrvI=; b=V2NsQEvaW0ttevXjZRdbc3h52gF7Xh5P8Uon3c3PZGq0/VPiUfZsFFP34mpQP4kCttdNx3P/HiFxlgzFFRp49XWRSolnIPtP76P3AouBBauhFkYzeYHBVKHqaItQ+x65zyxgIRoQ3/sgi+O2qBgxRZhv4JBPe8I++d3H8XNKjfNk69+oAMa5bjKvJRxD8qvwwDVFNyTLjhyrKdvIOLO6DYaaJvHvaOQMnJNG1NjQ+NbV+LlORhEu+Z3FUB28RZLREkgoTnfwLrLbYlP3bQzz1VcgryfE1uetQUcrGDyTitrFbLpL08QClJI1U3dZV+hpzZ07oRK30niZkDUZITUM/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=42qBS9GtL6OEhjGN/yM5apQ0BKXt5blygYT63dRgrvI=; b=kAc5yv8N55g+4AKF6NfKRAhpIKyMT8ZdIsudY1bbDQwaNSFvFAOpNhOOpdQOrWe//rFljSfl+yPl55QY66uiYzkMy5/9s/Z8ADmBRW2dTJyOwaPbK8VQci1F+NhItCJHqkKtyf8gAHgcSAEAUSNsPtZksTX4ALkbVOlgEZSt8PA= Authentication-Results: cadence.com; dkim=none (message not signed) header.d=none; cadence.com; dmarc=none action=none header.from=nxp.com; Received: from AM8PR04MB7300.eurprd04.prod.outlook.com (2603:10a6:20b:1c7::12) by AM0PR0402MB3539.eurprd04.prod.outlook.com (2603:10a6:208:1b::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.27; Thu, 22 Oct 2020 01:40:08 +0000 Received: from AM8PR04MB7300.eurprd04.prod.outlook.com ([fe80::b902:6be0:622b:26c2]) by AM8PR04MB7300.eurprd04.prod.outlook.com ([fe80::b902:6be0:622b:26c2%4]) with mapi id 15.20.3477.028; Thu, 22 Oct 2020 01:40:08 +0000 From: Peter Chen To: pawell@cadence.com, rogerq@ti.com Cc: balbi@kernel.org, linux-usb@vger.kernel.org, linux-imx@nxp.com, gregkh@linuxfoundation.org, jun.li@nxp.com, Peter Chen Subject: [PATCH 1/6] usb: cdns3: host: add .suspend_quirk for xhci-plat.c Date: Thu, 22 Oct 2020 09:39:26 +0800 Message-Id: <20201022013930.2166-1-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR04CA0190.apcprd04.prod.outlook.com (2603:1096:4:14::28) To AM8PR04MB7300.eurprd04.prod.outlook.com (2603:10a6:20b:1c7::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from b29397-desktop.ap.freescale.net (119.31.174.66) by SG2PR04CA0190.apcprd04.prod.outlook.com (2603:1096:4:14::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18 via Frontend Transport; Thu, 22 Oct 2020 01:40:05 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c295d98f-bd58-4f3f-4986-08d8762b688b X-MS-TrafficTypeDiagnostic: AM0PR0402MB3539: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:826; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zztuF6mWnFLRKdQGHbbZXBpywdTQpjCeJopY5WZGHG78D8vv4mOFokHaXXKF+CsKvTC9uH+IaZz6Qlim7M3RFen6ojUnbD/15U6MC1+l0Ah3XLrKGvpPHJvYcTew6WZv7k/KPQLgdC7PTC3hbmrENWW3XcGuCqd3AaCqr/Qnu3U3TQFpR7UH7FC1jbQifvcNiWm6qvCgIkb7tdnnmvAUnjtacP/BidHEB26r0zo33IBS7DPmwa9ROaE7Oke/3tJXSFDeoTC0TovSSy+P298VgSkESasASJbuY+YbIjhznr4ECJK6oPstDmpHzTQLy9VtvYn8e/L3hoztQ7/4HjpwG2zdE1dzJrvVX7A6/LH7Q6KnGGnEdr56FX3hijFOSs7z X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR04MB7300.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(396003)(366004)(346002)(39860400002)(376002)(66556008)(66946007)(66476007)(478600001)(5660300002)(6506007)(26005)(6512007)(44832011)(6666004)(8936002)(186003)(16526019)(1076003)(86362001)(4326008)(36756003)(52116002)(2616005)(956004)(6486002)(83380400001)(15650500001)(8676002)(316002)(2906002)(142923001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 8G5FqoIUnI+2Q1FkeciwSPlbw+vqHmmmD3BFRbN5V6wlhljt42HRN/HHcqdw3ptCVnTOrlfJksF5LsHa6Cm1jGpdRhPX/obfEz2IRkmM3n9+eB5qd1aF2XbDnGrfGH/Ntw/9zN0nTvVVZz8D0pb1hMuAL6e3Xhp/K5cFMWEGvsdeq850oCnBbUB5ATVIVLp+XmnoaLF6sx11o7HT8bux7GFlja0uWdHt1f99gyAXAR7JJmxYLhOFZttx6KvT81vVvSBnMMubjLigFrDOR+u8KhiDQRJsRceHK0HLETbm0Xynkq1dbMFHpGAl8y74FQ4ZfvfBu4DbVia4JK+aQ8i8Hjsqu1rnm2pCt/ZXHC7iEvHd89hrNJYD6inHHEvMl/uSnwaO1BB9uK31eoMvgwsTI0T9EPjGDR4Qbx7hKd0NQsrrKGsMS2xV/FN4apPpIKgJlonhnXDWC8AJ0YzL2OWQpOdYnlUYBo7wqrEebVjwPz2vxW6Y2wJ5mHCKZagv49AQLHMWrUo4UyKP0PTLjpbpH2ZG4mCgLrSw3OTavd0JqqTK9v4eM52Kw5BFoqsaW72EiwN40c4QNDH5sgI8tVgR4jKGPkJmjgch9TJT3+ODtCccCJOhfnu8DypNYBOR1iuztFjwK9n3Tlh6mKu1aEdfJQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c295d98f-bd58-4f3f-4986-08d8762b688b X-MS-Exchange-CrossTenant-AuthSource: AM8PR04MB7300.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2020 01:40:08.4227 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kthe0v8v/QaOGOYYaiuZ5/YS67m5EEQh8aG3T1sLpAnBh7symiAylEWS5ZaUCth7esUyjV2PUOZB4L4n67coAw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3539 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org cdns3 has some special PM sequence between xhci_bus_suspend and xhci_suspend, add quirk to implement it. Reviewed-by: Pawel Laszczak Signed-off-by: Peter Chen --- drivers/usb/cdns3/host-export.h | 6 +++++ drivers/usb/cdns3/host.c | 43 +++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/drivers/usb/cdns3/host-export.h b/drivers/usb/cdns3/host-export.h index ae11810f8826..26041718a086 100644 --- a/drivers/usb/cdns3/host-export.h +++ b/drivers/usb/cdns3/host-export.h @@ -9,9 +9,11 @@ #ifndef __LINUX_CDNS3_HOST_EXPORT #define __LINUX_CDNS3_HOST_EXPORT +struct usb_hcd; #ifdef CONFIG_USB_CDNS3_HOST int cdns3_host_init(struct cdns3 *cdns); +int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd); #else @@ -21,6 +23,10 @@ static inline int cdns3_host_init(struct cdns3 *cdns) } static inline void cdns3_host_exit(struct cdns3 *cdns) { } +static inline int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd) +{ + return 0; +} #endif /* CONFIG_USB_CDNS3_HOST */ diff --git a/drivers/usb/cdns3/host.c b/drivers/usb/cdns3/host.c index b3e2cb69762c..de8da737fa25 100644 --- a/drivers/usb/cdns3/host.c +++ b/drivers/usb/cdns3/host.c @@ -14,6 +14,18 @@ #include "drd.h" #include "host-export.h" #include +#include "../host/xhci.h" +#include "../host/xhci-plat.h" + +#define XECP_PORT_CAP_REG 0x8000 +#define XECP_AUX_CTRL_REG1 0x8120 + +#define CFG_RXDET_P3_EN BIT(15) +#define LPM_2_STB_SWITCH_EN BIT(25) + +static const struct xhci_plat_priv xhci_plat_cdns3_xhci = { + .suspend_quirk = xhci_cdns3_suspend_quirk, +}; static int __cdns3_host_init(struct cdns3 *cdns) { @@ -39,6 +51,11 @@ static int __cdns3_host_init(struct cdns3 *cdns) goto err1; } + ret = platform_device_add_data(xhci, &xhci_plat_cdns3_xhci, + sizeof(struct xhci_plat_priv)); + if (ret) + goto err1; + ret = platform_device_add(xhci); if (ret) { dev_err(cdns->dev, "failed to register xHCI device\n"); @@ -56,6 +73,32 @@ static int __cdns3_host_init(struct cdns3 *cdns) return ret; } +int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd) +{ + struct xhci_hcd *xhci = hcd_to_xhci(hcd); + u32 value; + + if (pm_runtime_status_suspended(hcd->self.controller)) + return 0; + + /* set usbcmd.EU3S */ + value = readl(&xhci->op_regs->command); + value |= CMD_PM_INDEX; + writel(value, &xhci->op_regs->command); + + if (hcd->regs) { + value = readl(hcd->regs + XECP_AUX_CTRL_REG1); + value |= CFG_RXDET_P3_EN; + writel(value, hcd->regs + XECP_AUX_CTRL_REG1); + + value = readl(hcd->regs + XECP_PORT_CAP_REG); + value |= LPM_2_STB_SWITCH_EN; + writel(value, hcd->regs + XECP_PORT_CAP_REG); + } + + return 0; +} + static void cdns3_host_exit(struct cdns3 *cdns) { platform_device_unregister(cdns->host_dev); From patchwork Thu Oct 22 01:39:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 297225 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=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, 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 A9539C2D0A3 for ; Thu, 22 Oct 2020 01:40:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6179F22206 for ; Thu, 22 Oct 2020 01:40:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="WM8qJzjs" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2894766AbgJVBkP (ORCPT ); Wed, 21 Oct 2020 21:40:15 -0400 Received: from mail-eopbgr80044.outbound.protection.outlook.com ([40.107.8.44]:61966 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2894762AbgJVBkP (ORCPT ); Wed, 21 Oct 2020 21:40:15 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iibAgo90WFFX6I61q7yTO6yt4+MCrPDYMFj3CWmY0EfpNNAE14mooV2b9WAx7yAPTSTJfoN34MK+rf2jy+NjqpaC8C5W8oPcj9Xo2ZgcpLLD34fpgRiklJNXTwIyIJRqZMLkl5XJiBL9airF89olGenzauM03kukO0L9FhhYfaq/1z+ITj7SuhfcLDAheNWEU1C/3yyMzltA9EWS6a13mYkubqilfXiQJLLv+5f8WnkSWdsTgH89m685TefXBtk1WRbIEKDqYfsNmHpoCCUGeBf/mmLxn9js4CrfZpq58tUagPjZBLOR7KqeOzeqWvjVw7K+7QGRR3qQVhTMqFa+Gg== 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=7Bh8tk9eMk01YgIv0e23rRJLEGncWZ3KfQOb0P3iqR8=; b=mainJpLwK1A929vslNdu0XBfunkrohDwsSEb9kPaE7kNsXz8eMxUX8m6TjZNl6G/a2XPZskyZo2l5/V6hvFal/Q2xHH9T2Qh2T7IJYwyGr8wS4xfF1whkT32Z9510ul4r/majPu5ha1ritaKQSonQiTKWtb8ef6G/aP8RZRQg78mUSNCVNbbaqzo8FdqtPeb88k7yDLEWhTshe2bqFd037c/cqqcPJexMhyrEm5Mv+aqQQnAnK0pwU1APwf6DOk9fgiH5U4ZEFf8vcdYF/4wR5e9WKNHH87c+OP/Ef4nnfb+1XZKzz3wa7uPj6BKohHuQJEQyA8+4+qn1v2IJrCISg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7Bh8tk9eMk01YgIv0e23rRJLEGncWZ3KfQOb0P3iqR8=; b=WM8qJzjsyo16AzioVOoYnhJG58E9eBLCukY3oc0cO8bWbFySUn3RSSg1W10OJ1Uy92jIAOvCDhvKFNvkrTYJPSozAIUAbmkrbQKxpe93ZI3iHV7KSJLaqA/pnwCFKVLEkL6R7X/lDUtvKdVCI1q5LctU/EQTGUumkp+S9ynX5cE= Authentication-Results: cadence.com; dkim=none (message not signed) header.d=none; cadence.com; dmarc=none action=none header.from=nxp.com; Received: from AM8PR04MB7300.eurprd04.prod.outlook.com (2603:10a6:20b:1c7::12) by AM0PR0402MB3539.eurprd04.prod.outlook.com (2603:10a6:208:1b::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.27; Thu, 22 Oct 2020 01:40:11 +0000 Received: from AM8PR04MB7300.eurprd04.prod.outlook.com ([fe80::b902:6be0:622b:26c2]) by AM8PR04MB7300.eurprd04.prod.outlook.com ([fe80::b902:6be0:622b:26c2%4]) with mapi id 15.20.3477.028; Thu, 22 Oct 2020 01:40:11 +0000 From: Peter Chen To: pawell@cadence.com, rogerq@ti.com Cc: balbi@kernel.org, linux-usb@vger.kernel.org, linux-imx@nxp.com, gregkh@linuxfoundation.org, jun.li@nxp.com, Peter Chen Subject: [PATCH 2/6] usb: cdns3: host: add xhci_plat_priv quirk XHCI_SKIP_PHY_INIT Date: Thu, 22 Oct 2020 09:39:27 +0800 Message-Id: <20201022013930.2166-2-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201022013930.2166-1-peter.chen@nxp.com> References: <20201022013930.2166-1-peter.chen@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR04CA0190.apcprd04.prod.outlook.com (2603:1096:4:14::28) To AM8PR04MB7300.eurprd04.prod.outlook.com (2603:10a6:20b:1c7::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from b29397-desktop.ap.freescale.net (119.31.174.66) by SG2PR04CA0190.apcprd04.prod.outlook.com (2603:1096:4:14::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18 via Frontend Transport; Thu, 22 Oct 2020 01:40:08 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 6e05649b-a4f6-46eb-3fee-08d8762b6a4f X-MS-TrafficTypeDiagnostic: AM0PR0402MB3539: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:626; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GVHmE+dgFtuvZw0M5L0fdmhHFaifR4GPinRZmBE7FnA3klLc6e5h9qcbxfpB4ckzAaz/zs4TSE/QYHfdtqcvu1s0q4YrFzjqBLiLGqZqjDUxjwoaiG2nbKl/VBFBuToFuzH86SJq363Cii3z6+OXWf1EN24T8YsdYGIgRuiEGMxVUlomFr7yboTL3lUHdf5OJJXunUoixiHB3YiRg7JZUoBrcBgl9a6R7bndfeDI8S5jxyG9fUVA0IHGQ1eFZKAKBrF8x99keeYGkk1T2kTMhRS3NAN+Jac7Dw3kgFX2xr+HvqM+wsTJVDf5+boosoxx+sK5slVyDD272OK0prAy0Q== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR04MB7300.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(396003)(366004)(346002)(39860400002)(376002)(66556008)(66946007)(66476007)(478600001)(5660300002)(6506007)(26005)(6512007)(44832011)(6666004)(8936002)(4744005)(186003)(16526019)(1076003)(86362001)(4326008)(36756003)(52116002)(2616005)(956004)(6486002)(83380400001)(8676002)(316002)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ywrFir/PkoDd4mgo3UAVi0BFae/+XvfJwWHkNg7PbMqv+Yv/V5tC9O2Fy/QNxPef259lfzbA/0yB0CCdkB6lPE2TYvGUhzxp3hZ2ZDcPAhL8tp2U+uCM6uh4BpdPIccbEiA4o0gq71KOWE7oTaxhIPRV4Z7lgLeuELePPaThNO93/0jJiKApoI75sTYu27vv9azDJT4oKllJpe8Qwct0yoxDLUs1vtxT7G2jBqEhvTr5MrecOBVXoL2uhR32qC31CbKUDNsXns1vzOG68ECF6d+4NsoEl3eedflvFCwibomB7Olipk5KF+BIdPuVMGdaPD+2ryjqbG2stUz98vajKaAFrMYBzwJRxhOh96LUbM7YmaEumswJM0JeGN1CubgxISAaemDMstVY3SHlGJfu5VKnB/8Hm3hmGRZnAkMiqI267Uhgtw7cDxmK4WNvmaSMY9lUlerev2za72ANS+8ETnJnZSa60WXVcNqRrhXUVEWFrev1gE6YvY5mLq3oojfNwf99miNON+6O84sBtQxkDBssFw3856R173PNiJ+CXtFTyl+bRXrA5yQv8d9TAp496k1CO80e1sYb+6GIwjTWaS0VDRFp9WktibFblxDrRSLzMLWjTj/cb+79By39+2Ei75KsEjauuRsPXkvE3alr+Q== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6e05649b-a4f6-46eb-3fee-08d8762b6a4f X-MS-Exchange-CrossTenant-AuthSource: AM8PR04MB7300.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2020 01:40:11.4992 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: smtOZ901JO3/iIuQ8GArnPm1KA0ATEdri1Tf+B+b00VPwFaMmTuIJIPq7tAB7/DWpjAxaVKC9KJ2hqHBbcstGg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3539 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org cdns3 manages PHY by own DRD driver, so skip the management by HCD core. Reviewed-by: Jun Li Reviewed-by: Pawel Laszczak Signed-off-by: Peter Chen --- drivers/usb/cdns3/host.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/cdns3/host.c b/drivers/usb/cdns3/host.c index de8da737fa25..f84739327a16 100644 --- a/drivers/usb/cdns3/host.c +++ b/drivers/usb/cdns3/host.c @@ -24,6 +24,7 @@ #define LPM_2_STB_SWITCH_EN BIT(25) static const struct xhci_plat_priv xhci_plat_cdns3_xhci = { + .quirks = XHCI_SKIP_PHY_INIT, .suspend_quirk = xhci_cdns3_suspend_quirk, }; From patchwork Thu Oct 22 01:39:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 287463 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=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, 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 71A8CC55178 for ; Thu, 22 Oct 2020 01:40:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DD0A822206 for ; Thu, 22 Oct 2020 01:40:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="lpf2cKdP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2894767AbgJVBkS (ORCPT ); Wed, 21 Oct 2020 21:40:18 -0400 Received: from mail-eopbgr80044.outbound.protection.outlook.com ([40.107.8.44]:61966 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2894744AbgJVBkS (ORCPT ); Wed, 21 Oct 2020 21:40:18 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=etiVMYPxp04PcP7VsgZP71AceeTMO5jhRX+cxphDxBRxGB9CTzrIMEbSPdH3cDHjI4ZTkYxVYOuwPixVT5lxgiWbWpwy4jlEk+yPGSsUBt7VTCp/br+/Bh4aXFEOJcpkwVEV2eEUJZlsd7T7KssR7FSXK8bW6vi47rH38S9Mk8tIY21wKoervwOBZAyCAsZhdRKJmHfK5elEeBD4BrwVjaBu+EvFbBNkxtiCIHIF3guiBSfxgzJ3OWHXTrBOTQPsWuxPLFm/xIouV1t8PLYsupTmZt57/eEUvX6B3hiwIAAqVs0zI4r2MHQVUNFTU2ZR9yw3/ZFCwWMX15DO+sYM2g== 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=u1gyZSRk77KS5XfPQ2ePuD2gn4hDkc9lOhCH0pZZR8M=; b=Pd5+lGByfDWDyj4VdGLRVPoEK+hOiawydfRTDSYauQhjspiEfNXZp8nNXRWGUbZ9KcZ17ljqNfWFghDz1Zm2Jn5BOYFWUDfbi4bS3dK1JIBHIXjSBFfmKH3FLCgKXtc7jJJbY+YW5GCSxa5wnqFcqLAPL7kQVPpgQsgGzWkc+Xc4o+e3l99x7Jcyh42fqpzjkfQ+x1PPW3hmq58RsgSQi/nhSusTdYxnO9btFfZWDGj+OvX5rM3v89Qk/h1HflU+ftIMbdhpETYH0Xqtiw60ENpZj+2UBhmLGw+mUFlW8h34ztr42lI9YFY4EGkJCfwODkKdWUWmBPi3d/obOPnRNw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u1gyZSRk77KS5XfPQ2ePuD2gn4hDkc9lOhCH0pZZR8M=; b=lpf2cKdPHveSZbmpGBvvGNbKTlAYzHzIjs94Vp1qbwhwara1bRthkhylii2P5r6QohoUwOqB7U9Yvhxmr3YFoPejrul8KNYhgz6wpGF60O2bkdVvAe/uPPmvL3YSkoaSK67vc9+X2RT+HAhJYQgNO/kxrc3n/vaY/bfI4fSMGog= Authentication-Results: cadence.com; dkim=none (message not signed) header.d=none; cadence.com; dmarc=none action=none header.from=nxp.com; Received: from AM8PR04MB7300.eurprd04.prod.outlook.com (2603:10a6:20b:1c7::12) by AM0PR0402MB3539.eurprd04.prod.outlook.com (2603:10a6:208:1b::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.27; Thu, 22 Oct 2020 01:40:14 +0000 Received: from AM8PR04MB7300.eurprd04.prod.outlook.com ([fe80::b902:6be0:622b:26c2]) by AM8PR04MB7300.eurprd04.prod.outlook.com ([fe80::b902:6be0:622b:26c2%4]) with mapi id 15.20.3477.028; Thu, 22 Oct 2020 01:40:14 +0000 From: Peter Chen To: pawell@cadence.com, rogerq@ti.com Cc: balbi@kernel.org, linux-usb@vger.kernel.org, linux-imx@nxp.com, gregkh@linuxfoundation.org, jun.li@nxp.com, Peter Chen Subject: [PATCH 3/6] usb: cdns3: host: disable BEI support Date: Thu, 22 Oct 2020 09:39:28 +0800 Message-Id: <20201022013930.2166-3-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201022013930.2166-1-peter.chen@nxp.com> References: <20201022013930.2166-1-peter.chen@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR04CA0190.apcprd04.prod.outlook.com (2603:1096:4:14::28) To AM8PR04MB7300.eurprd04.prod.outlook.com (2603:10a6:20b:1c7::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from b29397-desktop.ap.freescale.net (119.31.174.66) by SG2PR04CA0190.apcprd04.prod.outlook.com (2603:1096:4:14::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18 via Frontend Transport; Thu, 22 Oct 2020 01:40:11 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 00d753a4-6bd2-4daa-fd63-08d8762b6c3c X-MS-TrafficTypeDiagnostic: AM0PR0402MB3539: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1443; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xZKwxdJ+EL2C5xVmAMUQ0CfINNxeNKnAAqEYlhOTe0VfWDu59C9LOT0f/rPoq1Xz6drsV/Hwr76+Zw6NF0gUox3qDpEgC6qeTWoYNhaBCZgfpbA6FyX88/YRaqtGa8QUj1HMU2dka5Ch+H4w99L78E1puK34QycoVARmRqJ3vp2qMvS6P0chT0zKl95CIWm4K0dHAEqsIVfSRG9JoqWfu6lTuM5hhtNuXIeSx4mas/VW5Br8pAdX47T2ScApaSEts6eDev+U9qodRaBiV0dMl4exFmOX4EHeNAdrZ8WQJvISUTWWHqEFBSosK+v7XY+tPgC8kmq55PsXniGea3cxTg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR04MB7300.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(396003)(366004)(346002)(39860400002)(376002)(66556008)(66946007)(66476007)(478600001)(5660300002)(6506007)(26005)(6512007)(44832011)(6666004)(8936002)(4744005)(186003)(16526019)(1076003)(86362001)(4326008)(36756003)(52116002)(2616005)(956004)(6486002)(83380400001)(8676002)(316002)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: QQsfP+Z/rLpMkbxE6IM3EOOEWabIuITF2kNZXX2g/IQ5+ZIMoJ5esvbK/h7dQuhbIQvvUwXfjnYCDLLkzW+Xyk0iJzvXt5be2J4f5dx1OtEhF2WhAyO94LcTKFG7CovBbIYqmJKSf5BMTu4TATdCKaHnOHiT/YL0tp3TL7ypAkwSUVenqaz37sC5aaHs+8bpB7XsxzT7ZYH3DIZuZgrJFpen6lrNr+IeIMuV3A5/Gp2bnQFuthJJ4X4Fe/Vk2Xw8LXYKWV4T74XskDRezYdSoUoJujmDfZp86tHOzIYDkywZjpUHr51N3Az6TjDa/TLIFxCMNm6sgGh9R4VPuzIzjWlfSbWuoflePLCv2RPJzWgEwoyB9VT0yoX+oL/suO/Ff0DfOdvUam2uFro+8MygNn+JEsbhCHDEc6wAg9L3xkC6uUtnAFMVsbbw/JC0WrN3pLfTlrFq+GhcHI0TCZVhK+HMuK+1BLWA9g8lkmx5iEg2i1sR08CAHgWkxgvVSlSMUnc+trwPojT6AD1BcY2S+6e6vcbcT7RnxeyKB6PVeOEWtfWJ/SqO8nSuJFE8BYR8iPFeADzPynkaTINpa61tdfRV7b7zq7kIZHHixTPH88+uJq6/+AdR8iXs2sE4zDpAPdHCj1JEKGTsojCgS6TOWA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 00d753a4-6bd2-4daa-fd63-08d8762b6c3c X-MS-Exchange-CrossTenant-AuthSource: AM8PR04MB7300.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2020 01:40:14.7430 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: y++/+fl958eKbedTaxtY55WvRA/Nt7hsYwhMCz9I9rfX8uh6ZZxjb/tyjFX9Fl4spERGkIp3/80vfBIzuZ77wg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3539 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The Cadence xHCI doesn't support BEI well, it causes the disconnection of ISOC devices can't be detected, so we disable it. Reviewed-by: Jun Li Signed-off-by: Peter Chen --- drivers/usb/cdns3/host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/cdns3/host.c b/drivers/usb/cdns3/host.c index f84739327a16..b273ae2231d5 100644 --- a/drivers/usb/cdns3/host.c +++ b/drivers/usb/cdns3/host.c @@ -24,7 +24,7 @@ #define LPM_2_STB_SWITCH_EN BIT(25) static const struct xhci_plat_priv xhci_plat_cdns3_xhci = { - .quirks = XHCI_SKIP_PHY_INIT, + .quirks = XHCI_SKIP_PHY_INIT | XHCI_AVOID_BEI, .suspend_quirk = xhci_cdns3_suspend_quirk, }; From patchwork Thu Oct 22 01:39:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 297224 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=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, 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 CFDFEC2D0A3 for ; Thu, 22 Oct 2020 01:40:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 78E6821707 for ; Thu, 22 Oct 2020 01:40:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="sos4Z+ME" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2894770AbgJVBkW (ORCPT ); Wed, 21 Oct 2020 21:40:22 -0400 Received: from mail-eopbgr80080.outbound.protection.outlook.com ([40.107.8.80]:23295 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2894744AbgJVBkV (ORCPT ); Wed, 21 Oct 2020 21:40:21 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hOkKWOKd4ml33cnVqgnZJOkjmxQaVdaXCX0W5VhnNgd2sLT0Gb4PcOYfDpTbQw/geDUIKbRXuQwxvKUMk+re5J2y2iNjbFp4x/A8+eN26D6wvAozjRNiH+K8ctOHDo7QzwEG/oQSh5ndfsHgcbDxQQUCU3BrrO1BRaYlbFNBzinbvy9YmjtLqFTNkIgJj74QPk4aLSG/YTB9tcKwn1UVLa3e1ZlIy9nUJyjm1+nQ61hLe/7wcvhQD4V9oYhaDxhT42+vslH/ZYnlVLFKsAxGwlOH6a+U3683JYzq2ribdbZeXzzc5sVcFdWqimGpoHWIFd7Ad2Bgk/RCccAcsBkGIA== 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=zrT4UFQfalcNTPHcOnC9pElI+mt1QaMGwF4Q7ISbCnM=; b=MLnlIAUsFCCd1s7dNNP1+6PfRkoqKtuCbDGgCzTqSdGfSfSdRSUFZvk51PbQsQTTOVaGpbhUktpM+ParH7yJxE+Mtetimr76GPTu08aTV4LwcJT/FfH1B9bqyV0AEBE8hDcIdBPLf9XreFdvGp0tPPOzRw8heOWV4Wr1EDHm60YuI3P/ccuQiKVIy6cpXRiPDi7Dw8NF0i9Nq1x6mwUuZ3q9DShbvAaS53A8ITAm1QxdGf+Mmc6Xr3E45K3vNyLqwN5dxDnp3LqPoJ96eFAbblxSjmZAKXH8igy5U2BU8CcVcIjtizqrwJRDI448+mmupG5vRpBEdsNfn+C9hUJm0Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zrT4UFQfalcNTPHcOnC9pElI+mt1QaMGwF4Q7ISbCnM=; b=sos4Z+MEmpWmEozoPipvAesHNUnhCCo6adN4UKd5xALC2AJqi1+h6PMRmaXHfAVzv9NMTK1iMvcN02nlWg3SHIfNSZ9245UMVg8AK8ZjNrawPepRJrxDklbErqfX/WDnZHiHV2PYx7s+aG32ykIWDoHQamaqf1kRX44WLNZq884= Authentication-Results: cadence.com; dkim=none (message not signed) header.d=none; cadence.com; dmarc=none action=none header.from=nxp.com; Received: from AM8PR04MB7300.eurprd04.prod.outlook.com (2603:10a6:20b:1c7::12) by AM0PR0402MB3539.eurprd04.prod.outlook.com (2603:10a6:208:1b::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.27; Thu, 22 Oct 2020 01:40:17 +0000 Received: from AM8PR04MB7300.eurprd04.prod.outlook.com ([fe80::b902:6be0:622b:26c2]) by AM8PR04MB7300.eurprd04.prod.outlook.com ([fe80::b902:6be0:622b:26c2%4]) with mapi id 15.20.3477.028; Thu, 22 Oct 2020 01:40:17 +0000 From: Peter Chen To: pawell@cadence.com, rogerq@ti.com Cc: balbi@kernel.org, linux-usb@vger.kernel.org, linux-imx@nxp.com, gregkh@linuxfoundation.org, jun.li@nxp.com, Peter Chen Subject: [PATCH 4/6] usb: cdns3: add quirk for enable runtime pm by default Date: Thu, 22 Oct 2020 09:39:29 +0800 Message-Id: <20201022013930.2166-4-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201022013930.2166-1-peter.chen@nxp.com> References: <20201022013930.2166-1-peter.chen@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR04CA0190.apcprd04.prod.outlook.com (2603:1096:4:14::28) To AM8PR04MB7300.eurprd04.prod.outlook.com (2603:10a6:20b:1c7::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from b29397-desktop.ap.freescale.net (119.31.174.66) by SG2PR04CA0190.apcprd04.prod.outlook.com (2603:1096:4:14::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18 via Frontend Transport; Thu, 22 Oct 2020 01:40:15 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 18120d88-5a43-4b72-7ba9-08d8762b6dfb X-MS-TrafficTypeDiagnostic: AM0PR0402MB3539: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4941; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 56VgNKh8VfjDPSLmruKHyNrtCGBcwSwGYNX9PWgcRp0KO22vpjfInCX6wxsKl1XSVB22ZRCrEw2YLV4gR06nsCroFTdRo6FMa+XtswaN16fsl1fZBxzyUjBJR/14IHQZ11hSmfQLT1DlkSY+35F/0+17WSgY3fVhQ9zIdlMTLdfkAb5g0pRakHEDiuts49TdTF+uddDjXD8zCS7bBJLytQ8RY5CY6TXpOW5o1g389iM7bbb1ilPt56AUQDQn53myPrXLvVW9ZkWo5cDVX5VQ2qDr/mIcWHtKYM01Ndw3qiVuMV68G/Z6u4JBb+AMjYEJXOn1PYMwQALDyUhY6RvjZA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR04MB7300.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(396003)(366004)(346002)(39860400002)(376002)(66556008)(66946007)(66476007)(478600001)(5660300002)(6506007)(26005)(6512007)(44832011)(6666004)(8936002)(186003)(16526019)(1076003)(86362001)(4326008)(36756003)(52116002)(2616005)(956004)(6486002)(83380400001)(8676002)(316002)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: C11CIU9/mzxsfrhq5fr9/zbARSxTvjvnEP/j9+6VXzYLyo7THhnnYb45SejFUmU3yC1h+LINrxABJxActNpdDn9VcV/UEFI/dr9oHnuOQrKvDP63saqUVIVZtynBfDpxh/Fhi38cZ13Kp5leSWQvkFh/zKASDwvUUBlxNhhPRhAPaD9Jg//ZLffBSbdZa8lfP0aaT3dbgz1FaTJB7v/CN/faOVMoq703L0ROwGDE8NSdqSwGZU6DRVXaVBJsDRfGJhQGXByaG3wHDwpldc8MekplFJcfcLjmfG+s78yUD+812LO1Wco4rX/uHoMPyY2WAcFydcnNx8UEFc3p5MRbMqBCK7UZPHBO0/pO//2cIzWAuYfv7K6xq5ZYGveMLUHJarP2AQQmOJXHVrzU0CHF+Yv9zn0UJU5Jcm4uvaG9Nrh5Et363AwGFDMTf4QWqD4SK6SgolcSPYXSQ2wzWXxhOc8EWpxt+ptwp5SmVYyEeS1MiYyhFEK8vRH9MHB5QDs8BfrHOfgwSFm78MnVMbLRumilszgImPa0rcsBehzC1N/hsJqJd7BgPDpql8u5o/97qKc41TZsu6XqydZA82AEP+HRc7LUIEkMWOazQKkJ4PBvPOJeS43VQKBkKKoIiPm+N7wHn5vjAQT7igqs69IZ5g== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 18120d88-5a43-4b72-7ba9-08d8762b6dfb X-MS-Exchange-CrossTenant-AuthSource: AM8PR04MB7300.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2020 01:40:17.6213 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: nBx5XixcwgeRrRkBddGhfj//yZXrsnmvs9lg+7UfEyiqgp2KI9RSKyLW/Si/Pq602ozuH3VQILsY/s98UB766Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3539 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Some vendors (eg: NXP) may want to enable runtime pm by default for power saving, add one quirk for it. Reviewed-by: Jun Li Signed-off-by: Peter Chen --- drivers/usb/cdns3/core.c | 3 ++- drivers/usb/cdns3/core.h | 4 ++++ drivers/usb/cdns3/host.c | 20 +++++++++++++++++--- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c index f2dedce3a40e..54d841aa626f 100644 --- a/drivers/usb/cdns3/core.c +++ b/drivers/usb/cdns3/core.c @@ -559,7 +559,8 @@ static int cdns3_probe(struct platform_device *pdev) device_set_wakeup_capable(dev, true); pm_runtime_set_active(dev); pm_runtime_enable(dev); - pm_runtime_forbid(dev); + if (!(cdns->pdata->quirks & CDNS3_DEFAULT_PM_RUNTIME_ALLOW)) + pm_runtime_forbid(dev); /* * The controller needs less time between bus and controller suspend, diff --git a/drivers/usb/cdns3/core.h b/drivers/usb/cdns3/core.h index 8a40d53d5ede..3176f924293a 100644 --- a/drivers/usb/cdns3/core.h +++ b/drivers/usb/cdns3/core.h @@ -42,6 +42,8 @@ struct cdns3_role_driver { struct cdns3_platform_data { int (*platform_suspend)(struct device *dev, bool suspend, bool wakeup); + unsigned long quirks; +#define CDNS3_DEFAULT_PM_RUNTIME_ALLOW BIT(0) }; /** @@ -73,6 +75,7 @@ struct cdns3_platform_data { * @wakeup_pending: wakeup interrupt pending * @pdata: platform data from glue layer * @lock: spinlock structure + * @xhci_plat_data: xhci private data structure pointer */ struct cdns3 { struct device *dev; @@ -106,6 +109,7 @@ struct cdns3 { bool wakeup_pending; struct cdns3_platform_data *pdata; spinlock_t lock; + struct xhci_plat_priv *xhci_plat_data; }; int cdns3_hw_role_switch(struct cdns3 *cdns); diff --git a/drivers/usb/cdns3/host.c b/drivers/usb/cdns3/host.c index b273ae2231d5..08103785a17a 100644 --- a/drivers/usb/cdns3/host.c +++ b/drivers/usb/cdns3/host.c @@ -52,15 +52,25 @@ static int __cdns3_host_init(struct cdns3 *cdns) goto err1; } - ret = platform_device_add_data(xhci, &xhci_plat_cdns3_xhci, + cdns->xhci_plat_data = kmemdup(&xhci_plat_cdns3_xhci, + sizeof(struct xhci_plat_priv), GFP_KERNEL); + if (!cdns->xhci_plat_data) { + ret = -ENOMEM; + goto err1; + } + + if (cdns->pdata->quirks & CDNS3_DEFAULT_PM_RUNTIME_ALLOW) + cdns->xhci_plat_data->quirks |= XHCI_DEFAULT_PM_RUNTIME_ALLOW; + + ret = platform_device_add_data(xhci, cdns->xhci_plat_data, sizeof(struct xhci_plat_priv)); if (ret) - goto err1; + goto free_memory; ret = platform_device_add(xhci); if (ret) { dev_err(cdns->dev, "failed to register xHCI device\n"); - goto err1; + goto free_memory; } /* Glue needs to access xHCI region register for Power management */ @@ -69,6 +79,9 @@ static int __cdns3_host_init(struct cdns3 *cdns) cdns->xhci_regs = hcd->regs; return 0; + +free_memory: + kfree(cdns->xhci_plat_data); err1: platform_device_put(xhci); return ret; @@ -102,6 +115,7 @@ int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd) static void cdns3_host_exit(struct cdns3 *cdns) { + kfree(cdns->xhci_plat_data); platform_device_unregister(cdns->host_dev); cdns->host_dev = NULL; cdns3_drd_host_off(cdns); From patchwork Thu Oct 22 01:39:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 287462 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=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, 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 2594CC2D0A3 for ; Thu, 22 Oct 2020 01:40:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A3C6F21707 for ; Thu, 22 Oct 2020 01:40:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="OqORFdUs" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2894771AbgJVBkY (ORCPT ); Wed, 21 Oct 2020 21:40:24 -0400 Received: from mail-eopbgr80080.outbound.protection.outlook.com ([40.107.8.80]:23295 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2894768AbgJVBkX (ORCPT ); Wed, 21 Oct 2020 21:40:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nt5kCkZSYM4aynX8Woflh4v8EQFrlStbWB8BurwUyH8n869isYDFZBWA8XBnFr+fzZtZAp+lJiazzHsXf9754X0L5Vg09fIKccH3q/1xWppIfZH7R0HZk8ett0j8/R4sbS2S0JQx9WPtFLsnz9GEo+sTMHodj5MbDGffrsJFAsc7mZzutzyZGirVZyfqQt7pSK+faN1Cb2nVDqaD1W2t3X//DmFUhBpj/0f90V1R2HRHWYTfeY93kD6XKvTQGEKAcWeccFn4hLA1EHToiZjumxkisDFSAc+bfMaW78qPkHX2y9bzOwajOHiYwplcb0SOR9et0Cc2kXrTQ93fKtxaAw== 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=77AXOuqWcAv9a+mrENmQCNIU0XPTsJ3NuVrAYcUnhbI=; b=BcXtAq0GNI4bSzXSW9wvlybXxBmxUUDcfE6eh97NIiZTbuLAoZf1IBsGM/47ZgDbwm0MUH1wpUYS0hZU587FcLRGmsovAXvoZGgvHgrwETjfN0M6qos7nFO0nnwMQsyY5GGW58J6kEENHmtFfFMs89iJGnBO5Y85jdzrkZIAWgqnSm71dI47CNL2T8Wf+csKy29I7IQlRki5RvVUjMLaGnEApiDDx9QClS2hw1xeg5R3mnfUV8tORaBeqRchgdiXHYOHigFXN5FWbe5GAXJfmsigdh1Z5aWupscTkXTc03bHm2PfLzHPICokWaXXGMEbQLGu+0fzJJjsjx/l+znYdg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=77AXOuqWcAv9a+mrENmQCNIU0XPTsJ3NuVrAYcUnhbI=; b=OqORFdUstDEKSTKUU3anUA3+MAPAq4ojKaKp2yizUfFuoO7fzw7izgnAkb3k/HqIAqbIXFzY6924SY+Ratp+QmHre/++C+DCJ0OyjdrP7jsz9uaWcg5qfrmTfJ/41UWy0PWwOIGUr1cWHUdz0abWt9vCNq2gNIfCV3Q2tFngX/U= Authentication-Results: cadence.com; dkim=none (message not signed) header.d=none; cadence.com; dmarc=none action=none header.from=nxp.com; Received: from AM8PR04MB7300.eurprd04.prod.outlook.com (2603:10a6:20b:1c7::12) by AM0PR0402MB3539.eurprd04.prod.outlook.com (2603:10a6:208:1b::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.27; Thu, 22 Oct 2020 01:40:20 +0000 Received: from AM8PR04MB7300.eurprd04.prod.outlook.com ([fe80::b902:6be0:622b:26c2]) by AM8PR04MB7300.eurprd04.prod.outlook.com ([fe80::b902:6be0:622b:26c2%4]) with mapi id 15.20.3477.028; Thu, 22 Oct 2020 01:40:20 +0000 From: Peter Chen To: pawell@cadence.com, rogerq@ti.com Cc: balbi@kernel.org, linux-usb@vger.kernel.org, linux-imx@nxp.com, gregkh@linuxfoundation.org, jun.li@nxp.com, Peter Chen Subject: [PATCH 5/6] usb: cdns3: imx: enable runtime pm by default Date: Thu, 22 Oct 2020 09:39:30 +0800 Message-Id: <20201022013930.2166-5-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201022013930.2166-1-peter.chen@nxp.com> References: <20201022013930.2166-1-peter.chen@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR04CA0190.apcprd04.prod.outlook.com (2603:1096:4:14::28) To AM8PR04MB7300.eurprd04.prod.outlook.com (2603:10a6:20b:1c7::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from b29397-desktop.ap.freescale.net (119.31.174.66) by SG2PR04CA0190.apcprd04.prod.outlook.com (2603:1096:4:14::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18 via Frontend Transport; Thu, 22 Oct 2020 01:40:17 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 04c0ae01-1ec2-4942-2e07-08d8762b6fc2 X-MS-TrafficTypeDiagnostic: AM0PR0402MB3539: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:324; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bpJyn8codxvtfbKQqfeFcWfWhkqB8bGGUQtY5owqWSOTpDKRdMXZkp2jmYPt5Tc3BG4piRALXLc8BncwF+m+H2sQqjOx3sjFUK3g4CgVSBjceaamPXDt8SE06fQ45Vmq6kpxfXRvLq1YTiwZwerDnQAEtWYZ4vjnt06D41tiab4xVtsYMCUb10CxfcpjXdSM42ijtP5lNaxySvmzIV376vsEtdbW2x3SziQViq5igK2/jDxzcq4i9+8xHhnSYc14RnVwr0gbkHW1ZqKe2pXfsdE0XJic3gxLNtnzMuqiUxEUSLib6rni5LIjrmZ/idRdhAb7vMmBPbradk+0XSyYfg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR04MB7300.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(396003)(366004)(346002)(39860400002)(376002)(66556008)(66946007)(66476007)(478600001)(5660300002)(6506007)(26005)(6512007)(44832011)(6666004)(8936002)(4744005)(186003)(16526019)(1076003)(86362001)(4326008)(36756003)(52116002)(2616005)(956004)(6486002)(83380400001)(8676002)(316002)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: LmglVFIC46A7VCh+OzX5NE9V5uNDJwF6iGyV1Xnz5qJ+wcPZ30/h+ZeDNPSr8s9W66BBPQA5Vg8hifgc2ZQk+HZgR0cZw4Y+04FXvgrTG1EMDirsDwSVT6tOAE90yZ7prHt0cKVE0JIABOosX4+nZCw9Ray/1SyhLy9qL8e+Qdey1fbgYj8NqyatyfviSqgmQxGvsBuK2mVt31i5nvsheHCEEb+84INj0WFq2Urks+G9Zj3DonyjV1W68NkIaQm/IVRWNU7V/fSYywOeayuFJksyBuy60w5WcI+Tc6tejkBlMvpr+dD3+pVzvMDAxiClIobgSGW7hNaDd8n5OZEiQ9XQjr9/H+6cLa7lzjKdiSX/GeozLlEHKMDYkNRmkmN5GtMN8+9ECxGwp6tcMFl504old4s9+zns3gIhOfvN7B7Y7Pluq8tzMyX3Io+sQ0GjBRzO6nlXxIn4IRUjFW4+Tzonsc7+KfFEkVOIf4mR2+r4ym3kPijmIYhHjCqLwJKaIYRct3GoEFy/OTkstZ7JYHxL5y+jYybopmmeBSpd751a7fjt+0uXHa49eMFa6KAMZ2EMCiaLNIUfjJmZfg2SWs9+vLS8U0fk30h1f+MrpKSLwXrIgRwmvHHYhE0cTVlq58Uouggfq9kk2w9nNZ9gpQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 04c0ae01-1ec2-4942-2e07-08d8762b6fc2 X-MS-Exchange-CrossTenant-AuthSource: AM8PR04MB7300.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2020 01:40:20.6420 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 7LXsUv22bkQij6g+okwq14yYHg2RxURqo5bC6Bc/3eoZDOKJOpsta0YEY49guJiY4Vs3eXqsBPlHRuaUM30FGA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3539 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Enable runtime pm by default Reviewed-by: Jun Li Signed-off-by: Peter Chen --- drivers/usb/cdns3/cdns3-imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/cdns3/cdns3-imx.c b/drivers/usb/cdns3/cdns3-imx.c index 54a2d70a9c73..22a56c4dce67 100644 --- a/drivers/usb/cdns3/cdns3-imx.c +++ b/drivers/usb/cdns3/cdns3-imx.c @@ -151,6 +151,7 @@ static int cdns_imx_platform_suspend(struct device *dev, bool suspend, bool wakeup); static struct cdns3_platform_data cdns_imx_pdata = { .platform_suspend = cdns_imx_platform_suspend, + .quirks = CDNS3_DEFAULT_PM_RUNTIME_ALLOW, }; static const struct of_dev_auxdata cdns_imx_auxdata[] = { @@ -206,7 +207,6 @@ static int cdns_imx_probe(struct platform_device *pdev) device_set_wakeup_capable(dev, true); pm_runtime_set_active(dev); pm_runtime_enable(dev); - pm_runtime_forbid(dev); return ret; err: From patchwork Thu Oct 22 01:44:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 297223 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=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, 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 07984C56201 for ; Thu, 22 Oct 2020 01:44:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B4E6422206 for ; Thu, 22 Oct 2020 01:44:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="OndY0hOW" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2894793AbgJVBoz (ORCPT ); Wed, 21 Oct 2020 21:44:55 -0400 Received: from mail-am6eur05on2078.outbound.protection.outlook.com ([40.107.22.78]:5857 "EHLO EUR05-AM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2894779AbgJVBoy (ORCPT ); Wed, 21 Oct 2020 21:44:54 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kpTVPL///Dd/mCWaDL1vnDhfhUGhZi1wbrSn36M5LeS8/s+kokhPNPQ9hZ/X+mU4bx89Dgk7pBcd6R69brapBW9BjZc+egDLMmcxhElECeHWp/OKIFlqyE/aGpQ/xU2PZNgWBs4iGtMovs6tcQMRkd1tLWP/ZzsjTNM++5aC97oZffYm9zh5lJf5ckZGi//jLb92fFgk9fh2/99edY8Ds4UHvWDERB31JWfqf/UMhhlOxNhMqRJQ2yAK4baDyLGEqdcsDfu+ZKcWFuMzMJYE6BIVRp0jdWNEcP9l2qTtPyvmZkPaL5m4Fy0WuZqbs95jDH2YDdihj54TF2/NgKjC+g== 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=BS1g07yGxCYLJMy+io9URR4I6y5m3vkNJmZmGt6AvQc=; b=PxDom4URzK7+5Wt8CCfXoL83lmFUTy91eEb56gT63tOjvZLHFn5nRRl4fAy+QvZBJrt4TGI2SKkYj2D6Vge2lr9XbhrCYAmHEcQoBtfDaSnSsK5y0kCo7fabqsYn+BnJ3irCMGX7LumV8f/MQyxUrJErqk8JK4T3meHc6GnMU9vr3HI8C+/MlCoYnfewTwdrqV0Wu65eBOf08XgD/e4JojwPeUHwJvVhACqCyYE12PAQmog0UTz0Ne6VCs0as0hcsLvJo3UdVF5mSC/3Opady36NoXKldOLkYllZTdGaF020vkPnE+7Ljq4mBgF0HZ1+9Cn4KQTBuSqhm7tyoTGJTA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BS1g07yGxCYLJMy+io9URR4I6y5m3vkNJmZmGt6AvQc=; b=OndY0hOW7+8RW8oHeoJ/RbJ9eY/0IktfccaaMKXvlBx6skRNGXfgA9Yq3BE5W9K1CWbVl2p9SJegwyK0weBRfZjiLvqs7E+IX3iguT8EUKIU4zRkijHlZgxjvii8rjxHJk397Dfkt059BoB/bh6oOd5OhN41vWLH8REiyQpw6gs= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=nxp.com; Received: from AM8PR04MB7300.eurprd04.prod.outlook.com (2603:10a6:20b:1c7::12) by AM0PR0402MB3539.eurprd04.prod.outlook.com (2603:10a6:208:1b::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.27; Thu, 22 Oct 2020 01:44:50 +0000 Received: from AM8PR04MB7300.eurprd04.prod.outlook.com ([fe80::b902:6be0:622b:26c2]) by AM8PR04MB7300.eurprd04.prod.outlook.com ([fe80::b902:6be0:622b:26c2%4]) with mapi id 15.20.3477.028; Thu, 22 Oct 2020 01:44:50 +0000 From: Peter Chen To: robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-imx@nxp.com, pawell@cadence.com, rogerq@ti.com, jun.li@nxp.com, Peter Chen Subject: [PATCH 6/6] doc: dt-binding: cdns,usb3: add wakeup-irq Date: Thu, 22 Oct 2020 09:44:11 +0800 Message-Id: <20201022014411.2343-1-peter.chen@nxp.com> X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR02CA0102.apcprd02.prod.outlook.com (2603:1096:4:92::18) To AM8PR04MB7300.eurprd04.prod.outlook.com (2603:10a6:20b:1c7::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from b29397-desktop.ap.freescale.net (119.31.174.66) by SG2PR02CA0102.apcprd02.prod.outlook.com (2603:1096:4:92::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18 via Frontend Transport; Thu, 22 Oct 2020 01:44:47 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 651c9be8-9211-4af8-9ea3-08d8762c106b X-MS-TrafficTypeDiagnostic: AM0PR0402MB3539: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2vHdKwVQU2C0PdecpOtgrQHC92f4NyG06j2Al12wlUOcj267wZC2xcE53spMtanE5C9uFO5FfWYZgpcD7Jy7Y3mndcsKqnWkQt5n58rmP8I0swXrraNln/5Wy75z1mOF5WuqECt5zj3La4zvaVdTCwysq9fhRj3b9Rc+JbpkVKAME3ztawCRtETopD7LdQNLrxUO5iKw+hQBveqB4uYbetGNanYHI5iTLONdWwmjphgvheGmEzcx+fCn36t+exgFBsGq7vVFCpYRglz4norP16TYkLchQWt/4VLX0J3EnCtk/Ixi2Vdnl6zmCXMMTeiFJWwP0iot+U2Sh1GK0roVQA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR04MB7300.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(396003)(366004)(346002)(39860400002)(376002)(66556008)(66946007)(66476007)(478600001)(5660300002)(6506007)(26005)(6512007)(44832011)(6666004)(8936002)(186003)(16526019)(1076003)(86362001)(4326008)(36756003)(52116002)(2616005)(956004)(6486002)(8676002)(316002)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: TLYCKDqb49iBh5d8CoyLaoaZwtHHgjiN57dbxnYH0JiQbrnNqHpCrhHyLGwNh5yvaRUFupnkQrK3DGxlnYUHZR8r7g5W6LI59v2EfMtdiXpUnYfzB2Thklbx2fiJS95nW3cgrmdVPT7AoiVfM7mlSfIirMQw3Fp4vE8p0cUh+y0o6c6K8eFr5Fk2TMY/UiuGY+aGQ2boyLJYcnpeKsrHpGWvtVJP+5Xhk/krsCAcxF3sme20C3niD0jvxZlZ3h/PyDlT8FkvFp3NEciSeEW3E15zXpbWScEQ83i8OQFPRXkfYCV1z4TV/z5VTF8Apjf9vfO6r8bbTSzQbwdAkAZCVR8tA0oFhLJwpg6a87JCoB2sE2OxgH1iIZnL7dIktiYUWhyUK6Bp+9x9ZPxM+nshY+V/XuN/u3O6K2oNDvvC2QajP0S2nLYwKVMUIDNiI+nUu4wKE5teiQhYMuj5mIdE2FV5Cf/Xtl/ZCqTSGFP2WOjOw557Z+HnmRELKQXe3MyFvzbyBYf1vxb/TH0gC9T3DDjPxeNh2e8mBkVJH3SnJkBEWKTakoayAVLF7hgoxLFp6amtTTPJ6JROsSokZjp/TSC1tljU7q80Qw5vvIBOv2xO2ZaiGo/VbQxtWWg+TDAja35DQY0jRA1Qi30HhmHZCw== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 651c9be8-9211-4af8-9ea3-08d8762c106b X-MS-Exchange-CrossTenant-AuthSource: AM8PR04MB7300.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2020 01:44:50.2098 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Eh9tqBVANDVKX9HwxBrjRtRZoOqbR0VPkgbcHpX1h8UwUmFSMm04Ekm0+d/Y/182xwXqPIKfI3ZKCiJAl6DYDA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3539 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org To support low power mode for controller, the driver needs wakeup-irq to reflect the signal changing after controller is stopped, and waking the controller up accordingly. Signed-off-by: Peter Chen --- Documentation/devicetree/bindings/usb/cdns,usb3.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/cdns,usb3.yaml b/Documentation/devicetree/bindings/usb/cdns,usb3.yaml index ac20b98e9910..0171e64ef95e 100644 --- a/Documentation/devicetree/bindings/usb/cdns,usb3.yaml +++ b/Documentation/devicetree/bindings/usb/cdns,usb3.yaml @@ -30,12 +30,15 @@ properties: - description: OTG/DRD controller interrupt - description: XHCI host controller interrupt - description: Device controller interrupt + - description: interrupt used to wake up core, eg: when usbcmd.rs is + cleared by xhci core, this interrupt is optional. interrupt-names: items: - const: host - const: peripheral - const: otg + - const: wakeup dr_mode: enum: [host, otg, peripheral]