From patchwork Thu Oct 27 13:31:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Lin X-Patchwork-Id: 781 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp234852wru; Thu, 27 Oct 2022 06:35:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4T7imDq0KOk7aeYMXxKj4b+OytBKZz8UBYh7m+AjkM3vjNtqImyg3CUMv35t4ELQqIOdHZ X-Received: by 2002:a17:906:4791:b0:7ac:98e7:eda7 with SMTP id cw17-20020a170906479100b007ac98e7eda7mr11910257ejc.321.1666877745099; Thu, 27 Oct 2022 06:35:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666877745; cv=pass; d=google.com; s=arc-20160816; b=AKJERFTFhw17KtunS11JElWUsu5kYFDNV2uoZqDUO6JX993wKYVxInqLW+BFn3WcRf 44XEaR4I8ZOPeiOEzMuSfmYGLnABYqKNasoNE3QqT17OfdZynA1mceuRZJJz8hbUGH0f NGv2mSn0vxVlPDNXto6D84V5K6oOFZHMT7ttN8piCP20I9rPkLktMyw9F0uk1r3S8hMx g+tp35keW+qbEjm7tuJMpOAwoLVJNVDHgl5FIn7/RJky2kIitM6FkifJ37YO324974qW e8y7oK/qYCuuk8eA0CbXyqCNXHtFusqDt2STm5ZLDgOZxCRl+1NWHySUvGE5L2XTgezR LyPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=lEMLmt9wZREjBPasPROXB3BcgO7k8QQfWl5bEXjXsuQ=; b=kmbH/fQ9ZZu35VG+PwQoLrJv1pGFCsAkjUIIvtbOLa5xoeWQriL0238Xe0JtIm+HPP eVBlQXHhTVspy4SQ7GqcteL+1UP4XehZOh79n371WLjBHszkvSfmCsrioC2kEVbd6Xj1 OzCi/b4VmD/ez/VvVIzT7J1WYGnI10TQHvQNw0GbVuEMh6OpYk/q2KxR/7KFsnqZIE38 YrcjG61/W0YaqbWIBdzkYHDqzu9ZgskG8dEZ9yPkSRR2OehmjE6qnZTrZjeIWLJC0hl3 k1R3kAV/9g5pOWBOO5UfF5SJJdEGdYx1TWCFDhlk4v2gG3BJEOnY8Kig8QWA53PmDkiA zBvQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=CilHXIjl; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y15-20020a056402440f00b00458614e20fbsi1872104eda.491.2022.10.27.06.35.20; Thu, 27 Oct 2022 06:35:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=CilHXIjl; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236130AbiJ0NcC (ORCPT + 99 others); Thu, 27 Oct 2022 09:32:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236127AbiJ0Nb6 (ORCPT ); Thu, 27 Oct 2022 09:31:58 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2045.outbound.protection.outlook.com [40.107.243.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16D0D18058F; Thu, 27 Oct 2022 06:31:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OMEU8CvVajvgAgmgw0ZNPpPUbSvqFiEJZPuF99AHy35CytDWc8Q/GA2luSmGaMOGRUqtQcB97NR5CClvHZ6zKr0sLj8Q4lsfNXfO6oX6gyVFpWlzMAkKpSzhFJLfsUEpW1DW90rmcCaq/uRdZAXzhSDa6IC4WwugmO00KzMYDPWA9tJcO1QSo/Y9REtZXkSGx+JhYQmk7TtIxN6LJhkyNx61F7fZ4LiMPXeHExEVcSm/3hzmTlsTC+nLcQUl9tBZ5cPFXXXdPl6o8ntR4Ot/K3EkzGd7iYOjU29Das3Sa28rbAm6APk2v8ZgfH/ZTnQ5siBcHpwt1DPKUm3aklfp3A== 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=lEMLmt9wZREjBPasPROXB3BcgO7k8QQfWl5bEXjXsuQ=; b=E4hVqXKa5beuATvDKUH4zK4K7yrPvmpVhatd0QMcNOsof3pMLTJxgGEabrC9QYQZfDcTkdHCfdNKOmsQcG2x81UusCAuhc8jvagI1KbGFr/U1rmz8MtELQeCIpl+j3sRxG1l8ayuhcQ+2vUn0USa92YdbieZivO5shS2JeZxYn6YFEPAgOg+6+VgquhsNOJn59hE0UWwFksVoB1ubHl+SgtZWajc3rDPBEM1OqHyyzG6Cqq6teWH6pAxFOGUHtWe0vh+A2BJxa4GRusDeXcHNtEU9hb5So/tfUACdr8X2G98EJgE2Hyv3SWWDEYWCvAIJETGZkWE9fjMLr5hXfKg/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lEMLmt9wZREjBPasPROXB3BcgO7k8QQfWl5bEXjXsuQ=; b=CilHXIjlU7HeO+Mj5ObvfVvpw5cgZpb65mqBihDw41qThoeGCoKLfkNgG4wB5aDQn+B4EGWf/+aHWNTnIsm1ln2JOLTQBDrODClS9Uqf6L7bNEz9T2JvVyCO12U/yonQtolOx1Gc7vipSsELgXmveFZgMk7IeCSQNvmH19mcJWS0g3QZ5vwytkV3ZhJtxm2BV9EMJHbu3Apso8uv/9fmYdzSXmPoCX0Job997eO6PJQP3cYcgZhHsX+y+g6CjdlyuJuSEq/xRkNclmRFnif/RoJx2auWAEiff5zAZWZdd+Tp5G3nHSiYrfcEx7d1SD+7fenfYCrtjLSVqdgfvpnhTQ== Received: from DM6PR02CA0048.namprd02.prod.outlook.com (2603:10b6:5:177::25) by MN2PR12MB4079.namprd12.prod.outlook.com (2603:10b6:208:1d5::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28; Thu, 27 Oct 2022 13:31:52 +0000 Received: from DM6NAM11FT027.eop-nam11.prod.protection.outlook.com (2603:10b6:5:177:cafe::d3) by DM6PR02CA0048.outlook.office365.com (2603:10b6:5:177::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.15 via Frontend Transport; Thu, 27 Oct 2022 13:31:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DM6NAM11FT027.mail.protection.outlook.com (10.13.172.205) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.14 via Frontend Transport; Thu, 27 Oct 2022 13:31:51 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.26; Thu, 27 Oct 2022 06:31:40 -0700 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Thu, 27 Oct 2022 06:31:39 -0700 Received: from jilin-desktop.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.29 via Frontend Transport; Thu, 27 Oct 2022 06:31:38 -0700 From: Jim Lin To: , , , CC: , , , Subject: [PATCH v5 0/3] xhci: tegra: USB2 pad power controls Date: Thu, 27 Oct 2022 21:31:24 +0800 Message-ID: <20221027133127.27592-1-jilin@nvidia.com> X-Mailer: git-send-email 2.17.1 X-NVConfidentiality: public MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT027:EE_|MN2PR12MB4079:EE_ X-MS-Office365-Filtering-Correlation-Id: d7c3b717-31a3-4fa7-9373-08dab81f9b2e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lO+sna69cAazOqB1pILupvIxwiTmOUQ/6fXAll08wP5sDqq7Ues2/SBzLsDymMPZ31MGbTNsocROzWLLRqmx58tLjyVt2A9qnQ0C6K4oRut0RUk+g+0M/fxP01QAdORJVs7rVu5GeslJkaeUERir2SmlTxUEngGm8cgOip1zP+lNNDkWIpZPXlwCVlrSiptU3/83yR0Zhc3NmPD/MzbStlbHG/edz9K9Y5v08oMXr8J0eDGbspKTDWCUpsX7MN3a0pG9IkjE5gKJNBFGzQpvxvsb3O8SWqq0Cx+d5JogJM/TYtXzGrvVyZ7YRG8U6PL7qS8VwcVUwIhJeFg39K5E5x3b5bc6TG7Ws2eXd3NyCaiU8V43WiqGNlq5uqzumRi+CCcB/SqnvWASkaS/lZVyxt6x/C1lKaZYwMeTBj8d7nDnMxwURhxfoGThE5QQh8Eh2T/Ybn2gHSgqiiWxBzyCjoQSvVDUYhpBtUzdh1D/RItUUMyfY3eQ+GoupexML1B9xU/n1l8JNJ6eYO/PuzL4bTmEagjInl3VKfR6KU8MqXWZkhHGQLNe5UBS0xualwHsAMt/adV6hOKCTEdJj+NzDOGylRnOhVuVwSh88jWC7IGFBism9Yl7TIBvwB2YT90FP+xsNVQIapid3kt3KEvBJPooP5lWHso3VtNQrXE0v4NLGLP2rBPTyj6VCAkaOmHjasB//7wMX6t+aHy9rJmy4jjhuznbj50L1ISxWi7T6tOa5B42xGdkGAlQhyUWwL2jYLcjdqaXY/KWe4Z3/Pvi7w== X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(136003)(39860400002)(376002)(396003)(346002)(451199015)(40470700004)(36840700001)(46966006)(40480700001)(478600001)(7696005)(54906003)(6636002)(110136005)(316002)(107886003)(36860700001)(70206006)(70586007)(6666004)(8676002)(4326008)(86362001)(1076003)(356005)(186003)(26005)(2616005)(36756003)(7636003)(2906002)(83380400001)(336012)(40460700003)(41300700001)(82740400003)(82310400005)(5660300002)(4744005)(426003)(47076005)(8936002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2022 13:31:51.1645 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d7c3b717-31a3-4fa7-9373-08dab81f9b2e X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT027.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4079 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747847998134347696?= X-GMAIL-MSGID: =?utf-8?q?1747847998134347696?= 1. Export symbol on xhci_hub_control 2. Add hub_control to xhci_driver_overrides 3. Program USB2 pad PD controls during port connect/disconnect, port suspend/resume, and test mode, to reduce power consumption on disconnect or suspend. Jim Lin (3): xhci: hub: export symbol on xhci_hub_control xhci: Add hub_control to xhci_driver_overrides xhci: tegra: USB2 pad power controls drivers/usb/host/xhci-hub.c | 1 + drivers/usb/host/xhci-tegra.c | 131 +++++++++++++++++++++++++++++++++- drivers/usb/host/xhci.c | 2 + drivers/usb/host/xhci.h | 2 + 4 files changed, 135 insertions(+), 1 deletion(-)