Message ID | 20240712-dwc-mp-v1-1-295e5c4e3ec9@nxp.com |
---|---|
State | Superseded |
Headers | show
Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011068.outbound.protection.outlook.com [52.101.70.68]) (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 060C61741C7; Fri, 12 Jul 2024 15:40:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.70.68 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720798858; cv=fail; b=fy7ijR6C0EvFmilqlmxFYZ86wFiEH+YoQtl8WMlCL99D0g+EDYM/CEWSU7OSxjC6D1QOL834ay8DlMcd47if+3PSfg6JqW3ruj8qFHDpPKKjJvIpIv1mWuC0SfdB8lrdaRRI9dHXIchI4+ShxSoYhQzhBzokDfuNDmu0wNcQ/3k= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720798858; c=relaxed/simple; bh=OPMEgo/PPVAH3sDsMsvf6tFyCZJh0Wh9SpXjFlyjVQQ=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=TN7E7GfitDtjS6MIg90OtWN2A3DzfV5iZgwzYvCMiPxQnKdrhw0r7pkk3IaLcWNRS/hwZaV4I4hacSwj44DnqkKi5Tcr8+BJhJpXV7jYGvyC/hTu+GCk9vlrFKa72uDpanSVPoqvE3SKRKKu+9LA3Gz3LgvQ0jxBiG1uITnkONo= 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=RKHh1nqM; arc=fail smtp.client-ip=52.101.70.68 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="RKHh1nqM" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=to1FKDS5KTJDs3gxeR5/zcwzbcuUV8vYVxz0bcFVFrji3kxn6Pkm5vr0dqZxh0oIkEEsaymDgbzQhCGYbDKhI9lvBgtlA5lpJlhxTnNabteBoXhE9GA7ZyrYnF5bgVviIk2mA0IqneGhMEsTv2l/fXc19XpMN1hZxB71LEkoWH586IhlkP+gnoxZOuI23p60YE8jxvopNMXz7BWX2qhREFJGgHicxrE6yQzbhTa1RlpExZUTFLs1LBUGgAPfKev73APH+la+f9a1DPQVRtjUt5+odVH5MzSXQx3x15oQH7Nz8OVj8FwZIkKzuoF9XLKqBeCVOCi7Nr34+v0FAeulrw== 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=5FGgaU9IlyBHq49XF9k5+aS5ZI1cv/6PvMPvqC36+xQ=; b=XA0jKdaOOhdNA/IooFFmpBBXG0M2/69AeZEotKUKLKMSpmlxI/8BMivG0ogIoGXnLCZ2oCXxORtsdob85sVIKXimZqfsHA6ejBxjxwg+Tv7EjJotslZ4EKdl46j9iOXQqSxyeXzm6cXH6lbxaVcOPzt9F4mQd98BmLYbAz85N/5tnALrYTRrGZ8dB1ghwa20iUoq1o3HKuBO7fGDZGwI/HKIYquZxL3TOzVZhzaX271xRCAF5M6HQC42wGH2VZtCH/jHjSVMftU51t0HC6B23uLIWj7CWE6M4E5Fo2cNXeUNE9bwMCWwbJ8WDgZMPuL0MgmRghW6fgJLpJoCHVEqLw== 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=5FGgaU9IlyBHq49XF9k5+aS5ZI1cv/6PvMPvqC36+xQ=; b=RKHh1nqM5se5d0jTzhvlheP7nJOnnVYLzKhODUyeR1rENIR3ldQ4MRcIhn4RKKbiGrtvO3iuSMkJK04NhTvk6432CWwfTl+UzzfI9ASv33UyVVTj4Ni/jyAfbypq78wkHmP3bQ3bcwPDiMQy/05VRZ6o6+uqHNMq+x36vGABiHo= 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:52 +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:52 +0000 From: Frank Li <Frank.Li@nxp.com> Date: Fri, 12 Jul 2024 11:40:27 -0400 Subject: [PATCH 1/4] usb: host: xhci-plat: Parse xhci-missing_cas_quirk and apply quirk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240712-dwc-mp-v1-1-295e5c4e3ec9@nxp.com> References: <20240712-dwc-mp-v1-0-295e5c4e3ec9@nxp.com> In-Reply-To: <20240712-dwc-mp-v1-0-295e5c4e3ec9@nxp.com> To: Mathias Nyman <mathias.nyman@intel.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Thinh Nguyen <Thinh.Nguyen@synopsys.com>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com> 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 <Frank.Li@nxp.com> X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1720798845; l=1035; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=OPMEgo/PPVAH3sDsMsvf6tFyCZJh0Wh9SpXjFlyjVQQ=; b=79kQ5gU3I2Wiqp8CjL+FmnXYIuNnY9o/3nwzGtu3pavtkPJTO8rBSBzRnWEa3bk5RbM33/nKp 9VDJBUZqjxUDZ9tmKV5LNKVDZRERRTlEU3k/lx5nNMXQ2XjdYmvPtxl 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) Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: <linux-usb.vger.kernel.org> List-Subscribe: <mailto:linux-usb+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-usb+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|GVXPR04MB9803:EE_ X-MS-Office365-Filtering-Correlation-Id: 250b3e2b-b990-4c24-a2f7-08dca28902db 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?dYE9626HuqSjfNtbRosvTiltsSWMXoK?= =?utf-8?q?OE7ll2A/CVpkn+Pguxvq88svUadl3eg0nZOOntZmwMXOwyvvbX+Fjdt5a1GbHwtSn?= =?utf-8?q?SAD78K+NjFzLWudJeM6XTa28kmPLJql8wWqn2JhWai9sNHBlOEjFM4/1z+M/pzSf7?= =?utf-8?q?Y/AfmvAnJFnpwIbK6Hl6xv1O8eM4lSVXT7ix1sn+C0gb/Ge0YY0pr8UvXtqaXplf/?= =?utf-8?q?fdJlEQeOfU2yAMb31K6UqGZZyB6pDAKh4oMP+r/dmZI7PIAbHKHIHVwLzmCz2oHrM?= =?utf-8?q?FPSu3KdxyT5OJtlkfEllk0UPg1p1lMj8D75vbeIamXIxHdUUHItCd1Zy1k2MpUhNa?= =?utf-8?q?OW470z3r9NCnennJe+5kr7/iB23OWHRuRhOlNl6Maz7j2mfkB94YHf6fJqfdQDo8j?= =?utf-8?q?UJlEzI7fxo12UTTlXS061PYRyciNHneVMdbCnMBtFJqHAgs/AX1K66XPcxeVM8cHM?= =?utf-8?q?sVbuGLKrdjbe7dOhA4EcJzFrtO7GA0d89tCWBHpXi+d/1bTFLSB4dtU5f62AmQzYs?= =?utf-8?q?JnurUqBcIl/MF9h3YO/VCSaIwmdpvYhPTcu/B88y1fVjWp6IC/GuQOnpQaigyiimB?= =?utf-8?q?X1E48h4vCvzSO9vQRtuLTFhIuEYvGFPaQI33szxazETDAXfkg8QNo0JNi7TxNK1jm?= =?utf-8?q?lQw1zhYQ852dlV9e6KuwmORC4iWsXmLtaNmdoI2HtronkIN5YVn+BoX/wGyk7A06F?= =?utf-8?q?Mzjn5ToFuQQ1hJbDopBR2HiO9rW/SDD+koeA5N7Hm3Y/deXhNpIGAqDkz7XfoPvgq?= =?utf-8?q?tYkwoRF/ANJV3n++51PS1bne7tpsl+wzD9wH/fJnEebnjD0252t4WsmrEi0CsJwuY?= =?utf-8?q?zFfSdLtqegDoqoRPEQX+W4p4BSFJunfxvBXk3cuf+j+nyZxz+dF9agv9Tv7LFaivO?= =?utf-8?q?O3dvz+Kyzv1jLkVO4J+y/OGcrSWRhCKXfb5pCJDpFcjNqCyhsgDJ+SpB8P9Se9pdz?= =?utf-8?q?PUDMzqfy7o4UD8aMGU9YP1MzHEs0tcQobvGLyZXYgnfYrXCasxjmhkneh6LJS6/xn?= =?utf-8?q?HyXSO85B9aFVf7o2k2Cl5kFVNfA1uRI+jwBv9xbDpoQDiV9qOusYT/owIuWA4H7yX?= =?utf-8?q?Qdya7xOyCbP1iczBDnKnrciIDK8v/okO/FqsZEJnh3IuIZdHDX69Z2z7O1Us27rjL?= =?utf-8?q?X0FCa1FcI1xgoofQ5CMp5Flyl3zboyTv2oMDv/KABdi3jS5RR67cAePaJ7Fsg+HIK?= =?utf-8?q?bBrFXPrq7yQB5lHMI/3OgAuBSYLz6Z2eiCN/hoZljncxfVItYFHTvW6S8bPNT+A4F?= =?utf-8?q?FShISzPwVVHbajzgFRRPf4YbPx1uXZ7q2UpQNsy+l+zEHE3BK3kl5AEugdA3Bv0bx?= =?utf-8?q?UJMPrV884EXsI1v0cCoq4GlVYFQZ6QR6HA=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?5uaPYbAq5QDHk7y6Qex7Th9d+8Zf?= =?utf-8?q?emHfcqXDvHwH+l6c/4Wgny95Kicu88ucp04Yy/APE+F6k2c6/EAZEW+n7nxUgO2Wy?= =?utf-8?q?Aahy9nf3jKrqUQINZygN5xwDe4UKHc00jmgsm9iviA/HHd5un1q24xuvi1FUJ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YEUPjL72msGkO?= =?utf-8?q?caSP4ZR64BpEcWyZBafKPRHx0tptC9df6qbPjcTQKgBruklAAU78BE38A1M7THjPw?= =?utf-8?q?x7Rx8eQyevOsHfOVH6XSzuBYp1uz0sSm+D03GHzO/fJ/5rrCf6sTFZLckETy2egEx?= =?utf-8?q?6VX5qcVkS7HiYEn1eS5txg98rrXLMIoSI8LeeGn0gbzmYIFK/Yv0ky4bsaBpZAHP8?= =?utf-8?q?Vsiupg+Dr1Zlq4MFYD/xX5KP/C+TlqeRMwO+H86SNGvFeln7AiCF4DWeEhf+V1PLV?= =?utf-8?q?8oxLfRZEy2gtxiaSoU8cxAMR3D+OB4nhOVrBgfzXwc0l7qcZdahjUaNbttCx8hBqx?= =?utf-8?q?5GbRUlegAWHLrc0rnVkaj3zZQiOvEhmGKaIaMxJyGf8emNMznfcH5eTlrnI0rKJvr?= =?utf-8?q?QBWD14Q7E2eCGXRD9PMp1zXJZYDhhm5PSt3oOMD7ledmhtOWXYrFsiTAkYwFCyTn7?= =?utf-8?q?5o1v+RXctfw18mCK9/Uk6lmgYki9pSWHcdUwAy/pu10JYqsXuvrRXg1zRIWYMlUX5?= =?utf-8?q?s6hUn78Ig0h9?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 250b3e2b-b990-4c24-a2f7-08dca28902db 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:52.2949 (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: 9kkJ7rmX6Q97+7fWvl6oByOXjPFh/vvmZRz90i4le3Z1NJOFdr9v2p5ftKK6fs6/XGm+7gtU8Pl765DaQjlucg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB9803 |
Series |
[1/4] usb: host: xhci-plat: Parse xhci-missing_cas_quirk and apply quirk
|
expand
|
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 31bdfa52eeb25..ecaa75718e592 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -259,6 +259,12 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s if (device_property_read_bool(tmpdev, "write-64-hi-lo-quirk")) xhci->quirks |= XHCI_WRITE_64_HI_LO; + if (device_property_read_bool(tmpdev, "xhci-missing-cas-quirk")) + xhci->quirks |= XHCI_MISSING_CAS; + + if (device_property_read_bool(tmpdev, "xhci-skip-phy-init-quirk")) + xhci->quirks |= XHCI_SKIP_PHY_INIT; + device_property_read_u32(tmpdev, "imod-interval-ns", &xhci->imod_interval); }
Parse software managed property 'xhci-skip-phy-init-quirk' and 'xhci-skip-phy-init-quirk' to apply related quirk. It allows usb glue layer driver apply these quirk. Signed-off-by: Frank Li <Frank.Li@nxp.com> --- drivers/usb/host/xhci-plat.c | 6 ++++++ 1 file changed, 6 insertions(+)