Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11EC0606A32D for ; Fri, 4 Dec 2026 09:05:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=ajU+4KD4; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=e17FvBbT Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id E0E5461B2D; Fri, 4 Dec 2026 09:05:38 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id rXRzSzJk0HDd; Fri, 4 Dec 2026 09:05:38 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org 3E7DF6179D Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796375138; b=HSn/cFaKgdaAUGgwg2r59UyIGH106xpGY8mqFMKmK12L95MpTqiE/54uWrgTjjWvF4uO PzIDybe6WiNmTmgrpnowmMMwUA9sHF8aAsZHEtTnDJZjYTYqczkPZ4hTYWQ0ttcA1y37V wGyix6HmmosfoExN56k/Fv22OHVY72t0WPTC4WGSh5Ef+qjoQE0VuUsFXkPBQLQ6+TsIe 6ay7sN1kxkm58YGobrW6kc3htX5Ecze8HKlQmSuvHKqliLPo/BrpYu2rkmtmvklFm/pDH gk3sYtGCfdZxUT6kUZmtH2EE2YTZgFMcsnwlddaTNiHH8OoDvyc/b93qd/ax+bUFEbQ== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796375138; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-BeenThere:X-Mailman-Version:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help: List-Subscribe:Errors-To; bh=lEgkMkfCCUh9J4IhNffroTlDsn+NmMMpNCJFvAGeas4=; b=AeMR5ahfBhA0lzIufNMC6NWjA/YD2vVzHznYwQH7Jqn0pImz/ZrD2bIEa0nkNbpVqjOy Rot9AOXyOb13sa+CDpalQmiVDoZpRhuSKKlhBs6p/nuKGyaHQIZ9eR56tNG+mKf5pcX1Q qlDQX3N65QTJjEPrC5Kg6l8oDVDtTyZGqqCqbdbKMl6EVDd+tr/UvQ1vBLX39E0uEaEpw /u2YHpGBV1ZbjTOU061HahGSepZRtKU+AcRoDfiZlpA177XVmC/PSvpT83V9Kk9KxgTt3 EsxPYQYaJfn4XzkQP0XJnbcgvi/O0nng8aPHT0ZmV8Xtr4FxWC9vHNdOY25a5KdOhQg== ARC-Authentication-Results: i=1; smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1796375138; bh=lEgkMkfCCUh9J4IhNffroTlDsn+NmMMpNCJFvAGeas4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ajU+4KD4Thij+9QH+Dk2GJyNCZ/GCCLLmCqpcVCPsAP+zvXTsk1FToncnkJtP/RsB UP4LHmSMQJGAeSNeX3nGFb62NbDvaqMvYAZ0a1g8pp9oFlZBUYXHLiAa+wQDLWzDKv 1UCyXD7eXkFyzT03eM87ZGrDPrZoISjy8cBG3dEV91e4kbI/qKuyqFHMVfA2wgj+eC ZCZwJ6CQmvDqeGU2v12CiSdWKYvNPIIBH6J0KmS6AzpLnxFFjiJAQGUU20E1lIXdHC EPBtpFtD7fCLePA982aQ+Qy7V/5PqEca7KPK+SFPeu24pNEY9RCMLqq8sx1r7mfLuM uK0w5mklNwxdw== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id 3E7DF6179D; Fri, 4 Dec 2026 09:05:38 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists1.osuosl.org (Postfix) with ESMTP id 5E4A32FF for ; Fri, 4 Dec 2026 09:05:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 506DD40D78 for ; Fri, 4 Dec 2026 09:05:27 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 0bfSsV3QPHha for ; Fri, 4 Dec 2026 09:05:26 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org 774A140D91 Authentication-Results: smtp4.osuosl.org; arc=none smtp.remote-ip="2a00:1450:4864:20::533" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::533; helo=mail-ed1-x533.google.com; envelope-from=mehmet.fide@gmail.com; receiver= Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=e17FvBbT Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by smtp4.osuosl.org (Postfix) with ESMTPS id 774A140D91 for ; Fri, 4 Dec 2026 09:05:25 +0000 (UTC) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-6bc48670261so2837364a12.1 for ; Fri, 04 Dec 2026 01:05:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796375124; x=1796979924; darn=lists.u-boot-project.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=lEgkMkfCCUh9J4IhNffroTlDsn+NmMMpNCJFvAGeas4=; b=e17FvBbTvHmHUeHZeQ5AOneuwLseA1K/sOBkYlFGAFuDZQ0VKLNjyVUbPFWpqQy+wg y/l8WwO7DapWcwMSzLAIm8xfHl8yIStPgn3LmGe5j5eL0JYK5pl5vCN8lDinzp+R6kkL 2Vj/7Hv6zlC7J4XQbyZdd2NzypKKLJAhZpbFNyZODO1FmUoeO01ItaKAf6jLIuhiKqC+ 17a4jRdMhB89uZBubecs/Jho+ZT/zZKeEnzLwLkprsARz6wKWt1Ixps+sxNB3IP6vU9j FcAdunS0Tv16q/8lKXxdbt6zzXY/UCCm4jyi48tvzMI8rBT2AoElJnIF/Psqi05ISW9u vgUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796375124; x=1796979924; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=lEgkMkfCCUh9J4IhNffroTlDsn+NmMMpNCJFvAGeas4=; b=atZNwUc+7ws52uRiQTXiuUXVptl62G+VPTK2IK1Ueuy/5PbuUZZULetzOEmmekY27c vHzf/kjMaBpqM3UZ880RRwxTkoolT11fIOYGI1CEmjgdxWjZDynaNMltBrZa/6bcNRqS n8cfPMLx94OA3j+TRpkrYiX37eDuprZULN2/nERwoGx5Jos5+cFZxfPq/OqBHJ2u9hNT HolqW5/WRoMLU98lBUm0IVEcx40b7s/b8dKC2EKL5T9+7SeNtfX2jd9sCf2yAlkgI/6E mytBtjY05bc5cAqP1B8PFVuQacbKg9VDzlHEfFAwyhwtpRqNWptUKtrUTOw3cFxJNrMO FppQ== X-Forwarded-Encrypted: i=1; AL+hErFnFHsx61xeOf6C9eYuBHqEH1RvcZf5PsaYKgKpOk6BSFxxjSjyWIX36ITWavr84OIjUmViwwU=@lists.u-boot-project.org X-Gm-Message-State: APuU4Z8tsJg3qsgVSRrNPXgq4GuIz71xVEPqq2Mk8C+400HgsKtf3HJ7 9vLOA0VQhJ7VsMNITqERYqpDtg0/M5D4V4+0G4E7oo6/kP5VsPtIWDhP X-Gm-Gg: AZFdTZeslK2O1jygHvOi9TfrV9TBW3ifZsRkyu4Hat67loqcjzH/2dgGMbD5Ag2nKWK LVwveTobp29NIzQRofi/P9RSQAtr/Z1wtSJ3H3mUpV8P2S77lnWKq7EhqoHS1Cp5fL0rBL/Biyx dSVC3aR9ShbtPcd4YHWI1ceM0diiUkbks6fLy4vK+gspraht+HxDIgxJbP+3pNwXipXhix7bkfc npQnhS6T7WVOYcAjy2H33HRs9UHWkOOg7+61qYttksCLEz4sGbWhCtIDleRFsRigaU8Md9HmbbW lD5M7MsjQP7Ci7UepxD/rbOHktsYUZj+FZYRZuDsCA7VDBeEQLteCEyg7rzQI2IR5A+opceX4sm c8adGaYkroOa8r21FuEYgBOLH/iMFt6SzBgYWhyQd8YAVpbvERabHrxEKUeGwK8ojYxpGRn0L/K +V+bXck1Gt1R3pKXwf5GaHdp3hb+MsTmUdeUULrhuibNU29qsf6+MU0U5Bir0lPi6MeD7SgkF9W cJkgECXcSEwB2BdgA1ryq7VD2x2EDY4hcN9kawUubXWLlvHndk1tJF4+bJpTC6hTqCLSPxpoYP6 44kiK1onCJEWFqoOvM+amgK9NMSkqqwKZ68= X-Received: by 2002:a17:907:d8b:b0:c46:78af:6150 with SMTP id a640c23a62f3a-c5248f5868emr383091466b.2.1796375124183; Fri, 04 Dec 2026 01:05:24 -0800 (PST) Received: from deb05.proceq.com ([213.160.61.66]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d16e1a59a3sm4087946f8f.7.2026.12.04.01.05.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 01:05:23 -0800 (PST) From: Mehmet Fide To: Marek Vasut , Fabio Estevam Cc: Lukasz Majewski , Peng Fan , Stefano Babic , "NXP i . MX U-Boot Team" , Tom Rini , Francesco Dolcini , Stefan Eichenberger , Ilias Apalodimas , u-boot@lists.u-boot-project.org, mehmet.fide@screeningeagle.com Subject: [PATCH v2 7/8] usb: ehci-vf: enable the controller clock Date: Fri, 4 Dec 2026 10:05:14 +0100 Message-ID: <20261204090515.2230210-8-mehmet.fide@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261204090515.2230210-1-mehmet.fide@gmail.com> References: <20261204090515.2230210-1-mehmet.fide@gmail.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-16.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 From: Mehmet Fide The controller clock is on only because the board code ungates it. Enable it in the driver, before the controller is touched. Signed-off-by: Mehmet Fide --- drivers/usb/host/ehci-vf.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/usb/host/ehci-vf.c b/drivers/usb/host/ehci-vf.c index 018c16a509e..155cdb2613d 100644 --- a/drivers/usb/host/ehci-vf.c +++ b/drivers/usb/host/ehci-vf.c @@ -43,6 +43,7 @@ struct ehci_vf_priv_data { void __iomem *misc_addr; struct udevice *dev; struct udevice *vbus_supply; + struct clk clk; struct clk phy_clk; }; @@ -95,6 +96,10 @@ static int ehci_vf_common_init(struct ehci_vf_priv_data *priv) { int ret; + ret = clk_enable(&priv->clk); + if (ret) + return ret; + ret = clk_enable(&priv->phy_clk); if (ret) return ret; @@ -149,6 +154,10 @@ static int vf_usb_of_to_plat(struct udevice *dev) if (ret) return ret; + ret = clk_get_by_index(dev, 0, &priv->clk); + if (ret) + return ret; + priv->ehci = dev_read_addr_ptr(dev); priv->dr_mode = usb_get_dr_mode(dev_ofnode(dev)); /* Handle legacy DTs without dr_mode property, fall back to host */ -- 2.56.0