From patchwork Fri Jul 12 15:40:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13731903 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C7021C2BD09 for ; Fri, 12 Jul 2024 15:41:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: Content-Transfer-Encoding:Content-Type:Message-Id:Date:Subject:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=uA7Iq9cmeDT92mh5xG8YtUGaDToQ1ZSzpYRq3Bg8shQ=; b=rTCwsBsgKOtsCFpzR1gyklhUxd TdbDkgIkAd4OSCSDw4l1kzC/moRgfD3J21c8S7irzS0HfDXGVkFKwDzVqr0KMLpY1bsjAhAY/IrxV ow/Ulyi3FEkZARERWMJrYx+VMrw8hBlh2w53TPIIIHvLb5N9WXNOU7atzxfrgxdIIZTnd21DbLaSL y5IexdsKz/WJTLWyReI6WpQoxMRe9xDnJxpml6g0I4pJDOJjmy8SB2+XfRNWXI/BGkxF0R9hwhfJ0 eDGetHH+wPgIub55aOgWcU5lQ3H3+TTG3fY5l9QCYF1GNQhI9niy1esKka9v5muQWQKWZ873/T/J3 SAE0x4jg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSIOh-00000000YiX-2QPs; Fri, 12 Jul 2024 15:41:23 +0000 Received: from mail-westeuropeazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c201::3] helo=AS8PR04CU009.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSIOP-00000000Yd5-1ygR for linux-arm-kernel@lists.infradead.org; Fri, 12 Jul 2024 15:41:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ACHnVnw/klLTJRuB9Mj+12O6a6yJzQfNWpDY1/J/ZiRRXIo7JydPXxUKa221ycidYDZRA3PYfm2JpxVFu8esiPZqNC1utzmXFlT01OqOmwhwblhpxDYcv8VJGstKHOEJ9EjBt1uOiksnmqnXa/7SSK7a4CCRfXu3l3SAq3z1qNIYBff9nDazVNDNVvao0vmj7cWA30IRh1f6S+uq7Wwvpr12RvN/0KioUIETj0KCslHWV7x/DQrv/X9P/SdeSXHDyTzDJzDqF5ipCYVFgJTvnCzy9+USECq1dcc5WDalz0Ui4RsEylLGzpZgk1Kl/sioFVIK2EkV3RPYUrEaJNw1oQ== 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=uA7Iq9cmeDT92mh5xG8YtUGaDToQ1ZSzpYRq3Bg8shQ=; b=ph9IjMkM3+o6Z9FRPn8YihYUfbQUNzJujCyDsHGxaxT4msnaetKNuHFa6wUVTuu15NdQN6tm25VbIVRjShCxFsf+vnK3GKMW9h9HIUkW/LVHBinekTQiuNqf3lOacVqJR8mz6pN7XthJAsz/6aqEQK/BMtlq0UYvAyDPjLmTP+tUtL7i763eL9H7J5Bt5BZwx/IQ1aLdYvSwALjbs8yyagKs0oWNgTm8gulBjHon+eVXu1mC3WJRMjhmyOVyMTt8YMsVIjcqnF/5gQ2B0o+fE9noQMiPFLQtS9O33vUI6x3Aqxet16PctHDCUJwWXDyijqCpAISt43ErWmKUqXx4/Q== 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=uA7Iq9cmeDT92mh5xG8YtUGaDToQ1ZSzpYRq3Bg8shQ=; b=FRXfMW+dKdIxijMqjA93NYQAvdu1k2W4/AFQSIcAeCiNLmsc8WsZ6beHnBr+97QEjKwsxo6qBqyoYxOjDdBQlwHvdcMLSUYNL6Ztjm1hr7Co1H+/sXzwwfKFI1iw84ludPSUDt8cUzWJIoQv8Zg9F1H5ffBERyRwFIWqo2LgVIY= 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 GVXPR04MB9803.eurprd04.prod.outlook.com (2603:10a6:150:111::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Fri, 12 Jul 2024 15:40:49 +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.7762.020; Fri, 12 Jul 2024 15:40:49 +0000 From: Frank Li Subject: [PATCH 0/4] usb: imx8mp: collect some improvement Date: Fri, 12 Jul 2024 11:40:26 -0400 Message-Id: <20240712-dwc-mp-v1-0-295e5c4e3ec9@nxp.com> X-B4-Tracking: v=1; b=H4sIAGpOkWYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDc0ND3ZTyZN3cAt0UQ1Mzk9TUZFPzJEMloOKCotS0zAqwQdGxtbUAEOx w0VgAAAA= 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 , Peter Chen , Xu Yang X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1720798845; l=1137; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=2Z59xORJjSi11OzpyQySPlyZk8dogxbyugpxi5ieRpM=; b=kzf/EQqkvfpAQOutkIqLsyxLQ0BPBSshUdjHzzaWEaj3jdGSdX8KK6WWst00DSCsx5QXPHErT +ztZS9vEgaAA8u50fY9FkzVO61ORML0WhgnrjsFeJV6dzEczD/mfmzh X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR13CA0075.namprd13.prod.outlook.com (2603:10b6:a03:2c4::20) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|GVXPR04MB9803:EE_ X-MS-Office365-Filtering-Correlation-Id: b3588973-29c6-4dc0-bdd6-08dca28900e6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|7416014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?omQglWdsb5lw99LeGe0HRWs27C8pBDS?= =?utf-8?q?57PAo42NVdVtt/TjweR6BvBabGyJNydylJFEGdKNnPjFvFifMyVqY8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gA2JarCAwu/?= =?utf-8?q?2Sczrd9yriXTtzk5N+ZMx7oT7Upr1H6G9+CmYtd8b9FwSAnfwB/MyuyJt+oPRV6ec?= =?utf-8?q?ujDVkRMUCWrKzJ9qXPcHFT76BMTj1x0LUerVDI3EF3HEI+wIIOlewemaesoZIVRHO?= =?utf-8?q?FYdj7fFUx2OgbZJz232jJo5ZZ6t7s5jPTzkigAEgT4LVR2ydfQeO1pStP44wktkd6?= =?utf-8?q?r6sidd/st+6+92HMLzD2v3+9wq2bcHy6wspKO9iQ0DQ//DHbtmOkJoRyxC4Kw82RX?= =?utf-8?q?YDwRZw56M9ChGgQS3S1xBQ89HttF8SspulBEniOX/6uznChL5LRehK7MN1DHOZ67T?= =?utf-8?q?YqrKweASIs7Afo1MiDwRlea2bsQMU5dWvqoFVGuOlGG5vfMi1w7GCD1KA8lHXwmyz?= =?utf-8?q?H183lFFAwhxMXPCTmm0DkO2tVyWS86Iw0Q=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)(366016)(376014)(7416014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?6cmKqVbWpY1Zo6H3at93Vff+1l7H?= =?utf-8?q?XiOZIJyRbsDKMPiGX/5eWAfT/0XXdzKiOXzNkKwlbHJuSvyKDV7VPuwol+4gml9js?= =?utf-8?q?gadKg1AtU/YUNmXapNhDnuqBwz1ZTjGT18HSsV2yx71RL0MBwhy8xfxmNwSBoH/j4?= =?utf-8?q?GYVmtpwA+QIPEh5odfOHHPX1VQCdCacSVJugAfE3bnnVJ0fbmI2jegAhNF9BebXMu?= =?utf-8?q?avUrViJ/XDAmoCicWGpSSHerfO7nGU3eH+S55AmaMBEHwFkJd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1M75w3Tcs51VxX?= =?utf-8?q?ag33+TcGdkOypFAZxAzU1FAWTk9DsLODg0E7vsp1mDYBEetre/848W0f07zpFUkpb?= =?utf-8?q?rjDnnBt+Daq/Owgcd5ctrLHBEIgcyEf39IZKVw1jiPeyBr1I8rG1cF9YRGmqIpaad?= =?utf-8?q?zXeRe/SdG3MxXUgMeuwewDYzdqvncihFla0iADBis8WWR1FxhAhTqusCKfpHyrzfa?= =?utf-8?q?05q55rVx/HPCaqp+8cvfyRKN/K3Gsm4JMGfu5q/IQsFEnyh407rNJIdNo3bLfaI8/?= =?utf-8?q?zt2sUP3Dumm3ESFSdvbeNDsO/U1P/w2dWvguZk9Ev2AbYYp/LbCZKRRbl4PnrGpay?= =?utf-8?q?SQkedKfkN91mQYBJmnyBDvBCfaTSDaxMgIgLm0x90HkOIRWJW03A2LOAX/chMhAgM?= =?utf-8?q?nBW8J4D9EcHq?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3588973-29c6-4dc0-bdd6-08dca28900e6 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2024 15:40:49.0205 (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: 5qLnPq4tK/2PLrx84SR737DqBJYKXSM7IFyBGU2O7+rVtcF5pq/UsyLA55/6dfJTcJWiP35g3+DhRsph7ulzrw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB9803 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240712_084105_565844_7CE9C16B X-CRM114-Status: UNSURE ( 6.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 dwc3: core: add a core init flag for device mode resume Signed-off-by: Frank Li --- 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 (2): usb: dwc3: core: add a core init flag for device mode resume usb: dwc3: imx8mp: disable SS_CON and U3 wakeup for system sleep drivers/usb/dwc3/core.c | 13 +++++++++++++ drivers/usb/dwc3/core.h | 1 + drivers/usb/dwc3/dwc3-imx8mp.c | 33 +++++++++++++++++++++++++++------ drivers/usb/host/xhci-plat.c | 6 ++++++ 4 files changed, 47 insertions(+), 6 deletions(-) --- base-commit: e60284b63245b84c3ae352427ed5ff8b79266b91 change-id: 20240711-dwc-mp-d1564eec57b1 Best regards, --- Frank Li