Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0EEFC4338F for ; Mon, 2 Aug 2021 00:57:12 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1FEF5610A2 for ; Mon, 2 Aug 2021 00:57:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1FEF5610A2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4E92583334; Mon, 2 Aug 2021 02:56:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="b+dLNDiH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 07330833A2; Mon, 2 Aug 2021 02:56:30 +0200 (CEST) Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 09ED083335 for ; Mon, 2 Aug 2021 02:55:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oi1-x22e.google.com with SMTP id x15so22157686oic.9 for ; Sun, 01 Aug 2021 17:55:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1CHomcRUt1tE0TyQg70lKBa1tLTLL4kNS4ZT2yQT7s8=; b=b+dLNDiHPK3p19N7NmFifogGWs8hgpT24QPZJLKBtLI4/TUTqwdIAyjybYva50GlPt dDq0V+Bo2aMeu5ln3VbIWa4rvHvweqt14psoGLk5D40jglayDkRQHMTf1vgWZeGoI+2w zRu33YQmYbUFm591to5Y5rTG7zc0SzXDU1+lc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1CHomcRUt1tE0TyQg70lKBa1tLTLL4kNS4ZT2yQT7s8=; b=WKn6xruu+RCrJrf4qsL7dumCTSxbBLOT5x04IDHjBNpFljQODN+FpUAcC30uec5Rjo BinRX3shsHkWyJBe//7382VmIA/Nz4Yg/kgHGqs6QRHEA+PdhsTRZLFawpRf5hffz3RH aCMF4HjWT4S0m1ENxbSVrvM/kUpYHbNb9MNCIyg1bxaeTb2tGRsRcoEDs4Lrf1ZdRLEK C9YJMU20Cn5dyxoEGkXCx+2Gq1BhLJPNgfgLeuZM5Tg4155/B4M7/8huid2f2kKsWuRG w9V3fFjWMOd9M7ncibAnSWc9uEqvxAt0C5UTvzwdDuWYlMzlgWXlTRT85W2n5hqkHxed yJ9w== X-Gm-Message-State: AOAM530N3MuHMxoLKmu5xRDyLzg0p8qlw6HWIIUS51hmsRKZSPj2J4xf zxkWkWoC7Fezf7/erb3qIA6+IKdpBGSk0QOF X-Google-Smtp-Source: ABdhPJxi5lA5l29FhShtd9csPsBf2Pkev8YjvZloylX1R3FXLbTsffVtD2as6+Acgg1n7JykJttr0Q== X-Received: by 2002:aca:b185:: with SMTP id a127mr5486086oif.150.1627865701363; Sun, 01 Aug 2021 17:55:01 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id s2sm1452616ooc.15.2021.08.01.17.55.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Aug 2021 17:55:01 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Marek Vasut Subject: [PATCH v2 13/32] pci: usb: Drop DM_PCI from ohci Date: Sun, 1 Aug 2021 18:54:26 -0600 Message-Id: <20210802005446.2267075-14-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.554.ge1b32706d8-goog In-Reply-To: <20210802005446.2267075-1-sjg@chromium.org> References: <20210802005446.2267075-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Now that DM_PCI is always enabled we don't need to check it. Drop this old condition and update the comment. Signed-off-by: Simon Glass --- (no changes since v1) drivers/usb/host/ohci-hcd.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index c62d8feecce..7fa84f8bbe4 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c @@ -52,13 +52,6 @@ #include /* needed for AT91_USB_HOST_BASE */ #endif -#if defined(CONFIG_CPU_ARM920T) || \ - defined(CONFIG_PCI_OHCI) || \ - defined(CONFIG_DM_PCI) || \ - defined(CONFIG_SYS_OHCI_USE_NPS) -# define OHCI_USE_NPS /* force NoPowerSwitching mode */ -#endif - #undef OHCI_VERBOSE_DEBUG /* not always helpful */ #undef DEBUG #undef SHOW_INFO @@ -1885,12 +1878,14 @@ static int hc_start(ohci_t *ohci) mask = OHCI_INTR_RHSC | OHCI_INTR_UE | OHCI_INTR_WDH | OHCI_INTR_SO; ohci_writel(mask, &ohci->regs->intrenable); -#ifdef OHCI_USE_NPS - /* required for AMD-756 and some Mac platforms */ + /* + * required for AMD-756 and some Mac platforms + * Note: this is always enabled at present, since driver model is used + * for PCI + */ ohci_writel((roothub_a(ohci) | RH_A_NPS) & ~RH_A_PSM, &ohci->regs->roothub.a); ohci_writel(RH_HS_LPSC, &ohci->regs->roothub.status); -#endif /* OHCI_USE_NPS */ /* connect the virtual root hub */ ohci->rh.devnum = 0; -- 2.32.0.554.ge1b32706d8-goog