Message ID | 20200916125705.4341-9-peng.fan@nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp414774ilg; Wed, 16 Sep 2020 05:33:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrCuxMo3Ur99dEXfqDKJ3JhWBx1KQc5MQJkNZxStOsvo6/wQegMojIGvlflkBPSF+usDBf X-Received: by 2002:a17:906:249b:: with SMTP id e27mr24916685ejb.105.1600259591088; Wed, 16 Sep 2020 05:33:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600259591; cv=pass; d=google.com; s=arc-20160816; b=wnDUMLAWfvpxT1rjk5TPqrwYDt6IvlOzrFa4QETDM/M9PYYjujl6WjLoD37HLrR6TO TBc702etdfJ707qwdHjrGoWHvfGduqJYDQVsfqSKlzIq+0RuSED3PWLI7R8FpzlQ2KRb w/Kk+578jQI2Yh/OvCHA/sEoSA0DueWfA5t5orEGPM/s6r5rJF1kp2XGiTjaDuRTDL3u v4xEUmwZ4Rd10zLmXCnurmW0iws4yspQvvFImxd81F/g2t/6Fei9BtJuE1B6T03Goyi6 0YloMbs8kG4Y179mmpNbsZwjpyi5VYkDmPI83MNBpIolYtpVQwHDoTOZH9J4TBlj8KyU UGjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=H7u1Qh1VaRmzbuNmgxi9MRNyNdvJBP7NmzF+k2MrypA=; b=BcIDYIuSNbgfhksuZVpODYv+rshPNLVn4GL1qgUfShQFf8yFMpR1kccxvJsVU0qsHv UrliuWp22rSTPOISqDs1tO3AQwkRUqPuLcNknEvnm2YXiF7dbNcmtpbyTconZ9y7Mice GzvwgnR+DEqQ7QTuv3mTDgoLj8vm/Wy1uRn14v93Vn43jpVQB/O25Vg4fAVLZ7TUM2UU AAzCGxgVv61lqgr75m6c+ljeN0rGJBKSEJ7QDW7pcpAUJobZt2+rUCAUX9WVPXC42t3R o+O3x/hCx7DelgOXuacWiiz+bahDEPQ2FpCTDWlYFeIXlGUIq1VhfwtMrfdo1LbRuLRL +02A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ikLbIDLN; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id gl17si11243703ejb.311.2020.09.16.05.33.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 05:33:11 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ikLbIDLN; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C5C7F82369; Wed, 16 Sep 2020 14:31:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="ikLbIDLN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 638E382354; Wed, 16 Sep 2020 14:31:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on061b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe02::61b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2D8A582339 for <u-boot@lists.denx.de>; Wed, 16 Sep 2020 14:31:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LIlw9DWM3CyRBeYGGMcde0xhpdwhJGsiI/IKSaIEtSeVVwojMf9jitX80WDV0S0STAv9OjomNttifL6k+J6OBoJlCAeAKDBTR+d2RB74+4vD0FgNsTaoCDPWW0fR5mLgZtV8LKy40UFojGeMqQZgSYr/c2iNEi0uhv2hjA/hE1FBjBrbgGldodO+2q6jymwjzZKkxIZO0pUWZg76OYJuqLyU6ZT7hdR+IwsFaDJtHGG8A1v3hiMTUIUfJtCpiRr3AsSFBuUDBJXFDkBeJHq4jO73VEJa6lThbKqQMZW8mhw2xeLIjmXaNUABgoB17cAJlIyXTcavMYr9taCr1p9SCA== 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-SenderADCheck; bh=H7u1Qh1VaRmzbuNmgxi9MRNyNdvJBP7NmzF+k2MrypA=; b=DfPzIdXT8BRqMp5J3OSSnPe0GxBeIw8dYh2UWBm/rJZwe7s9SA07zX4jBRzRwAS5uQaK3sTrNZa+lxQ50y6A7zXJrQB6nJNpaCCOVNtsibbhRt6E63OZ3GeOLjVUxInsRy1OTVlVpWmSATVhPDbmlE4ZsfVDH9ZS6jI6uWmHj7WQO0XjpD6vdWN2ebs4YQ5vANT2mzIDkMT+XqJowJFNNuFt+1lWyMdbPOm1OQTLE7AcKX5tfwYk4tTDjMMmVD/c6tKZgKrW28/K1fXC634YygeEnyRoPOCGvVffng5bO3nUHYk5WlrLepqFeHN+sKL8IOWF1sZfuwScXZIBg+s5cg== 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=H7u1Qh1VaRmzbuNmgxi9MRNyNdvJBP7NmzF+k2MrypA=; b=ikLbIDLNlfdadN8k+xVZ2ugfuLWQcPbaRn2hdoPAL92tKTfSAnh5LrEU6HSSiydsON4lyLmSMarRzSpD3k5s48eKSN6nyPvNxN5NIxxJyYd9xNVy++zAtySxSOZcdjFGfgqyyO0sUgAhSNPo1S3Ju708nwQAFkKQNeK/Lc2icoI= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none;denx.de; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB3PR0402MB3915.eurprd04.prod.outlook.com (2603:10a6:8:e::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.17; Wed, 16 Sep 2020 12:31:26 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413%10]) with mapi id 15.20.3370.019; Wed, 16 Sep 2020 12:31:26 +0000 From: peng.fan@nxp.com To: sbabic@denx.de, marex@denx.de Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, Peng Fan <peng.fan@nxp.com>, Li Jun <jun.li@nxp.com>, Ye Li <ye.li@nxp.com> Subject: [PATCH 08/13] usb: ehci-mx6: configure usb out of suspend state Date: Wed, 16 Sep 2020 20:57:00 +0800 Message-Id: <20200916125705.4341-9-peng.fan@nxp.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200916125705.4341-1-peng.fan@nxp.com> References: <20200916125705.4341-1-peng.fan@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SGBP274CA0023.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::35) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SGBP274CA0023.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.13 via Frontend Transport; Wed, 16 Sep 2020 12:31:23 +0000 X-Mailer: git-send-email 2.28.0 X-Originating-IP: [119.31.174.71] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: ff3fab70-96e0-453b-2c59-08d85a3c6db3 X-MS-TrafficTypeDiagnostic: DB3PR0402MB3915: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DB3PR0402MB39155E3B0F626354F988794688210@DB3PR0402MB3915.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DM58J7z/b2W53Gns9kBol5VaYUvzQLR3C9LsdqJ274aPmCGVm0JBGEm8haCJpO3kRsqw5lsdviRV6Rtke51JSVxwfsneoVzVEIhMVA/YKd0oix3wFU2fX336OUE24EtT8WP6uRn0sc0It1qq4hU3fJnAh53WNz9Z3ZGFmtYYWUn+X+x/ZevEXSkbXV7N63RmJVp3MPY0S5RN1mrrwPd03Kq1KRQXbgeU2bXdFgrY3b3Qf53hnvbOGmdSROGohiijp1nbZ3XoEJfCSGp1drhOZv9SbIEmANTLh5OiJZh73v4noR9tNqCYBIAdKnRMQ4hZFrdBmhRFKoyGC/ZApR8RGw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(376002)(346002)(39860400002)(396003)(186003)(16526019)(6512007)(8936002)(54906003)(36756003)(6486002)(2906002)(1076003)(6506007)(478600001)(2616005)(956004)(5660300002)(6666004)(83380400001)(52116002)(316002)(15650500001)(86362001)(4326008)(26005)(66476007)(8676002)(9686003)(66946007)(66556008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: v5K3M/NXXCI1KiLYL1uhBunbr93lcjDPmcKiO5p9S9gQ0HHRdiwcPOT7HyCrZWbw2ntgMxA7NaYl3GyH3Z2IbhCmuIGhy1TpGunAwpwxN7u+ed+2LIOcrviEtibnzi9qy7ck1KzrrqO8zF0/1HMtHSPxhL9S92DolN9KTcwdus8IDmFaX5avxi5ifCQjYvVndSCuNFSvwb4r0Ozbq8qni7pi2dRDBuv+f1AVeutqCXIiNQ5zFtPoMBBXQ5MAjLBD08zBcMSuyGhfzLrdBPO45xXBAp1DlKY255C0hl7f4XbR40jviP9bZPXmtsIXNx2HG1Q/Nv42ra81F8T92TsVhsrtmw0YZVrxvE0obBHT7DP06YHTNCQ6l5tN2a4sUC6814wY+KQBeKjcKuchkHcOk2TXdSlS+dRRN6Lf6zkELPawsaDYATW3BCNzSqGEqSTVKTI7VWReY2sxTDxsYYbsPc7+/IOM5gqpIkwklWqNQYSG8CmnAFKsgWXgsVo9a55dbUaj25OrG26L4sEz4pOOZoQtXv4UmHI4bX3sR9o1SzbTZlzuK8pKqL0mRpcSQ7kSomzbNwgo50s/XOyXgWGhHZbdZNZ313hutBmV/1faO4U2DqadwLJRJyD8e00Fp5fASRj52qpfDchQhhdw1jighw== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ff3fab70-96e0-453b-2c59-08d85a3c6db3 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2020 12:31:26.1639 (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: 7XBCxZYr3UKZZCo4dikgtT14TuZSHraR0RA9qiR5UwQzZpnmLa2rKZ7N5B22VXT9KtUf2bkQuX1LjNJDkq4lhQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3915 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
ehci-mx6: update and fix
|
expand
|
diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index ca015ef2f3..de0b0c3156 100644 --- a/drivers/usb/host/ehci-mx6.c +++ b/drivers/usb/host/ehci-mx6.c @@ -414,10 +414,17 @@ int __weak board_ehci_power(int port, int on) int ehci_mx6_common_init(struct usb_ehci *ehci, int index) { int ret; + u32 portsc; enable_usboh3_clk(1); mdelay(1); + portsc = readl(&ehci->portsc); + if (portsc & PORT_PTS_PHCD) { + debug("suspended: portsc %x, enabled it.\n", portsc); + clrbits_le32(&ehci->portsc, PORT_PTS_PHCD); + } + /* Do board specific initialization */ ret = board_ehci_hcd_init(index); if (ret)