Message ID | 20241209111423.4085548-1-xu.yang_2@nxp.com |
---|---|
State | Superseded |
Headers | show
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2060.outbound.protection.outlook.com [40.107.21.60]) (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 B6123217F52 for <linux-usb@vger.kernel.org>; Mon, 9 Dec 2024 11:14:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.60 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742857; cv=fail; b=Murh6R82/GBLWRnzYV6Jrto+PGBdQcK33oQZFDWxAdnDjJ0f4mqzrUBtD51UIIRZph8PiKLkOj2CVtNPn9NysdDd0v8/bIs7QRIhhas1haMzBp+xxYoQbCQFZIB1oDB9YNKOOcCD+Qtm9Igu1rjRwPqkrDiSlZ7vnwii4ivr+EY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733742857; c=relaxed/simple; bh=9g4Es4qaKlNTuv6sfRUohKEufXKipul6Q7hRenzE9LI=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=sEHsOg6dvi5caDvu/rU/2Dsl0Iz63UMppnj+1UiHtrrsljnKwHyHEyBEbAcAYl0LYFC1ld5WOrtcI4XTv6NVS9JWK1CAl3c1W7bRxtLpriBvPKQ6VRZB2MJy7ipMiK/6Tn8PMhllNrGOY/slN1OgZyYKPwjnxscybRZ/oKCg0Cg= 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=AqqSRe3W; arc=fail smtp.client-ip=40.107.21.60 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="AqqSRe3W" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VEikFFL5x3MCWyxfUkHirpIAnLLOd3MaGrqPz7e5K2dZy80JpaS5noeFCFfxtRhQPRaaEhkG3XNExVMH3b3fCmHUwF6Ej1Hts7oBFdSuUMBQh5ANNmiZV+YRom3QonE68O5sfOWu4alTPnUErxxvKLMy0jj1CjMilkHxK3OKnLyWmJ44U0ATbt7anyIoEkYB2OxsgG8lAmS1BVKuFC5Kw3dR2PlU0QmuhUTEz6cDniM/NR5RewabNvs5P5bKfi38QG/DR/Ed5fpcAfACuJYyjKIpSJXM+TfaDJluVnCltfSUWuloz1mZQAPi2cgbeUHQghZFotQtTHRWgDpFNng6SA== 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=Fj1p0Z0RNN06m9prAeS9bBcR9KMfR660Hn5Et88F81U=; b=FZRv8LWLWLQW+IYKAMLeS5lNXUvDulVnyapDhDFIEJG9I6KfIazCPjcMpR8+rQIto8LlaM9FAvba2Lq6KxypDPVm2iGd4HUhrxr2QjNih3AVyf+tWld4qspT+qrQgXHLg3cN3xZyOt/QpW3cv6QXsOmpSWkR3efLh4uEfspB7tjiM4LU6+mmbUupgeifSGainKaRrimbuSL3KI1J0H9gySEly8fA5y8UR3vcJN0Ky3yFMIYK9S0wKwiPEX9h2dvmPJ3G98RFhUBE96ax8+ozx9MuD1/YcdfKE2BCFwuTB68lBPzx3uk7HpPCxiVqBuNbbsU6oqDgEjdLJHhvlvpVWw== 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=Fj1p0Z0RNN06m9prAeS9bBcR9KMfR660Hn5Et88F81U=; b=AqqSRe3WcVa7kOXLFWLIXRTfoOfmG5JNMNFqI0pQ2zPEDmI3zHfjrJFrtfDZYaJ6Ylm7oAw/h+ihV8Cv8FRatasqzXv//6jWbylAQob2Vw/kgrsUShyrPouvVe+BKM4a6NsuRhFEuO6FzgT7xkILkbuoOnGCqtMPmN31bpe3QmLaUYd3PrYOL4mD0WgBoGrSQLohYcngGEey2EwBXsluE+6oMoKIyuchqkMYb9UjlPVfkODEZWucR7hecYxTO1ttjFaYNkIKtZyzSYGfmPLBK3u2bM9EF4Pj0cPBCINczjMhXBNPV8R7rmM9FjdDk1c48QcYkzUuWcYuoA3v8BFBNg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) by VI2PR04MB10737.eurprd04.prod.outlook.com (2603:10a6:800:27c::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.12; Mon, 9 Dec 2024 11:14:12 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%6]) with mapi id 15.20.8230.016; Mon, 9 Dec 2024 11:14:12 +0000 From: Xu Yang <xu.yang_2@nxp.com> To: mathias.nyman@intel.com, gregkh@linuxfoundation.org, Frank.Li@nxp.com Cc: linux-usb@vger.kernel.org, imx@lists.linux.dev, jun.li@nxp.com Subject: [PATCH v3] usb: host: xhci-plat: set skip_phy_initialization if software node has XHCI_SKIP_PHY_INIT property Date: Mon, 9 Dec 2024 19:14:23 +0800 Message-Id: <20241209111423.4085548-1-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR04CA0192.apcprd04.prod.outlook.com (2603:1096:4:14::30) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) 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: DU2PR04MB8822:EE_|VI2PR04MB10737:EE_ X-MS-Office365-Filtering-Correlation-Id: eec5af45-1688-44ae-2171-08dd18429c34 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: NT+Hk8TNvhsDLrX8xFLplh8cUDYxdoAumWw5p4kj9DyXDd/Bk7ipH10bel8406tjpWBCZjxW690x7odkpjXTVz03UlZFcl2O8FnXV4gE1NcyZOz5k4Fcwb6B2b4OR6kEVQXrSiQyroV63dBeZU9VH2U37QvEzcLz/hubSg5XanABBkcd8mMm6A6wRep0bENrJCucDa/4mSY/fMqr+fBM7BooJ4HtlusqYTIvwPqYVhSYN1NcyBFV9GIMItZGEoErNnjyFF4wl6lJlWB1PZTAfuc7EN65UYNWRO8t5Xp8buFRX1OLcTvrVD27/CAI4azie2l0Ditn0T1Ycbj9MAc4hT9g0aaMPQpJHHWklkaTWh4cso/a0Pnr4ZeEUPHMj08btgCCmgWk7Qke0NyogqSWWmjMSFino1q7q37pVrmn+/j5gw1fkEhR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urprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(52116014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TnT99N9AHgCtwMq7nxYuFs+uCUf79es/mvDSkOCiSxnHGqp1CD7P3BdsRt/6S2ZDraGh/7jBsV6wQ45LYEG4r11p3GPa1SrqPj/LGAUqFyzRDLWlwNNHQXvw06ZbQHKgAfY1Sy0ODGWpGuddEIqs3GIYuQyZvBwKzHft5ossZT/YX25ItAPPRsBeBk7GDw1wHwN9svuOOAQ43qV/5JzxqxW98ZY8mz51DbrrjRDezrXRdYY4cqqZvY0JejaO+9/ljPxk/XYEEz18uw4zWLk0ChLQ6WVLlm6tlzW1gjQ7xlWtUIOuql6+aLcq9Rq3JFd0Ra1ldUiQMLEiswaAjAY5oSQEE8Nu7ZoB+lh6tZD5ELQBSwnrlJfqGaBrhOMhMfFUw0IgreSnjysAZ8/g4rStNQG8oXPsJ/mlFHRczMlhU2PDeErlyDSsCyOMq7cbbwOTAp1GKs91UJB7aKh+wruFVkGZYthFmuiuEal34i6RA4kCTOpo5if1cHMXfv/zm6fx+PC/DqQN95fFOIZuYk4RSeLtnIY8IgDIKO8hd31vklN2yz7wOfPsGyZe6Ipna8TPHx1rimUtGgS7UBZGXZIcuOaSEV3AjwiDV0633nKSJAFTRn9P3DOUzkUdIXxyrhyKe7eBRUV17Sj3mT5CF9IvqTr+SbcyiFyY4JhFV61WX016dSivUOUiqjx91vc+qAZDlgF9j+tJ96HTDf7uqd3EKKOuoskLxp2IO0zbbgGz4SH1kEtLfAyxPQ2K3KM/edf7rWxgHilT1kvEhrXdjbZeFArQmXH3nTI/0QvEBZtULl+ZuIeaQ6kt2sfmy0Z6uHfrwVkr/BXYpcN6jMO32MKhz4BmG1Q7odt+qWBMTSriIWn3PuGBOqr6MuZIFPIljgLaWsGDu3YcB7a7p7NkODtSYBzjGDgGmEKHvgUqdE2/PUydayP8tLbOLfwpybohJ1lXGZ1lnuCF9EnkegMqJ7QyXsAKWl8HjWqN+LPEAvKjAfkXZR9GLIYPWqv/ecf7SzIo4b7ogwkActIHlANXWtk5oYQJ8L58vFji0FGaGbS1X1T5qDOEU4brGR42IsrKVU9y0nCt4/kIPpn9WzF2wshGOno9iK0d27cfbrQqlR/1ooAZ9srXvqqkAPPNMRlw4i+lXa7JOue7uatuFp1vm3tt3INSyNRX4iQ/Yt/FnbbBV3Gt131siWFfp8qz/ddoP6tm2DWpeRtYjLI+HPxWWuLmPpGN25ZSWWzr+epJd/qkva6IIyKfEi0lCpMKDdMKEZwNExp6L+uoM2CkVGs0eoJxuxuqFaqEuQIYSh/YsAfUl7eymy3iXbAC7kP5G/ZdNTr/3GfSQ1OzmZaseH+MjqWEyz0cEKL9CNdY+evjKWDK1YxolLjGsV9QU26sTM6Vvg7+j0ANcGTh7W4QIkRgCPP+x2FdTKLJr4OVg5nm9henisYW3qnUjX7Q1pKJEuzl+Y6UKt2e8WHl/itL1tTqKXIjy6Y2GGg8UUshl5NrI/RiONBH7vJsD5IyYLVacyQ9On6oxgpI2avhkcUpC0Qzpp3Zc+MkBd8ewLnfJl3tMZ5ft9LNB4+KXfOcd3vLDtM7omb/ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: eec5af45-1688-44ae-2171-08dd18429c34 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2024 11:14:12.7350 (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: OYsfZovGAznctZPIQtGCiZpPzsvNedf2KSbGc12Hk/eqUiyQujzqhasbJOhtZxsVh4nMG5DmHorlTDnVyBgqVg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR04MB10737 |
Series |
[v3] usb: host: xhci-plat: set skip_phy_initialization if software node has XHCI_SKIP_PHY_INIT property
|
expand
|
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index e6c9006bd568..db109b570c5c 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -290,7 +290,8 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s hcd->tpl_support = of_usb_host_tpl_support(sysdev->of_node); - if (priv && (priv->quirks & XHCI_SKIP_PHY_INIT)) + if ((priv && (priv->quirks & XHCI_SKIP_PHY_INIT)) || + (xhci->quirks & XHCI_SKIP_PHY_INIT)) hcd->skip_phy_initialization = 1; if (priv && (priv->quirks & XHCI_SG_TRB_CACHE_SIZE_QUIRK))
The source of quirk XHCI_SKIP_PHY_INIT comes from xhci_plat_priv.quirks or software node property. This will set skip_phy_initialization if software node also has XHCI_SKIP_PHY_INIT property. Fixes: a6cd2b3fa894 ("usb: host: xhci-plat: Parse xhci-missing_cas_quirk and apply quirk") Cc: stable@vger.kernel.org Signed-off-by: Xu Yang <xu.yang_2@nxp.com> --- Changes in v3: - fix indentation Changes in v2: - fix indentation - add fix tag and stable list --- drivers/usb/host/xhci-plat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)