From patchwork Wed Sep 4 15:49:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13791149 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2054.outbound.protection.outlook.com [40.107.20.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79DAE1DFE32 for ; Wed, 4 Sep 2024 15:49:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.54 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725464972; cv=fail; b=Kc30ztR+LT1KDTEdjIHC/sgVLexrmqRmZUfKIygvsEDoLYRNGvRFFiUP5SQXxJn+rQRQEHTLur2btO/PqkjxVr8fNmv5XkEohEdASFk3ZCJWDsctgG4qWv0i1dbJFq2lLlo9MYpyUzZvnRFZbl6mQF1euT1JGCZmsS4pedd6jhU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725464972; c=relaxed/simple; bh=bNmRD3PplE6Pnb33HULOjgrM5HKmNcIatQzFsHXI4QE=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=IokA2Yb7y+MTTv+ulVJEoUO18DM9BTG72MZdz+9kG4zci8NCTTF+L5J7y1Drn+AqYhxrXARXXgqa9evdmbqUGlHc0JVluxdkQ/LJ/l716pA2xA64lCum816Jdg0fC0NWEHOhzL3Gj5YChOqGDSJ6IpvlbFLcqOmU7V+YP12rNUQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=iQid8nrh; arc=fail smtp.client-ip=40.107.20.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="iQid8nrh" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VU4TpDtZxEFyoiLds8ipkSiq4k21ifExXl+8nH6f3/M5H/ExRntvKlkl+Z4RgejlVermchcPCn0SUpLKd0FfCwjK/ftK+QknulGsxpJWabLLwEfhpq1Yl95CXpkKgYQPk6rhAjAC8raj3SPSmyQw1X0sbl000eeiN6brVAvZ73JvYVfmIwxZvZD08zzatXO0Tus4aIX7NLFrQxEJ+jmlNTOd/7+La06gpct+VSIwcQszo65fs3fRWK8ai44s+lSKgxjBgXWiP0XvnvjKnPsETmOM3w0H/+MPz/VszP6XhEmdu/Ie2XcqhGOeF8hGAsOY0yJUN9GUKVI20km96jX+7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=dZduGx+TLlh75toxe5f0tW0RgZ4kHMWhWW7zm7w1ZBg=; b=WRwE5E1xdvniW/ZWN6NYTOi67EV2oYc1KijzgPgB9ITwLQ/8ZUfsEZZ6Qi9HbxRxJNVN/5QMO3m0eW106H3eavdoug89yffi0Ojwr9EYLyWGxUoWS8zSciM3aiZU+kr3pb4kiqoBoshHchWmim/DpXlh6F55iT7BI4tJFhXzVKYnXd94iIzk63pqs3H8SaqDsS4TNQF3mxe8MSgiVXSxLbj4jhgF+ZpN5rmwvCr2QHyhcAtNIz+iR9NZ/nppfE5dHdaGBPXMqYxQ/buo2Lhxcuw4WbB1Nhavx5roR9DIXxMUHt41V3HBW2a0E8vRlsuRJWiHTnVpH0BSPXFOEcNyXw== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dZduGx+TLlh75toxe5f0tW0RgZ4kHMWhWW7zm7w1ZBg=; b=iQid8nrhE5X/rhT9RXYqLYHhWtMQZVDJOaJomXeMDof+3KUqqPGSz+MHmH9orQnD21kPeBxDdZN/y0H1zLAGF9Xc9VvCqPAluS41aWleK0cJro6ddZGYmFK72dPJ6aPBNiHc+9/ueTkE/LACcHw1HVCJaxO9wQx89lTg5HkfhCQHtLv2v2r9pn+Beq8az2WFMUo1QdhaRJLeJa1172iJBoyJMvoKKHnwcq8/nq+YLJx895KeNcpc9Yh2lr3DZPOBa8DsmQcwjRintLdNEAEl9ZrT5mec/bU9cwwYkGLYHIzWGGvCoQA4aY4n7s86c0SJsNsyqNFOhrpP8i5TtFNTlQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by VI1PR04MB9859.eurprd04.prod.outlook.com (2603:10a6:800:1d9::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.25; Wed, 4 Sep 2024 15:49:26 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.7918.024; Wed, 4 Sep 2024 15:49:25 +0000 From: Frank Li Subject: [PATCH v3 0/3] usb: imx8mp: collect some improvement Date: Wed, 04 Sep 2024 11:49:01 -0400 Message-Id: <20240904-dwc-mp-v3-0-319947736ec0@nxp.com> X-B4-Tracking: v=1; b=H4sIAG6B2GYC/0WNQQ6CMBBFr0JmbQ0dWhBW3sO4gGGQLoCmNRVDu LuFBFm+n3lvFvDsDHuokgUcB+PNNEbILglQX48vFqaNDJiiSgspRfshMVjRSp0rZtJFIyEeW8e dmffQ4xm5N/49ue/eDXJbjwQeiSBFKrDUrElxxlTex9leaRpgCwQ8pRv+/wbcpBrLJq81YadOa V3XH5O29kfPAAAA To: Mathias Nyman , Greg Kroah-Hartman , Thinh Nguyen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, jun.li@nxp.com, Frank Li , Xu Yang X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1725464962; l=1428; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=bNmRD3PplE6Pnb33HULOjgrM5HKmNcIatQzFsHXI4QE=; b=sdxFvN6I1yTQYBJxhvHPicVkSKeHIY0mVsKLd175MF885B7zLm7zJ7uoUlFKlzNS5OeGBHvfF GQpmmnogPYmBxeigOCwKyDVyquxqltpCNX2y8syc9R22wDa6N6/VfxG X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0008.namprd05.prod.outlook.com (2603:10b6:a03:33b::13) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|VI1PR04MB9859:EE_ X-MS-Office365-Filtering-Correlation-Id: c9153ccd-9e0f-4ebb-02e9-08dcccf9270f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?62MWv4vhnPreMeZepjnnJGyc6zGTgfT?= =?utf-8?q?rfR6vpykzoivcG7w6xEMXbpqMKp1XSyJB8F+vmcDmVzpDwrIWjSww09Fj7oHj5g1j?= =?utf-8?q?J3Wvnbsyg0mlFre+VIGYjGIAAmreRYGv6SAMIqgKJ3+lO1Vsp7wlKdol8PTpV42bp?= =?utf-8?q?+iVNDDTThe/BJeM2637KuMcwV7isF4O5xTcYNzTtkOrtGfMWnIwUwI3LHW7K6UcuT?= =?utf-8?q?Sdsr0yDG6wcGq7bVHpoJmgjD0lB8qU6NyDQBkjIVkyXy6NFbFb8axMTigYdDWR7dv?= =?utf-8?q?3vDEsz0UtY1tIi08O0TpeaXZfcMGeTWtWraq0wY/11zSE4dkORRc44CwOSxBV2dQ3?= =?utf-8?q?gIF/sY0SgPcbaLAUZJ0y0t3dTnMx1j+o80Lv0zucGadAt2EMnXT6cYSEjpQ/nPPDu?= =?utf-8?q?5Yb53myyFk7NoxOBCmcfVV/stSF7IyM8o55G23TSIkw/mJ83NzGcPpH7sgVcpvCEe?= =?utf-8?q?XFtE8/vgntBRiiLAL875dTbtbeoHkxn0lxifWhx8ceGMyvReNvSeH279gnvgZsQhW?= =?utf-8?q?jTIOLy9ytBDPxVBiHmiILCEodTRhaYRpJ86AhB7JYW/51iahWPGURxqvG+f/hym+S?= =?utf-8?q?E7s4TrLWOu6ZuUoTtkxiC+qOBd6tdniWrI1kL7AOtgSDZZ+sEgiQ8tlSv5xN1vRfE?= =?utf-8?q?v5qKrr4hsfTt4h8OSxy0XcoaNWUMDtfqOvHg8/TbROveR4WVP1nAD2dkL3pxlus1U?= =?utf-8?q?ExcdBJiFyIAr1ilsyhQpAiCv1xg7HxDh1IE/PdOxv046z+bvDp6R+LIJlKlTdhuLO?= =?utf-8?q?+fglrm87jcLWJRrOiISeAk9T3f8C+7LbbytzmuvHU5JUIZFeVkbTpVAJp92k7jZ8G?= =?utf-8?q?yAgPwknzhcs5iuAdD8nf8t0jskZ0TYH1QccxhgwFc/VaSFuwDud7l6XO6sctmHvU7?= =?utf-8?q?FdDikvMpXIGod9fSsjdyGF4icH85fVR8heoE4efmdi1h3gpjTcGIn0kmxY4CY7zLU?= =?utf-8?q?riktnPaMz2sWt5KAf6P0IUvCJg5269x1yerMrpChROjt5qp1G+KJ+JOKNIaDorhDC?= =?utf-8?q?AO72x4LNc9njm3T4Ls88KjZht8B+vXTVbmpqhyWoCpBXYFsLofceSM71QofkFv/FV?= =?utf-8?q?sAID99rkM/krybpomCTyvKGZuOnuIUWlolk8C3qi0YL7ne7dp6JDgGWnbfNWbQ0Sb?= =?utf-8?q?d+btnXimJoly9HllziZNiIcnzp1vGf8iDtSf04qPu+HlfEApojZKKQVoraDdgYEeW?= =?utf-8?q?shGmSm90NtncTGWTm1n/0g4cj2UgUFtEkQmvkWeP0EJzdcUMfN6iSxkyLn/OmWDqh?= =?utf-8?q?+dCdr0iHn/0mg8arnj4HRc3h2qr2mECG+u4bKkvxDnq/TatCqlP7YxcMtJJ+wKFyG?= =?utf-8?q?RbZBO4tNd6SSC/Sc5AyCdOmNqluaCXZMUg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(52116014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?07ZnLPv1G9Btg8YcASsCIRV2xoQ2?= =?utf-8?q?y7lln9z5x8gwfz+n753jKtBFMO85FgQWmE0lEibwOMPP3Kwf2Md/dO0QcwcCkZdo5?= =?utf-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sxlorIbsKH3/0ykvW9/z8m+tcqQ84M2f3LmJy0JoS9/8RNFbB0VtLb?= =?utf-8?q?lYZW2tybx0voBuZ5ViSomHyLoQD9TgFEXeiLF+FnB1Qb/UibjIlo+AW+NsQYNscTn?= =?utf-8?q?AiiA1+JZGq1/STyFuvxT3DfO+TJMKwPLpx9NAMcEbUzh10BXe6wZ32et+0XnuP2lg?= =?utf-8?q?HN45xvgqRt5J4I64a9xvahVfXsJaDOzaLfa8iua7zlTRRUO156OWiJ68cC8ZjdC1E?= =?utf-8?q?PzbweIaw0bIcExj+gesdEhm6rqcGgzFVNUG9e23aYeYvoQaSTeg0zDpDxKHYnE9+N?= =?utf-8?q?ztPijqBjx6zewXylVS5fD2frX/JcT0jn+UiXO0/3+pxKh22MCz+Eqn53tzpvDu5+z?= =?utf-8?q?UHnYj4yheb3r5ofFOqvoEHhffbyXabBcZsCppeB4n2nRoE4BuURKRVdpZKtkzJ1L2?= =?utf-8?q?nMSZuSaurEsb0aE2/k8EsTTc7jYlwkjDyhtFgVIFqjmC7pZb2WPJbIbLXN+MaaiSI?= =?utf-8?q?IPCI+c8XCcHF2EK510CgoSgs63WpnzDTZNyz4jPS5sm/11Z83WSlXpIZk+FK1i1i+?= =?utf-8?q?I0aFzcAZcoOK?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9153ccd-9e0f-4ebb-02e9-08dcccf9270f X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Sep 2024 15:49:25.4931 (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: kpVDhn3Uty47hnleT5bJqw7nhV9CQn17uSE7r4KFXDnEn45PkW1zfHuIiw0bQiSC8D2YnR2MbMnNjJaBan430g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB9859 Apply two quirk for imx8mp dwc3 host controller: usb: host: xhci-plat: Parse xhci-missing_cas_quirk and apply quirk usb: dwc3: imx8mp: add 2 software managed quirk properties for host mode Runtime pm and wakeup: usb: dwc3: imx8mp: disable SS_CON and U3 wakeup for system sleep Signed-off-by: Frank Li --- Changes in v3: - see each patch - Link to v2: https://lore.kernel.org/r/20240821-dwc-mp-v2-0-2a29b6a5c2f4@nxp.com Changes in v2: - Remove patch dwc3: core: add a core init flag for device mode resume The problem can't reproduce in latest kernel. pm_runtime_get() in irq handle return false because run time pm already disabled at device_suspend_late(). So runtime_resume will not happen before system resume. - Link to v1: https://lore.kernel.org/r/20240712-dwc-mp-v1-0-295e5c4e3ec9@nxp.com --- Frank Li (2): usb: host: xhci-plat: Parse xhci-missing_cas_quirk and apply quirk usb: dwc3: imx8mp: add 2 software managed quirk properties for host mode Li Jun (1): usb: dwc3: imx8mp: disable SS_CON and U3 wakeup for system sleep drivers/usb/dwc3/dwc3-imx8mp.c | 33 +++++++++++++++++++++++++++------ drivers/usb/host/xhci-plat.c | 6 ++++++ 2 files changed, 33 insertions(+), 6 deletions(-) --- base-commit: fdadd93817f124fd0ea6ef251d4a1068b7feceba change-id: 20240711-dwc-mp-d1564eec57b1 Best regards, --- Frank Li