From patchwork Wed Jul 18 06:42:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 10531361 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E46F16020A for ; Wed, 18 Jul 2018 06:44:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2FDC1FF83 for ; Wed, 18 Jul 2018 06:44:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C752B205F6; Wed, 18 Jul 2018 06:44:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3553B1FF83 for ; Wed, 18 Jul 2018 06:44:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729325AbeGRHU1 (ORCPT ); Wed, 18 Jul 2018 03:20:27 -0400 Received: from mail-he1eur01on0059.outbound.protection.outlook.com ([104.47.0.59]:51509 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729332AbeGRHU0 (ORCPT ); Wed, 18 Jul 2018 03:20:26 -0400 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=W20L0wrUQ2GdLaIPrRToFeFc3yBvNq5mJLdWxfwxBQI=; b=uEtC1SAKP1gH99sZLyx9EQ9Pm4GQwf+i0zVvdYT9iYyNg4TkySrb0BXNjqq4oNLZ/YH5jjdIlQlga1dwkCU1+8n3nQUnhRlS+mCNk/YsYVfMKI6EAe6RvFMRNskweJ3oEQtRLrjIDotH5hE0RCBwJBuxIGOHmBEAEf3RkEJ/a/M= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peter.chen@nxp.com; Received: from b29397-desktop.ap.freescale.net (119.31.174.66) by HE1PR04MB1450.eurprd04.prod.outlook.com (2a01:111:e400:535c::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.19; Wed, 18 Jul 2018 06:44:01 +0000 From: Peter Chen To: mathias.nyman@intel.com Cc: linux-usb@vger.kernel.org, linux-imx@nxp.com, Peter Chen Subject: [PATCH 1/1] usb: host: xhci-plat: add platform TPL support Date: Wed, 18 Jul 2018 14:42:21 +0800 Message-Id: <20180718064221.16577-1-peter.chen@nxp.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK0P153CA0028.APCP153.PROD.OUTLOOK.COM (2603:1096:203:17::16) To HE1PR04MB1450.eurprd04.prod.outlook.com (2a01:111:e400:535c::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 84cf9c6e-1b4c-42a5-8701-08d5ec79d9b2 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(48565401081)(2017052603328)(7153060)(7193020); SRVR:HE1PR04MB1450; X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1450; 3:BWs4s5WZ/TQ1VSl2prjvNezQ1nBnu/oLY/rxA4omj4Rx04njrlsRLj3cetLt/AkwYH346B1YAmbwrY5sw+kKkJGlZz9TnoHW/vcdDtx1FpQaHmqVvbPpNnm/v7RghZ9crdknGK+h2LPi4J56F7q2g6EVMSi3Em062DYa0thFp7baCb/P6hqs0ZS1YNUiUyKGz99AT1czwCAsjhaObYuGHSdAgqaWeFUkynu7vNKLtZ62T0qNT3RT8UMKdeel7He6; 25:QSygwjqQ4T+dHoZmv3Qvpi81Dtq3o3zmRZ4llRJzTNtLTrray/7VVPE+nyviX9gC0HQWwNFjisquyQEuSliFh7v7YdeGKVmukpPLAzWCffpMWOfX9P3YdQGmWKViUakC32jdT2dk4krW3l2CvlJw6BH8YVUbG7CM6p771/SCvGnG8cx0/bDD41DYOxfQsF5UA4fBsP3xYnBKaaCLdrL5Tnn8hYiUD4o1dAl0/OcbEilNb+6s3BiXHg9b33Fa4hZukLecMihCaPcYN099SzeJuHZdys8Bc2FmvMlwFQjo1Jiu6lCU5CUneJX63JkuWcrW4KMh+xzSntKQ+1ogLc6zcQ==; 31:6T6Ghwz25HGxU3rR8NQpnprQWcISdsB87YWlM7CEhbaf49rjfJuLmrkjJn0JmzvKJtBSXH56WUba+1/RVFI9m0+8cgtdGB+xQYuem/q7ai5PBv8HjbUUlS963CgR/eAJBABwlhDu73heu1rU1QzT56O9oxCZClpsbI9M9zUorqpxsifVuc9KiLOI1V6AfPH3dzrJHOp1o9GRZT+/QyLHS5+knZXhma3Om/2hc221wqc= X-MS-TrafficTypeDiagnostic: HE1PR04MB1450: X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1450; 20:GXJw+yQFgvhoY5cARGUfJ9xDaFKRGQXSZ45ybWpMP/66emmbZ+sQUzsFi1iB89LMwXyZx6nz20cmI2SmQZo6sz29NGCOu78cHCIT3pVC1q/uIRjN973mttmD/DD36rLSr6HoNhEG0Dvc7sunKp/u+qteKRB8wOksPaDbgDCPKd8lJRF24Mpftb2Lu8VFEws071DFpTdHOpRegRaTSrAecPvVowRWCebodQ2dAAzrehRU0l3Sj3+oD5m1XKXNwuFVgng6YZAoSfNDFAba6Vc3aDlMeUHELWsPm6v9Lo4k13yfTVdeaau3S1DWBYLfD/xcrlUGwX41ygWzyWQqloIHYkSU51rDPGrBrPGvgnqgzAr8tGOI2PIxV0DsHaBgYzW0BHZ2Hf2dbJN9VMKahtgDfzwKP6dgOZJ+Cu6V4OtMjy5K2+3qyFl7zjeWPGI3eXk8yVwkWZyUhlcI7PBxbwvLg2mjMIKZ/t3OA+a1hBda7PH+U6gop24EccHqQGkh2E0d; 4:ejdTTtjH/KcTNGMnrx75XJzj5IF5oujCi02jUBZKe/Vv2JMeIgzIyXQmi+aEMwmAV96Hq206cKWokSQ6RgxM+4WGsm+ct2VUKb14KiukrF2ksZRw24zPtbw1AC6xV2b/VPDIA10D1nSH2AO/AGmtlhau75vEMFFOY8B+RBKarrZQtFvCTE1FllDYMKUyxW0PE8zsy2Q5j8+6Unc9EwLZ64KX7w1OSDKGSKdVypD8XKXiyiGD9BK1oa4Re6Ycr21ecsHy6TRz2Riqqd/nE4bRwKNEubhtlKyJ1NAWx4EBLDkrfJYAOXaRajpe/SkS4zo0 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231311)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:HE1PR04MB1450; BCL:0; PCL:0; RULEID:; SRVR:HE1PR04MB1450; X-Forefront-PRVS: 0737B96801 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(346002)(396003)(376002)(136003)(39860400002)(199004)(189003)(6666003)(6916009)(51416003)(6116002)(52116002)(305945005)(7736002)(81156014)(8936002)(50466002)(97736004)(48376002)(8676002)(81166006)(386003)(6506007)(36756003)(26005)(16526019)(186003)(2906002)(6512007)(3846002)(1076002)(5660300001)(86362001)(2361001)(66066001)(2351001)(16586007)(44832011)(486006)(316002)(50226002)(2616005)(476003)(956004)(106356001)(47776003)(105586002)(68736007)(53936002)(478600001)(4326008)(6486002)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR04MB1450; H:b29397-desktop.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR04MB1450; 23:4YRXAPo5r2lTRn1HdvoLMTWj69fBmCnvpNzxnAR2N?= =?us-ascii?Q?ytW+8Ftqypmw0WOgPUXzo8LfhdyIY9/LUcA6dlgx5DmnxPz9MhsOmp+B/1Lq?= =?us-ascii?Q?t5TDRdGHK0VpuSgoEP5TpbN6pqBdBEZk/BUWhq544E3aF3EOAXEAnzPH+xUQ?= =?us-ascii?Q?Q1Y0pXq4o058rLzxGNW2zQz+7W7bgYovu8ir2u/3O6iI7cAAi6oqIO+GQutd?= =?us-ascii?Q?FMjhR04nywJVtwBjdCe9bvF4Ozl6Yu7XFVoq1bk6darJ/QsHB/VI9RWs6UPd?= =?us-ascii?Q?e0quayg5depD8Yha9nIH6gClIe5Be6i3wGCPCs2vs4IBLrNCCQFFgax5QsKh?= =?us-ascii?Q?x5Bn8XIEpcho2BI/5VJDckgBLjlQlhKREiqRC388qfiTJO3svIRLg1aJswRy?= =?us-ascii?Q?kq0ThdGS1WiWDVYsFUYCH0AsaeiJ45d4zBQJpTXLzMNcCTNExacGebks50S5?= =?us-ascii?Q?WDSX4B7K9e0SHUGe0IM7mJzhCpqgpvvRjf7lGt62cJpOULHw9i7gQ9HsZJPY?= =?us-ascii?Q?uMbvcC5gu0pOwT8plAIXIr0t68X1BHE/2Vi8mRrD8Jvwg0WNBG3XFIr3MCkJ?= =?us-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X1g8GeshYYv5Or5qxNZ5r18bCli/wYFdvitMnrXzh7AZ1mQcZWJPNFrFiCVWsgLUTjIR38jcQuG8TUqXe0x1b3NsrZ667rxk+76u8l3MfNND/zYyO22A5VnUFCyxYDv3+ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2018 06:44:01.3753 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 84cf9c6e-1b4c-42a5-8701-08d5ec79d9b2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1450 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The TPL support is used to identify targeted devices during EH2.0 and EH3.0 certification test, the user can add "tpl-support" at dts to enable this feature. Signed-off-by: Peter Chen --- drivers/usb/host/xhci-plat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index c1b22fc64e38..270976cf4156 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -18,6 +18,7 @@ #include #include #include +#include #include "xhci.h" #include "xhci-plat.h" @@ -299,6 +300,8 @@ static int xhci_plat_probe(struct platform_device *pdev) hcd->skip_phy_initialization = 1; } + hcd->tpl_support = of_usb_host_tpl_support(sysdev->of_node); + xhci->shared_hcd->tpl_support = hcd->tpl_support; ret = usb_add_hcd(hcd, irq, IRQF_SHARED); if (ret) goto disable_usb_phy;