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=-17.2 required=3.0 tests=BAYES_00,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_SANE_1 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 450DBC4338F for ; Thu, 5 Aug 2021 23:44:41 +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 61C1C610FF for ; Thu, 5 Aug 2021 23:44:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 61C1C610FF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com 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 978EE82BD7; Fri, 6 Aug 2021 01:44:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.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=konsulko.com header.i=@konsulko.com header.b="j7oFTqiK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4529682BD7; Fri, 6 Aug 2021 01:44:35 +0200 (CEST) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (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 F2E1982BD7 for ; Fri, 6 Aug 2021 01:44:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x735.google.com with SMTP id o13so8106687qkk.9 for ; Thu, 05 Aug 2021 16:44:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8nfiBXX2i1XAmtb0pcGYoBAipWisvgWqzNNk1K6Rml4=; b=j7oFTqiK+EHMKsGLMmCmQK/r7hzYQnHvBx0o3YSwgGMTmCytB6n8wx7HPnz0gsiCVn wfDS+LpivqqhThrVAPHENzRYz1ZLddGLmTYNdyRlQV7l+kfcTY9HAHybw91oROXyANIm fAoMIFuOa+QFST7z76Qd5hA9iG9V4jBM0LFfs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=8nfiBXX2i1XAmtb0pcGYoBAipWisvgWqzNNk1K6Rml4=; b=FKwNYTBP499wYfJ0P0ZqXtMzvl4V92mV/MqMMDK3too2W1m05ePM6a28tprWnMcgrf bh2jMBkJGxNNIE7qhCqQPrKC+ECBQJSdwLHpD8TrNv3TmPAzkprOuV4F1Y/NAYwlssIY +MmaqP7xwWxTy0HmxtUCTtqg9Kc6bOvQ+O3+tXjDmXGqi89Ts7U3WN9Wmz2Jcq7fGQ0r chaIA+FOKcSVA/0B5ELk3pR3JwUhshQyQ2lzXcuYT1qqMao92qT7zebP9DaHyyqzZWPS DtH9kaheHUKINxYFEJPDED/L+8I2IY1T0/BN4gzy4v8nAg3iTck5+wvmN6pYHz337xby G1oA== X-Gm-Message-State: AOAM532jUwOalvZDR3H3WAvWtCViEzx4CWbvIaC4zUT1gDgW2K5JiCB/ KWmvCYsYDXgmqYhsOunPShn16g== X-Google-Smtp-Source: ABdhPJwQrIObx8/tfIJ1CygIBcegTKNIBoB6WmOH3Bf4v04MUnikMAbricDo8MVs/LKlmXl0VRiM9A== X-Received: by 2002:a37:808:: with SMTP id 8mr7542184qki.53.1628207070699; Thu, 05 Aug 2021 16:44:30 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-91f5-8795-37c3-31a0.res6.spectrum.com. [2603:6081:7b01:cbda:91f5:8795:37c3:31a0]) by smtp.gmail.com with ESMTPSA id g22sm737507qka.47.2021.08.05.16.44.29 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Aug 2021 16:44:30 -0700 (PDT) Date: Thu, 5 Aug 2021 19:44:28 -0400 From: Tom Rini To: Simon Glass Cc: U-Boot Mailing List , Marek Vasut Subject: Re: [PATCH v2 13/32] pci: usb: Drop DM_PCI from ohci Message-ID: <20210805234428.GA31795@bill-the-cat> References: <20210802005446.2267075-1-sjg@chromium.org> <20210802005446.2267075-14-sjg@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline In-Reply-To: <20210802005446.2267075-14-sjg@chromium.org> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) 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 --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 01, 2021 at 06:54:26PM -0600, Simon Glass wrote: > Now that DM_PCI is always enabled we don't need to check it. Drop this > old condition and update the comment. >=20 > Signed-off-by: Simon Glass > --- >=20 > (no changes since v1) >=20 > drivers/usb/host/ohci-hcd.c | 15 +++++---------- > 1 file changed, 5 insertions(+), 10 deletions(-) >=20 > 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 > =20 > -#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 =3D OHCI_INTR_RHSC | OHCI_INTR_UE | OHCI_INTR_WDH | OHCI_INTR_SO; > ohci_writel(mask, &ohci->regs->intrenable); > =20 > -#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 */ > =20 > /* connect the virtual root hub */ > ohci->rh.devnum =3D 0; This is slightly wrong. We have non-PCI OHCI users, so the check needs to change from CONFIG_DM_PCI to CONFIG_PCI. I'll fix this up. --=20 Tom --ZPt4rx8FFjLCG7dd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmEMd9IACgkQFHw5/5Y0 tyyd8wwAuNpdR5gx3S7RKV6mCRjVd8haq6+MpwWeP4HtkCNci5GEbOIgy9xn6xlR N8wtyvQWaZPTdLFXZ6rKzaLqU91GzQN+/jYK+Un76/c3C5rIN1oE2XEEi86wERBn nN9pKqYN6+d+rDCjtJjSZ3vUcd9EOEpzjP6DyV6w9MbAAekT0uZRqtSfPhFbR5GP BEZIsnC2W8i/Frb8sZSvdlkUAvOUEhmDFcK+ar4y7OFzpNlmrAHSEz3MxKr45H9g RDGKylLwXeLrXrGKW4iqZp719mb25bIKvKKXIfQfphCZKA89d/007nCW/1xEsz7i TUPYcdZ6C8YNrpMYJska6I8t1eiB504WChg7mVz9WHn1E33phkDPIriDNHA3Vb8K T82q06VYQjcXfoSZT7g9m5/yj/RlgrA2uQr1VHIAmS4rBencpDFENkCOnxmShZWb CuSyWqU1T0cpmixj+x/1ii3NOxbAZcSrk3gIC0Oevkn3HS+9Sxyr4ai5tJ8r665O EDCrij3E =dRvk -----END PGP SIGNATURE----- --ZPt4rx8FFjLCG7dd--