From patchwork Wed Jul 3 23:06:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13723051 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2073.outbound.protection.outlook.com [40.107.22.73]) (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 878684964E for ; Wed, 3 Jul 2024 23:07:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.73 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720048035; cv=fail; b=dAIpltHReqMv27mTwg/V4JagJer29Fde2Fy4JLHzyAEV9IrTTBw7bMDe3ghKpudrmHhqCw+fxx9aSYfVx+3D3Lm9FfZgWRicdN7oJEilBgXiBH2PNLPMaM03CkS0E0rkbBwbq49tnvGm16DdljGv58ZFd9vUAYqIy265lxzv1LM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720048035; c=relaxed/simple; bh=UEwIi6PG2Ortvh0ehIWDp33CtLYDrZbyvTUJLpOuJ6I=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=l2yhf//hP40R1r3Zt04N5c2plqsgb1yr5jcQvyjK5ajh/+XsU0Di5CU1gtGa3pGrM+Q6vBZItc5h7dw72TMFEJ8D0bGj4kccj9xDsQ/pEV2d2h370cqughoQi0o43PoDWrHrXDOmtljMZsRqVVrRSMN79IjPwb/nuvSrGMKPEe8= 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=OH3nMtqY; arc=fail smtp.client-ip=40.107.22.73 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="OH3nMtqY" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D65oZgHVeOdAmfzz6GX0bap8li73MvJrU9AOTY1ZbirmPxlhcsuClADJopXmbjLg89JLpF62L7V8Fgc0f4k9DbY8N9dWx9kcbwSbk9c1hWJXunHl4KZ3cP+9QkvheTUAj5GiHCmA0hlQeAkG1FPolavIixi8z6Vcm9k46vBM9qwTBUcfZ4GysrTgxm3Ob1NpXGho042zYbYUYHscIjJ4zG5P0VDLDSldM8GKS4MFGeDKFg1acRol37oHx9SDxW8uzLWt8imuX0OB+YXUmPYSRkUCjSXWMypnKRTuKo1yL/sahOLm7aKGkcVqJU1dK1XYHu9HtFLk9fUzH7vgpzzkqg== 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=ummwOsFF89Ina+kHn0dNj3ckyMftyrH2ufVOlkq9puU=; b=FAB5IjRgDkbVkUXcLIsTxUG0WRfIL3HB6iWIqxwXxrIDcU20iVntdL1c6Vtu2hfmoQp1zPV477ahhKtPbQzLV+J4U8RU2IrDORdqjCaFyFYituaKKSz+UUm4VEDUC4Tf2fWsdp/rcATVhJU3VzOWZL2Put0OqrBQ48E3gQh9hpe384Iy+mN+r92M8bUX/4H364LyZH0rCDQok/f9JxnomLBt/JgC/K1VE4r/HSFulPSBlpd9gzcUEs0+jlPV0l+xPjt5D9jQ/hqnbvJvaiZWCuFSWuNQuM92cuTuMR/+bdVfQEQAw/adLCo4+PF91l4USk11/WRiAiq3bt/sh0nEkg== 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=ummwOsFF89Ina+kHn0dNj3ckyMftyrH2ufVOlkq9puU=; b=OH3nMtqYoxXg4JBbJONeAgO0kiX3Il4T05gcbYjKCZjLaRl5RdGqdwZJnm1k2AUdTqreE8q6f5g0/5jPGMfDZnwk1DCrCfYboiUKKq0kQEwOew910eCT+SUBu0OMXjqMHMe+pd4H25rP88RdYCrB8/WBav5HkeFwUXWMsmiKdc0= 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 PR3PR04MB7242.eurprd04.prod.outlook.com (2603:10a6:102:91::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.29; Wed, 3 Jul 2024 23:07:10 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%2]) with mapi id 15.20.7719.029; Wed, 3 Jul 2024 23:07:10 +0000 From: Frank Li Subject: [PATCH 0/2] usb: dwc3: Add cache type configuration support for freescale layerscape Date: Wed, 03 Jul 2024 19:06:53 -0400 Message-Id: <20240703-dwc-v1-0-9cbc93d49180@nxp.com> X-B4-Tracking: v=1; b=H4sIAI3ZhWYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDcwNj3ZTyZF3TpFTjVGNzi5SUpFQloMqCotS0zAqwKdGxtbUALoPY+lU AAAA= To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Felipe Balbi , Thinh Nguyen Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, Frank Li , Ran Wang , Jun Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1720048027; l=1375; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=UEwIi6PG2Ortvh0ehIWDp33CtLYDrZbyvTUJLpOuJ6I=; b=jARtpgxtmKpXW1wesdq1PKSuF25vX8ltBhZExZA+dT2I2aKAQmrj2m6L+MU2EMptzBWEFw8ss jBay/v9y+e5B/4GU7erO0hqZLSiH2g/XP8csyzex28KzkmFRgig46sx X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR03CA0063.namprd03.prod.outlook.com (2603:10b6:a03:331::8) 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_|PR3PR04MB7242:EE_ X-MS-Office365-Filtering-Correlation-Id: a16d7ce6-eab3-4692-278c-08dc9bb4de0e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?HM3ALiw+VNd1OkFpRLe1Yy3jsve3D24?= =?utf-8?q?HodXKVwYhGlAFTtBeUxIHyu3MFK8if9T7+bTsulE9cHkjmvoP1j8vysmyj9eYk7F6?= =?utf-8?q?fE4NktXJSEbYv+3BmJlt5qIs2q4cnjFkTNCSSyDRjE0HH3KKB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maLFq4gMya?= =?utf-8?q?48KQgZcMyTUiEitBKqFbChwGRJ1Lwh+ksC88HEzGRmNjztxR8BZTdkdLjDwn5zOHP?= =?utf-8?q?gZ/wqGMycCfvgDJhCxW1uCpyIGL1741C6PSTmRHyb+uXQGA75F9krhHV80t/Ov/zV?= =?utf-8?q?aO8T2JfdY6zGjMVzD8ZyQolOKMS3J7bvPkzs7qwJ9bEgRmOhHPZ/kxtezJC+O7nRE?= =?utf-8?q?W1cGsZly1Csh/WPypOZh+fRot+TR7DTjioUgzgtAEW9F5EJt88eDk+pHfGmfHE8c5?= =?utf-8?q?iebz+ATqVDCiIKlXAuJEdIidrQD/51IMLazJ/5sxW3+HNIN8PY3aU4tI=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)(366016)(376014)(7416014)(52116014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?egRBbTHt/zV8P6STbPQ/y2fm2vgl?= =?utf-8?q?n7OrQ7wK7a0PFuBt5GkrsBjU/j0NC9Y1paU58627yGSHLlju8aj48LRt04o1In9cs?= =?utf-8?q?Uh1b52TkQf8bZaKNkU9R2cHuM3BsqPyqtGpG0eTgVRTYaKPJG4HI/G7J++/7/MLTN?= =?utf-8?q?ML5ODnyeHM+woDvOZURla5m8Mo8jZP/By3JKEjNbfrkwD1rwdS5+DdBz79HkXRLVX?= =?utf-8?q?3P3C4WRR7f0McQuM/l5aBMJAlHtHsyDd6wdKC8XnR7EC0cw7F2ooozvdaLICGN6AP?= =?utf-8?q?iKD6qxJ9VXSot6/ZWubTh6qDFfl3EZSIBbRs/lv2ruOkfyO9RjLbjXCu9GRasiK48?= =?utf-8?q?IWiwys7i5EwVbKoy1lKfzVoDc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qv8m2zpKBwE6HLbOPaLd1MLniY/3thMoxGaYXUOAIPsUpl3?= =?utf-8?q?t1j3bA9BAg8T9c2k602HYcT+fIAYkw+9z21+IpbspxOJb7HvAP/MTuus3iIGq8xTX?= =?utf-8?q?smO65Tuf+gn6iaoXKeJqN5e1NjXivyGLArSWa1xhdFoemkW9OcCkCZgzAvWYBXv6S?= =?utf-8?q?FcWeyZFmE26aFSGJFTrwqcKzpve+s5zILHGYlUWC7auL6wUpr04ym+GWoRcLve7ON?= =?utf-8?q?pVAskZQgXWbwhuxe4QVHmPArigLvH6SKyTZx3KgxryqqxRBUa6i75c9c0GO8Jy5g5?= =?utf-8?q?Y4+kGOPIUv9N?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a16d7ce6-eab3-4692-278c-08dc9bb4de0e X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2024 23:07:10.3177 (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: mTHbSMLTFew8uQvEt72TB164dXMO1MeInvIDmodM8/wvlYYqV+m4o6KU3eMbzMu00WRq0lghW3rRHdlv2q/NLg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7242 There are several attempt to upstream this code in past year. The first attempt: https://lore.kernel.org/linux-usb/20191121095356.GB7503@b29397-desktop/ cache type is dwc core setting, not glue layer. So It'd better change in dwc core instead of glue layer code. The second attempt: https://lore.kernel.org/linux-usb/20240123170206.3702413-1-Frank.Li@nxp.com/#t DT team think there are not variable for property 'snps,dat-wr-reqinfo'. And suggest use vendor compatible string. This is third attempt: Compared with first attempt: - reduce compatible string to one 'fsl,ls-dwc3' because all setting are the same. - move update burst type code into dwc3_set_incr_burst_type(). and check compatible string 'fsl,ls-dwc3'. - Using bit field help macro. Signed-off-by: Frank Li --- Ran Wang (2): dt-bindings: usb: Add chip-specific compatible string 'fsl,ls-dwc3' usb: dwc3: Set cache type to 'snoop' for freescale layerscape chip Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 1 + drivers/usb/dwc3/core.c | 12 ++++++++++++ drivers/usb/dwc3/core.h | 4 ++++ 3 files changed, 17 insertions(+) --- base-commit: 0b58e108042b0ed28a71cd7edf5175999955b233 change-id: 20240703-dwc-5be3e378ddbe Best regards, --- Frank Li