Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3644998imw; Mon, 18 Jul 2022 11:51:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tItsxavV7LpgWdpKuMUxsGaKvpZ3eHh1RAEN6EkLRyVVa7BG8L1/567O/ZRjoeyd7VIqpd X-Received: by 2002:a17:90b:1b0a:b0:1f0:4bb1:2928 with SMTP id nu10-20020a17090b1b0a00b001f04bb12928mr39531824pjb.14.1658170287847; Mon, 18 Jul 2022 11:51:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658170287; cv=none; d=google.com; s=arc-20160816; b=EPIyaeG2aDHIS1e/bBzAzCCG1sRjqJhRK8BeXFfxypgft/Q8I4KVQhYJjHLu11Vg0x yerP9AeqkKjcx4gqXVBs8MjE8XnDoXq8dHxh0BKaEHuRHs/opGwvqzVGQAIjqS/zyJ5H G4ZtUznkj3lRo3CpgmZ3u2owDGQ6bqZl09HBuyFMpJ6CwJKzapiu2I9wJiliaMuN0aM6 XGafQEXRvvfUEBLdZVrPa9qztChcZ/ztv4/f0owk/1e6dPc0uXBKWjYQhGLy4KHWn8cW 4Rj4PSbRlrVvwI/ciZEzDM+R6motGwN6NOjzmdnt7/HdQuUD1kwKYOOs3y2PMeCL5uJk +MCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=OmK4oE+EDcaT6+pJBQN6zgLrXSm8Dpv7mF+edd9W/3s=; b=VpByh0rWXHiwyuvCm/wzX9BZ0pbkxRUJbVdoRunKBBpJBgre38pPSo9D65qn6b0Aj7 7xBI0jBCctYmqOZDLOG3zu8oK2SGgOVwjKN6N167RBEO6GVlR8xHufR3HpBBUomXZlZ6 iBhGr4HHY8Vq02071ukW9SpobL2C9o8YKAh9ebR/5N0J5ef4epismuhpdGCE5swOQ/hW lK8qt8sJGYrckXAKDs3W+TmybfhWlFyrg+L7gdJ4kZOb44wH7u94y4brvUDWAcABzmYm KB5TFAHeuq9m+fWGrddh2N7c9OPIXRvbddcWO4rCgYeCTdCWbRL3swDiYqV/ZZ07/QFh wakA== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a63470c000000b00412a01de724si17118047pga.343.2022.07.18.11.51.13; Mon, 18 Jul 2022 11:51:27 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235909AbiGRSTW (ORCPT + 99 others); Mon, 18 Jul 2022 14:19:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229639AbiGRSTU (ORCPT ); Mon, 18 Jul 2022 14:19:20 -0400 Received: from maillog.nuvoton.com (maillog.nuvoton.com [202.39.227.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6586A5FBF; Mon, 18 Jul 2022 11:19:18 -0700 (PDT) Received: from NTHCCAS01.nuvoton.com (NTHCCAS01.nuvoton.com [10.1.8.28]) by maillog.nuvoton.com (Postfix) with ESMTP id 3AD2D1C80FCD; Tue, 19 Jul 2022 02:19:17 +0800 (CST) Received: from NTHCML01A.nuvoton.com (10.1.8.177) by NTHCCAS01.nuvoton.com (10.1.8.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Tue, 19 Jul 2022 02:19:17 +0800 Received: from NTHCCAS04.nuvoton.com (10.1.8.29) by NTHCML01A.nuvoton.com (10.1.8.177) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Tue, 19 Jul 2022 02:19:16 +0800 Received: from taln60.nuvoton.co.il (10.191.1.180) by NTHCCAS04.nuvoton.com (10.1.12.25) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 19 Jul 2022 02:19:16 +0800 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id C948663A20; Mon, 18 Jul 2022 21:19:15 +0300 (IDT) From: Tomer Maimon To: , , , , , , , , , , , , , , CC: , , , , Tomer Maimon Subject: [PATCH v2 1/3] usb: host: npcm7xx: remove USB EHCI host reset sequence Date: Mon, 18 Jul 2022 21:18:40 +0300 Message-ID: <20220718181842.61040-2-tmaimon77@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220718181842.61040-1-tmaimon77@gmail.com> References: <20220718181842.61040-1-tmaimon77@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,NML_ADSP_CUSTOM_MED,SPF_HELO_NONE, SPF_PASS 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 Remove USB EHCI host controller reset sequence from NPCM7XX USB EHCI host probe function because it is done in the NPCM reset driver. Signed-off-by: Tomer Maimon Acked-by: Alan Stern --- drivers/usb/host/ehci-npcm7xx.c | 50 --------------------------------- 1 file changed, 50 deletions(-) diff --git a/drivers/usb/host/ehci-npcm7xx.c b/drivers/usb/host/ehci-npcm7xx.c index 6b5a7a873e01..1d2e2c3c0bf0 100644 --- a/drivers/usb/host/ehci-npcm7xx.c +++ b/drivers/usb/host/ehci-npcm7xx.c @@ -22,19 +22,9 @@ #include "ehci.h" -#include -#include - #define DRIVER_DESC "EHCI npcm7xx driver" static const char hcd_name[] = "npcm7xx-ehci"; - -#define USB2PHYCTL_OFFSET 0x144 - -#define IPSRST2_OFFSET 0x24 -#define IPSRST3_OFFSET 0x34 - - static struct hc_driver __read_mostly ehci_npcm7xx_hc_driver; static int __maybe_unused ehci_npcm7xx_drv_suspend(struct device *dev) @@ -60,52 +50,12 @@ static int npcm7xx_ehci_hcd_drv_probe(struct platform_device *pdev) { struct usb_hcd *hcd; struct resource *res; - struct regmap *gcr_regmap; - struct regmap *rst_regmap; const struct hc_driver *driver = &ehci_npcm7xx_hc_driver; int irq; int retval; dev_dbg(&pdev->dev, "initializing npcm7xx ehci USB Controller\n"); - gcr_regmap = syscon_regmap_lookup_by_compatible("nuvoton,npcm750-gcr"); - if (IS_ERR(gcr_regmap)) { - dev_err(&pdev->dev, "%s: failed to find nuvoton,npcm750-gcr\n", - __func__); - return PTR_ERR(gcr_regmap); - } - - rst_regmap = syscon_regmap_lookup_by_compatible("nuvoton,npcm750-rst"); - if (IS_ERR(rst_regmap)) { - dev_err(&pdev->dev, "%s: failed to find nuvoton,npcm750-rst\n", - __func__); - return PTR_ERR(rst_regmap); - } - - /********* phy init ******/ - // reset usb host - regmap_update_bits(rst_regmap, IPSRST2_OFFSET, - (0x1 << 26), (0x1 << 26)); - regmap_update_bits(rst_regmap, IPSRST3_OFFSET, - (0x1 << 25), (0x1 << 25)); - regmap_update_bits(gcr_regmap, USB2PHYCTL_OFFSET, - (0x1 << 28), 0); - - udelay(1); - - // enable phy - regmap_update_bits(rst_regmap, IPSRST3_OFFSET, - (0x1 << 25), 0); - - udelay(50); // enable phy - - regmap_update_bits(gcr_regmap, USB2PHYCTL_OFFSET, - (0x1 << 28), (0x1 << 28)); - - // enable host - regmap_update_bits(rst_regmap, IPSRST2_OFFSET, - (0x1 << 26), 0); - if (usb_disabled()) return -ENODEV; -- 2.33.0