From patchwork Wed Oct 26 06:12:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 13020217 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 5FE7BC433FE for ; Wed, 26 Oct 2022 06:33:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233162AbiJZGda (ORCPT ); Wed, 26 Oct 2022 02:33:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233038AbiJZGdI (ORCPT ); Wed, 26 Oct 2022 02:33:08 -0400 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2089.outbound.protection.outlook.com [40.107.103.89]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F483A8CEB; Tue, 25 Oct 2022 23:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b1exx3GyI4hLZU89TxFx2PJLERlEg5NFeJWFo58OESfndWLkXw/WvRcFQhTsmeMIWFQsolFOn/Z2L02fONt33fbeLkIgdlf0oUhWWTg5b8HPABL4+0JhjjiTvzGgu5nioW0R4hZPwYT/hqXT6Vo8KaO24Ee66vGvwiH7Ypz2NQ0z/zHHxcdhYTI5fWX7NfR6HgJPklpY0u5aNE8IVlRl+r4C7w8wwzdkAmM8je30yIcOpBTvqxvhyg/YQO1q9X6SRjb7q6O3jH1RQ9SV0XMBDN6spiz6lrlAotE5HQvFsEo6g1pFwfAyRCA7gKqCnqjWt9RfS688dgkb+/ro5feEug== 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=BaxSnOclnY5L9Odu3JjhjjXxqeEsNk+NGbMlAi/41po=; b=N8fT06aGBJ1mdN0mDkjA1VIcLhgvNIx+wmOO0kwWVVuO5+4OasQN6zLt4KiSI1glKRqU3B+udZ2fLZ/pk87z2KHfyMZKuNAjXflNvxZorj/RLih8CKs3xGha8RM7WOMiB6jV8iO+rz9Q3Ts/4twQAr7O29M/+tpBevjSwWglrRkB1Pz/aHsNWgcalOHSc2n64SigyvVzipE4lqdMvkv4HuHCnsAA6MUYABonqdbwpivWK0Kc8q7T3QlUxQetI4DG2ZyIIgcsbFhd0k6TBCLAw0vUSQi5YCtRe/SoFF7V0IjI8pDPPpHdYcQVGVjFxFfBGQErg8KRbl57ZH+2EmK86w== 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=BaxSnOclnY5L9Odu3JjhjjXxqeEsNk+NGbMlAi/41po=; b=Vf+Pmr6yxL5HcjjbXFsZ0LQzScq1uIJAfRuHq1Or7BXGdk3+lJIDmD6VvdXsTP/qP+nBBhbk5ZvoK3qQyq9igRTmPhBRt7APCn5axodqCVYWDs/4j11A/qKbVcrjRRYu3rCq0D7eAJxlidGcDNkmvzeKlIKhulpOHyOUZuy9UdA= 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 DB9PR04MB9260.eurprd04.prod.outlook.com (2603:10a6:10:370::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28; Wed, 26 Oct 2022 06:33:04 +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; Wed, 26 Oct 2022 06:33:04 +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 v2 1/2] dt-bindings: usb: usb-nop-xceiv: add wakeup-source property Date: Wed, 26 Oct 2022 14:12:21 +0800 Message-Id: <1666764742-4201-1-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 X-ClientProxiedBy: SG2PR06CA0238.apcprd06.prod.outlook.com (2603:1096:4:ac::22) To PA4PR04MB9640.eurprd04.prod.outlook.com (2603:10a6:102:261::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9640:EE_|DB9PR04MB9260:EE_ X-MS-Office365-Filtering-Correlation-Id: c4b2b526-2b27-4d46-d0f8-08dab71bef09 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: D9aLo6Y/t8YJ4wsrm/gdo0n427bRhIVQF4daC9zQiAE1GCpFbJ8pPmr/Mm2AxOesqUNI3t7PiBRh1rDRGnDc0lNi0V+MZ134ek8ju9BQuS4g3b9Z2WGL7aum2fTAOTHO8nR8Pt2F+YZhJi3AEDRSnuZ+h/vgdF6aR6W6gQyV9J0a6YzXMar84IR/VW9PLMw7+Z5ckoRNCE+fXhlAgxhE5Hju92GpSHtYaLC9/LPccC4vdqwOQoO5OujK1IfpD4ysqb6cUgWajeNJWucneFgjAy4FaU+q6X+jD0Q6KSj6erA8pYxVXBGJ7+YkGzO6qyrk/xVk9wX1NkCL3Y1EcwjqCarK9jcHmbQcs/7qsitOF70FMbbYUzYyb45NCdTVfH4ohfGT9tUlli9JzfQzFDYIbVniTb55D8NvXhETnvCEI4qh/4pbIxiXj3Rse1Nh4iDL4IjQsAtlOAilhX4O6T5GASDFjpIQMxk2A/ugpv6YMcqmjKtVgc/kLvBmfTSIdOxKzlkvsmZ4NZ6geaP6sI8CXm6pookn102XpVHvWuuGx15BiuvMsv8W4C5IWPFQwpky2Hm031Eo4U9jlQ3Rg4KkNkBM3hVZ803QXljMiHhmisAvNzzWnMBaU832OLGgwOFEhMkYu3PAWfGqrehN9B2HnsLLU3Mgmh/Y29VR9Di4N8Q6Et9CyJr8Nru6fpZMqeks6I7muX6bnZ0Mo68ZDIqem9SCsQuOFmq2iFz5ATs6Lu8JCumz5WIShYC9zgWhqK6T7sVvFtskFr6n25MED7G8Pg== 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)(39860400002)(376002)(136003)(396003)(366004)(346002)(451199015)(86362001)(36756003)(38100700002)(38350700002)(2906002)(6666004)(6506007)(52116002)(83380400001)(6512007)(26005)(478600001)(186003)(2616005)(66556008)(41300700001)(4744005)(316002)(8676002)(4326008)(66476007)(66946007)(8936002)(5660300002)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dKkf9fQdlSs6EZ36rPKCj4U4Xc5g1uDUoKU/PJzGh+P/2JU4ocH0ZFA0o16IekOwuCW7wNDsNWeIVXFDES+pNEJx0Y5wnRLvFo2PLsbeU5VxclEcSsQlCDTv0RbgOX2H7L8nr3dFocRLnsfGLqHHK3i9JWbgigP2m12zmsi4+lj1EbDNu/kd2AjE78w13t0kGYwQ0ZsR6qdL6DcCG1HfCcHQL+ePQgbej8TqJ/qIOnxu9SwxS8+URVAiNMR916sZgYUH/kF4vU2OyXQ0Wrq1cmTecws2w6cVYcQ7v0gKQkUig0s5ynRuBae4Cu0SkKIe0Pwomhpc7k+aueMA7rBzYNvrpSoBcWdKh3RvCEklwZTT9jsaxTj6k+vfX3e0UWMsypPO/mDVwobgJuCRzNjc/39nw5vMe/Q55omFwwmv2BqHsOl/OXKVGb6WAtNF3aIOr03yZfW8LMVJpUXbaYcT6Oh4uXK0DY9k+lMgjIbGbNMlw0lAMCWCyLFFbmCr7UYuXid64+D7pPjZo/TLwXTzgU/Ydbh7EJh1Yn2RXZFtt9fDdN16jC/DVlvtp6RXtMabfD6WbUQJLJYDKZUSUeV14890+t4kOZogSt89XpY9EyyXH2zsDxs3y5w0P4vn/CMf8iAPrpaizqaJ8FVHaTHJl0NciWi8ZlcAIqtbREelog25ruO2KxtnQgT3VlNL6eZVq/Bl+QiGaTnfpQBqWW8cvjFtS6SPdRmvwo9eyKdlHQgK+te6REFfPI4atUezRgAr6OCYz1hPJCG+5MsJwA/KCpPrWCRksnRny7RCskNV+4Y6QSW8hy8DeJEK1Gv20Smzg/9KyjPvwxUNJXRyl1gDpbGH6oeNu+O1HuwW8GOzckiCLwb6TZ10bx8wWe0jl85dCpfzK43UAVHjukoiW6dxX4XJt8oYPUt+i7I/mNCaXkAoDbqZPpc0T7IiudREm+69pGu9CD8DQZQ8dRJC1+GYZmHFkyLida2aN8BDC+J9ADbqgmyZ4gyX2AoiQfGxsIdurpIARzOfVBLH6iJKriE69gW8NqjthxMQ1YjwcNHT8F6cuga7gNgvknieQ5vQiyh8yZeyv5R0bMxc+7cF0XsYtpcrCFi0F7FyEHogu18pHnSsFobNKt/nQ5WS3U2yU4wb6aAe0f8P60e0lWosHBVucOOp6NnY1Cf5ucgiweYBB2TweDQsg9eY5rscW9VOUzeLkFYCjteE31+hoaVCpp8djk2Iq/S7bdJ4+6dKlr2+C+do/qUb1EnX6CP6aoz+2CJZPyOyVJNiAC3q3itcIqHNJ9yEV6sloXccSsS3V6+LBCbFUHYXQ8+ZpuUYg8L7y12mETcOaLd0RO70pUyTvX/ldyhL3LjjocKyAzpvHHkNzFYfMx9DTLhTUqZlG5U+z1bQldPC6goakNLZCd4diVuI6cAvhWLtekBGFNxAbSdyYSlysKHE1vQQz6jT0UGEUvMnLDI5+Nmsid0JNu3XCl+d51mjUqyMJGoHHEC0n2Ja1Vc2NREJ6+ye/avvT9KEGk6IQAFhBkVeq4ecQoD1+vYOHnEL3OV6jP0fjbZQB44KPRB572wW5ZlwHc3caBBw0hS2 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c4b2b526-2b27-4d46-d0f8-08dab71bef09 X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9640.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2022 06:33:04.5785 (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: Mb41ryycUjPn9S3P5hqVj+yvmzgSSDCRREIg3lPC9SqNoudlUwRMNt0E104vn69d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9260 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org USB phy may be a system 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 Acked-by: Krzysztof Kozlowski --- Change for v2: - Remove redundant type definition. - Improve the property description. 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..326131dcf14d 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: + description: + Specify if the USB phy can detect the remote wakeup signal + while the system sleep. + required: - compatible - '#phy-cells' From patchwork Wed Oct 26 06:12:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 13020218 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 ECC47C433FE for ; Wed, 26 Oct 2022 06:33:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233170AbiJZGdf (ORCPT ); Wed, 26 Oct 2022 02:33:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233181AbiJZGdb (ORCPT ); Wed, 26 Oct 2022 02:33:31 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60079.outbound.protection.outlook.com [40.107.6.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91098AC3A0; Tue, 25 Oct 2022 23:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DJGA9TEObVP+9jfC4Hfdv5JDcgoQW/X+KxlfyrZOezDvyY2C4eC38LSKGqg3w9XpSo+yjT+SiE+m2lw4ui6fkR3tKVY6Tz7c00aoqMni8/oX2C4roZkEtNONIC3JBg0283Q1NmMAhwBLc+koxJ3ylcNKsxPRNBAR0VBXTfuOA6CY7NQgEeOW4tJVtLymgL+FD0Omvxs9TX2U38tjGnOmuZ5yOoVq7f+XY92cE3rVpnJ0vYpphVgrUoDVt5uQOi7QcNmWNG9GnvKElwdXxz6FKAihKUcgI/Mw/H5xVVjz6DcdT35cKrPSDJikKHjbWPj43GfVnrb6XxeD+1kUrK8OvA== 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=daT8jiD13HyFZbUY1k1LuqglIJN2jfWzXCVPebGlPx4=; b=OXaudbY6G8hpvARlU+fMdsuIXXtzsgqMYoSUogsxIi1yU+1HMB7ktTZh/96kvmY14i0Atys6Y4dVUXeyKPu0g28bhNlN9YHSh6UOPyezumBcavlxItiqNfEZwkFC8xjENo+zywf/uwIk45MEETtVRMKX9ukdWIC3e7r9OiSXg1pBMNQwEL1yCyyZQdTvP5rmBT3a8ggCQjW7FtEO7tzOlGMXgeoj873iYCz0u+P0A0+5ehZwv0/oxwOHNZW11diX9BVm//tGUmlIz6mjZAlflUUkDcaJ6+nQyx67qKBiCF9+3SEiqsROYEjbamcUj6ojJ7/UVzxjJai1yaOa6ZToJQ== 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=daT8jiD13HyFZbUY1k1LuqglIJN2jfWzXCVPebGlPx4=; b=QmGfuSOswDJHbMX+iMlXKqgRjTHtUQvPk+zhs+7kmv8sJK0MWpheyez5WenuVfAbaAKVz5IpqG9J1QtAG2GP6H2WI71Edsos6YWt986ooWA4QHdoUG9Qaj6FT4n1Z7oEVjoiBna13dwNZPLlgobzdDAmFYSUuYRJ9dRRtdFHt5I= 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 PAXPR04MB9232.eurprd04.prod.outlook.com (2603:10a6:102:2ba::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.34; Wed, 26 Oct 2022 06:33:18 +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; Wed, 26 Oct 2022 06:33:18 +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 v2 2/2] usb: phy: generic: Add wakeup capability Date: Wed, 26 Oct 2022 14:12:22 +0800 Message-Id: <1666764742-4201-2-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1666764742-4201-1-git-send-email-jun.li@nxp.com> References: <1666764742-4201-1-git-send-email-jun.li@nxp.com> X-ClientProxiedBy: SG2PR06CA0238.apcprd06.prod.outlook.com (2603:1096:4:ac::22) To PA4PR04MB9640.eurprd04.prod.outlook.com (2603:10a6:102:261::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9640:EE_|PAXPR04MB9232:EE_ X-MS-Office365-Filtering-Correlation-Id: b1120e01-ca4f-4f12-eb83-08dab71bf810 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n0a1/5wkKxvBb5oevZRCxuymu636qzlo4JRlOLZoirJ7aIGkDW48U4C2BhcbI37olCrLYjLg0hgpgmAnbxmNETqf0SdTstDCCJvN+SSq1jGUbkhftozVIjg+0SF2r3RRxf+oHYeifvWKG/Lw5Jnihzja0KRFLKSnYcCwnmE7mzSBEMaJeAUkYFWMI2Wd5qrgjsL2/PTbKwmZeKX3FWofy76FpHV7alXyGVFX1mvZllt43Tnyt71VmK4qIUbbbV6p7mLXHQOBSwAxVY2UlzhbW3FBhyOr3ADS9HDuTv2qapL8jylsYJEqP7EHc0GK4MW6FbuI9AQ3OChVeo0Eo1mVHFpEzr0bdQalUqHJVhfDPJWt4mNSuSz5cEDwY914WTtZsKJF0XP4Ix2AZ2Ncckc0yBrreD5hUBngZycLftlTiO8znIpZGznql8XLCR9fN0tk4Yo31dcsRz51NwKvUmXF4ag3XmGRmSGeuJg9OsOw4IAs0Qx8X1sEp5zAfbkIYg9sp751WFD+my1Zryfe2pgNrr2yHjOU9SIo8wlZXLv4YaUS4smjQ5BenZSrBFc7Ixw4zXWShktVkWbktrPC7h0NFtCahYzhQHhevRP5P5OIvMdJJyq2xgSAYrVpTGy7HdwkAvhIkTbxkdnZXMP0S9uOjd7aZyKboyx9rBZj2722ls83YTtU4C8a07H3Ti0aoRLBvLOtGGTIH+DEbdv2X1QK8Mz+/rQP7EDCYWgRvlkmchNk3BQqeSZ3ejVjgqdLS4IO4I6+Uyhwh4a1WQBjNsgbsmMN9bExMlm2rUEYj7dNwVI= 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)(136003)(396003)(366004)(346002)(39860400002)(451199015)(86362001)(6506007)(26005)(52116002)(36756003)(4326008)(41300700001)(66556008)(66946007)(6512007)(8676002)(66476007)(5660300002)(6666004)(8936002)(316002)(4744005)(2906002)(6486002)(186003)(38100700002)(38350700002)(2616005)(478600001)(41533002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: iT0JIlcaTnO1vLZ57LIp5tA10rVBUO1jct9aok4teyKE174YPYJCON1hqmY7sAtHYkp1Ar9aU1GttahG673MFpXGGu/7CYlWsZYTVBuFDjYT7xPlvZEMsomCRf9fj93QT1TIrXrG3CBRaqzjDQ0Iq2bY9bgPE8+YZ4T0cM4O2t636MPpbPu/pt2Iml+te6awK1sMgv431tEfm0BQETgiigPbJHpI9PCc5aIU621MFXvsmca+Z/QZ0rka+MHm8sZOXHZG7UO017h+hpmZJdxS0NXRMNEH9kr5JI8wv1Z6Nueqis1wUcVZwQtxiXACqQQiVEAC+aeh+jDXBet2pFUVVpK7zIkIrVZOqKiWJ5qTeirZ+Dxr0c9qgAmOxdbPXWVGLWRt1pCfYM7azHiiE8VKlNv5jq0Xl42apT2syz2OWKfajht6yBlf/DyRdMj97blF2m0AEbcVQa+GVkB7/iJ9A4BZS9I451lBA9weJUkHzfCjgJm8dgXbRCUUkTweTGtsbgkZZrdhZQRNFvSAywdPoh30qOxXTYxmR9xczn/fF+kRcCkRFvsOAFK3a1ebrJW6pXNkkBZo3NGUQU7fVbXjxd7z72PW82KnSrC319zFRHYSFyn2ODeGvWhm6ETY4HCya1mtR+1iV8drJVVxyRprAZjnlklJZYJgZS3KDKSugSM2t5RLU3wBp+/4mGPGeBIv9TXUGuMO70FeqnIX/T0xS0527qbzLAJCb+p0ka47OlZOg06edwtJqenwzm42yvpcgqH+RmP1SZIX8D+vfb3hdS5jFvWyd1YjuJsNpLekVPw8tJD7GLqN9l9LE+twCqcjr1feZ5z94vn2Y8jD4piFSQBpypu8YcHeTH1RAF+IDaqRrf5yIRH/EQ9IQmpA3tqxJmbaXZAdLWStpOPuS4mhmTzVTwAO/N33E36pT/WbskdMCifpHIYrH1Bk8CoRmoZcpsgtydMwXsvumppDTcezmUm1b39iS+7cjX8vr4vkUoMxTbOjPUo/fCIckyXn3rBaCC/wa0ljElEmyKm6nxrFoUOK+EOWzjvXxe2UL5s7KZo9h2hWqjNW0plVUHvZZSLCkbYizpx8VFW/QE4+2jjVGZpOlRBs78NAMW6JWdQ8qTRXvfMahchLcG/Su0nkcmCBURi1LcOdwazg0M/fdMdTTjJwMq7kHA+Cni94wzKGljtcJLpupqC5lJHP2dT5SzD/DJwbtoaD54+nAEqu+jaFu7T88HDWWE5R1/ud1/XvULj+AA9uZLF/st61sJ7aNPwQaMll+4gpqwn38Eywi1fXzeiJr0GUD8FalIVYmNI2epurNzEs5UNeUVgQVS9RMRiYJ0t1aQu281yjUxZgcRGCw4BDedLT+c2kYsFtMt4R1PcAV8aDLJhnP0dxXHIkS6VfbAcp3FtqsIIi10GK+5UmDJbeH+67QGmV/2YzqmKuKM8Aw3ccIpM6Y+BekrJ9ALv29xE/MscMYqXYDwn1X5UlvE/y5NZlnQ5hxC+i2QvXdRz8jbB6e0T7y28bKk2KS4c6pcHvEIW0cr32LZPkBNV/G2xJ2j9QlyBRHlUm6bBa0pG3JhODvYO5decNvmx1e1rJ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b1120e01-ca4f-4f12-eb83-08dab71bf810 X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9640.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2022 06:33:18.3653 (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: mxS0nC94cKroZQwncMmEF6pfSibK9HETqZoGhHukffej8eELT44LaeEK599X0Yib X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9232 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 --- No change for v2. 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; }