From patchwork Mon Oct 24 05:17:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 13016668 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74086FA373D for ; Mon, 24 Oct 2022 05:38:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbiJXFiD (ORCPT ); Mon, 24 Oct 2022 01:38:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbiJXFiC (ORCPT ); Mon, 24 Oct 2022 01:38:02 -0400 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2085.outbound.protection.outlook.com [40.107.103.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD8837C18D; Sun, 23 Oct 2022 22:38:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ikUfuL2PAjfCGyBO2zsQNCn6fExpscpFbVXczUIIrXn5NB3d/XQhLutHoiCcd7dpunSzjhejZJmTgfZk18QM/IzqHeN3M7FG21umBUjOLUvM7S1hOuaV17HtBiIoVcOF828OhN0KO1KmwkgeVdo1v/cCh1C8r4l110jbJwwK1aANMNkDajmtXJrEL1hSMKMj+hBrq5eh/qErekP5YCiNFhPpFkGlm5hoDrkvkNqfLK19HrMgcflsBW1veFYMwp8EJ2vOPJi+RhC7DtxBG98Ynw0DCmkXzN10EI+6dXAtjb090qmr0Vw7TgZMZz60H6vSxrumCt9lfqy44RxgMqWGWg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9fPBcDDAZLmmt5F/4O508m7jXJoOUs2y2gqctvwXznU=; b=cibf85EMveQBaRpTRIH2vCiqoUhSGG4MFNQurOou6jqSu1D/Mh8DovOE8U7taHj5AoypabDEXAG6M0fVQAZIfX7/jrlBfHEKQL21BzFh4Hv3RZCuHqSKYYJfbaEYvSXg7D8ZUrCXoEURBqLBH0gE3a3QBaVHjFVdeCfAkSFF7OXnDv5vnleQM5QTjp9/GAQYY1thV8cI2Lm6DTb9Uc5CI/gKqXo9YsE5JBO9MbZ9oOa5x/SjqqlXtXHzUu6X8UbJJfLgLq91zGNAZxJsAoYK3atsuIk/WUDb/UuthOE9I9qnySYF0yhcJZJ8Fjijqce9IvGcXRQKdfiX+hjZ71b48g== 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=9fPBcDDAZLmmt5F/4O508m7jXJoOUs2y2gqctvwXznU=; b=LFI6zdDDHKBp1KjR5xwNhkuRKabUArEMb8nMBnBEcrjxKoC67mX55eAxaRJSZnm4Xud3m+iPlswkXR2tAVZ8hUxlZ30yX2y01SGJ+qfMSXeJsDg6MLJUYyJb93VChc/NevSdWSktmplZztAbX0mCfEl6MQd2M+3nb7j6yuePlm0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PA4PR04MB9640.eurprd04.prod.outlook.com (2603:10a6:102:261::21) by AM9PR04MB8570.eurprd04.prod.outlook.com (2603:10a6:20b:435::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.23; Mon, 24 Oct 2022 05:37:58 +0000 Received: from PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::cc4:c5c2:db97:1313]) by PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::cc4:c5c2:db97:1313%7]) with mapi id 15.20.5746.026; Mon, 24 Oct 2022 05:37:58 +0000 From: Li Jun To: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: balbi@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, xu.yang_2@nxp.com, jun.li@nxp.com Subject: [PATCH 1/2] dt-bindings: usb: usb-nop-xceiv: add wakeup-source property Date: Mon, 24 Oct 2022 13:17:27 +0800 Message-Id: <1666588648-1047-1-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 X-ClientProxiedBy: SG2PR03CA0119.apcprd03.prod.outlook.com (2603:1096:4:91::23) To PA4PR04MB9640.eurprd04.prod.outlook.com (2603:10a6:102:261::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9640:EE_|AM9PR04MB8570:EE_ X-MS-Office365-Filtering-Correlation-Id: c9d569f5-2258-41d8-f509-08dab581e82e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NvtGL+h8/miG06gQWIhj047dvWCMLCGgGeLxOrxEENEbrt+eb+/q5ErTxq559LG7SQ19IzCJdXL3fSs4fsge3gaJNPq9NxljRpxk18RPLApaTBv5WsFZDusv8ViIO+4oWqYtq9WP+vArtQ2SP76xR43XRXb9e9zEU9bUxw5fAWqZ+tqdNzCzGOGbS2FFjpQbADfsnMZAgQgM5toJOrrTK4rndra+JMcClKB+ogL/+cGJY/Aj/TWUv/PR0lYW3KggZOLb1zJM1f3e7HXz5hPR4A6P1JzjW1huMNwG6P8oWR0uTE5aI1zwAyVEI4bmCniWaDj10hx6r4R89saFWuRBEWCdVjkXLPXZL9gVSKzFrd0oFsyOhW9+bA+3yuoL+biCJDWUzNKMWQMCq6rcUfhXmgK8I9w4lZ3HgrPgaBWYyDehPeX9l/4ohvF++CaWO3Cqxw76o+whAHFDmtFybyr3HlAYoZTW8f/0zOm1LVZ1/xP8MKm5EYxxzvBrWHw3KVvb26DKsjHn2WcIFlRj4x8GHmgjaRqANYWCSzRWq2NBi9la4KuMeN4sVt99nAKsMlVZRqZb6e+YCEI+bmX9S0f8IwGYrDvRLLrwOumXOES1ttaF6hxa6EpPkJyp1sgvZNCpG5Efeo4k3mtndSk+ZRtzWjxrGkBNf0DYszJCoJiMcR2bpH/qu5IfCJF0lKSvtCtlKcziyxT6tTI4lNgTVKxIsIec2c5FYp2FbMNP/Ily455Ies3dj7Oo0FepdXKsrURpz8Gu2hSvhL1z8GLJCAEz8A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9640.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(346002)(396003)(136003)(39860400002)(366004)(451199015)(66476007)(66946007)(66556008)(6506007)(6666004)(4326008)(8676002)(8936002)(36756003)(41300700001)(26005)(52116002)(5660300002)(6512007)(316002)(86362001)(38350700002)(38100700002)(4744005)(186003)(2616005)(2906002)(6486002)(478600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NkdOzDb6y39EyuvYqwKEbE1X3MGV0nQesdehvVVAb56r/hLxVycKGIQh2llRmTzg8X9hHjVS82+FHYvRgoIjJjQih+VCWOecevFXkuTCikGZyOPDKPrUIaE3tE5VrW3SnqSibbvwNOLBt/qG62P6+gGvsoWG/HyneP6P2kw/A1ogznvpoUVu1u5IayrurQMT1lG9sQUwu2KYuicsN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UHzWR+7TnUL3OCBeMmn7rDs55ounMz0TOMcE7BMgGMvByRdM4zR33MreCIU6Pf7kDo//Q0tPyQTYY3ksLYXG5q5VzXSWISyfRCyEbg+8YlfHgv6ne0UDciobSMiQoACllJHBX9WYVSGng9jSMCtNb5rqvdwCSspmBUz/LNTvpoPx/jNHifS9zsDSU92toWOO0gAJQu0CZcsUNnIvOzL2JCubXuqNsXcKR5VU21P8KKvw+/yW5QmJzA6r7Ux3SD7KHBkupz6JnT6WuWeUaOmvVgSaOnjeRbi2fbo0HMyTaaqB6r3PN58XUWEp5U X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9d569f5-2258-41d8-f509-08dab581e82e X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9640.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2022 05:37:58.0284 (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: Ulc3pkpZNdmGn2+8FDgIoAue27/f9dzZvvN+OA/4XTUELXN9xqRPrmAJsFgA4Yy4 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8570 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org usb phy may be part of wakeup source, so add wakeup source property to keep its resource(e.g power domain) active to make usb remote wakeup work. Signed-off-by: Li Jun --- Documentation/devicetree/bindings/usb/usb-nop-xceiv.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/usb-nop-xceiv.yaml b/Documentation/devicetree/bindings/usb/usb-nop-xceiv.yaml index 2824c17285ee..7b71e32d1df0 100644 --- a/Documentation/devicetree/bindings/usb/usb-nop-xceiv.yaml +++ b/Documentation/devicetree/bindings/usb/usb-nop-xceiv.yaml @@ -39,6 +39,11 @@ properties: the VBus line. $ref: /schemas/types.yaml#/definitions/phandle + wakeup-source: + $ref: /schemas/types.yaml#/definitions/flag + description: + Specify if it's USB remote wakeup capable. + required: - compatible - '#phy-cells' From patchwork Mon Oct 24 05:17:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 13016669 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F15CCFA373F for ; Mon, 24 Oct 2022 05:38:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229927AbiJXFiF (ORCPT ); Mon, 24 Oct 2022 01:38:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229947AbiJXFiD (ORCPT ); Mon, 24 Oct 2022 01:38:03 -0400 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2085.outbound.protection.outlook.com [40.107.103.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 259697B7BB; Sun, 23 Oct 2022 22:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l1cgms7Jxu5cZ3UuJiZnrKPB5Ck3gk3JRpSykeakRnLsbx4gjC37L+tLYkOss7I4tCZUkIXGKz7X1RFZ5pk8MI+N9FxXrURQY2BOHUOMPQp+aK00oKVBBzMDEvPftTtwKEOOCNdNwE5qDcf7PNYnWdNqnOONLEMo7sibXI02lfwvjEmTJEinyZio3DXvGxCfC8EZ7IUv0+APGBxTf071YUlLO0XF65Y90rC0NHJowtgn1Y41JsBXVqgpc9Eje+V83JZVwDp5u6dEdgg0kk/zZbRXovohLQZ2iER6LO3w7canpMc8ro5QUuX95Iv9kcLmW7e9JQlBreCHoHyTIpiE6g== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2nf77kQ3ys5U0Tm669miGOA2KwpA3QFI6mP6XfL+/GY=; b=aegG+KXUmwI/v/CQajbCyMQ9lsfTJNpzxSmKnZaneotUNdjyidlvBLBlhq/Ylzyu0uIG4XviM/pyWs2vrDClKzKpZwlkVpjpOcdR15lmO+YDEarspcWCNUikXEwFQM9/qWwHY+YkPGcXtgvS4/+Yub+XOL0+mazu438OQqbu6SjwDcUHTP3PXki0lpucQ5nVCAcf43qO4zimsjN6DzMdZ947V9AnmknI8aXL/FGQs167xzDbq3Lp8alosBUqi0DJQ9BfxtN7w7i0SVxhYkQiVXwV1UDWJ3CB5F/yjZvfdsC3wXeU1JowWSVl6x2F42fZx6FYDvcMpUe8SR564aLqSg== 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=2nf77kQ3ys5U0Tm669miGOA2KwpA3QFI6mP6XfL+/GY=; b=H7JVIiZGg7he1a+aUjXA/oGjSHcQ1omPVckQQy1CJMW+8+IhbMSv2Y6Zwv2WniWx+ztzsz12sE8RGenGEKV4MiM5PPfkZ/Ty6D7pc/BEJsLKiKHJnnsc4r24sz77NIhS7JTUIKRLOlvsxdkeCIJPqLNC9r2B4TDj3o0DsnOBrYc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PA4PR04MB9640.eurprd04.prod.outlook.com (2603:10a6:102:261::21) by AM9PR04MB8570.eurprd04.prod.outlook.com (2603:10a6:20b:435::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.23; Mon, 24 Oct 2022 05:38:00 +0000 Received: from PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::cc4:c5c2:db97:1313]) by PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::cc4:c5c2:db97:1313%7]) with mapi id 15.20.5746.026; Mon, 24 Oct 2022 05:38:00 +0000 From: Li Jun To: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: balbi@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, xu.yang_2@nxp.com, jun.li@nxp.com Subject: [PATCH 2/2] usb: phy: generic: Add wakeup capability Date: Mon, 24 Oct 2022 13:17:28 +0800 Message-Id: <1666588648-1047-2-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1666588648-1047-1-git-send-email-jun.li@nxp.com> References: <1666588648-1047-1-git-send-email-jun.li@nxp.com> X-ClientProxiedBy: SG2PR03CA0119.apcprd03.prod.outlook.com (2603:1096:4:91::23) To PA4PR04MB9640.eurprd04.prod.outlook.com (2603:10a6:102:261::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9640:EE_|AM9PR04MB8570:EE_ X-MS-Office365-Filtering-Correlation-Id: d1a9ea8a-516a-4161-eb4d-08dab581e9e1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ulE9R/e5WJbXrdGy5zW8LAiT238V2PGVjkzv0e43PdO2rJhilj9xrcaLfYlqImNkqmQ+VjhpW9mOEUOqELv91JAatrfSSJo7fIEZF5B5mVU1LA9m/C3qhqNQrDic2wIU5jf6CpwxidW1S41Omx4+s2xpxU6rLyAKCk6CHXI4lLyO/FDew89s8hiIEHm6PkB/8pk9Uw6l5p/SsDOeHSSuMb0i+h4580Y+YDJ8Tq/BrJ3xorFRDdvCRBaCLV32iUr+nmeLA2esBl7z9SzVVwCOryrWjK0dvHnak5HtsOJh/myTvEA5xiW985eTPW4geP4oooLY8WZrHEH/3PYnEKdRtL07HI5p5utQlaqfx5Do+3OUCP4LjiGCbqgzRB/3QaXe5RdApFqXWJjWmdo1nNbqGQR6daQQCt5HlZlDHfpnbL6Anvtm4U32vU12KZ7JIcXYP5n1p7WkQKogFlRQn8tdNyFafTq0f8INF1lMg5jcboBZaC2c9lFhCvfVznVfUl3N37UYpIjtC3Jk8VjQCh86JlpBd0khHZDgOIAvJ6GZlAWy0qWSQzq4vhRRgftum0oFIg4VHHGo1FGFpTg6gn1Uw9g+YBoxfno5FqoIWiETDRIRC8mYv+1GOfoXdioQViL4nAFQVzXOaAXmpMRf//RwAet9jpkDnWKA9qCJiHc/+IMQUDbqrTx85uNjWl2yC9DxlGFq94Neoac+Co119aKgD/cmYO4AhH1gsKbn8Flr4aDDqTNZEYh2jlc3MfQ2hD3/+JqeEMVzMLsK80+ievFAtQPlJG7tYVlkas6L3OgM0gk= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9640.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(346002)(396003)(136003)(39860400002)(366004)(451199015)(66476007)(66946007)(66556008)(6506007)(6666004)(4326008)(8676002)(8936002)(36756003)(41300700001)(26005)(52116002)(5660300002)(6512007)(316002)(86362001)(38350700002)(38100700002)(4744005)(186003)(2616005)(2906002)(6486002)(478600001)(41533002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-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E9XfoAxUghDByRm5r+6fMIm3qakOwTYP86r/kEZv2STnNC6tG6NZxJ1ZjkU37Kys9VSM7rc5ds3D3jUtR3S+QdPp04o4cQL/nG2/UEfDcQQmMMGRW+bl748VUhbeNq/s7suV6qi3WK0CuTQ/VAsGdkLloidcGxhd414M5oX1VWrr0uZSBt4WWTVSfADlf5XDe7WfFRqD+U6D26TkLPIAJ6lI98gVsifCrwv3D+SzG4Uw47Ss/+052c+/t1bltzqE8SgGnAjxRriWizMSY4Bi1Mlzw7/QnREwjoXnVB8YjhdMP/yyaoegFMTEXhsqjX5EM3KfvfJP/LESJl5XoosMwseBoy5okvk9DeorMU8iR/2sZBuWn+cHEvSe9grjThz25u3b08x6rp8vOikgCHPaI27pkZ4YHFMNXPkaHASr3i0z7P3aLpf8LVSwjHoZdKMmWTTVE3H5QOxMiX4mfCgqVh5ftwzU4EVXbp7JNTFBkPS+QWjBvbxcBrSonrhTxWkhqAiKgKf99z7u9v32DlL+Np1Rzz+CqkxmuYWaOfAdVFpq83K3+6g86 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d1a9ea8a-516a-4161-eb4d-08dab581e9e1 X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9640.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2022 05:38:00.8464 (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: yw79CWMntqifkIV5WsiheOA1Cn7+LI9/39IFDlfBeoysfWFvp3VnnMu+nYIXLa7B X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8570 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org In case usb phy is the wakeup source, enable its wakeup capability. Signed-off-by: Li Jun --- drivers/usb/phy/phy-generic.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/phy/phy-generic.c b/drivers/usb/phy/phy-generic.c index 8ed9327cc4a5..c1309ea24a52 100644 --- a/drivers/usb/phy/phy-generic.c +++ b/drivers/usb/phy/phy-generic.c @@ -286,6 +286,7 @@ EXPORT_SYMBOL_GPL(usb_phy_gen_create_phy); static int usb_phy_generic_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; + struct device_node *dn = dev->of_node; struct usb_phy_generic *nop; int err; @@ -323,6 +324,9 @@ static int usb_phy_generic_probe(struct platform_device *pdev) platform_set_drvdata(pdev, nop); + device_set_wakeup_capable(&pdev->dev, + of_property_read_bool(dn, "wakeup-source")); + return 0; }