From patchwork Thu Feb 1 13:16:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen via B4 Relay X-Patchwork-Id: 1893930 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=Uy2PFMVW; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TQfZ34LQWz1yQ0 for ; Fri, 2 Feb 2024 00:16:43 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7CB4287BFE; Thu, 1 Feb 2024 14:16:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="Uy2PFMVW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8068E87B63; Thu, 1 Feb 2024 14:16:18 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_REPLYTO, FREEMAIL_REPLYTO_END_DIGIT,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CEC3187968 for ; Thu, 1 Feb 2024 14:16:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=devnull+forbidden405.outlook.com@kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 5FB8F61EC9; Thu, 1 Feb 2024 13:16:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 10CCFC43394; Thu, 1 Feb 2024 13:16:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706793373; bh=sg6ADNDQXae/kHOKrFKVMQs3zZyy0tBSTOjm3d8Q+88=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Uy2PFMVWskLAI5/Dd5rIsCGySdvdC1dHX//BIMsoaWpMbF7lCW3GoN6i5y3dfHcoC PCn2mfuk7MQKDhR7Y6VLzeqOuwupF15nRj1kSi1zle30VSVoPX2Gzx4Cyw1DqJmlQt oV67LOnsoBGu9rvb0XiPnygH05ozdJssg8gN8p8H9KDhHXvWQJc/hD8HRZr6wGrwLs 7ByXGeOvFHdlcAbJ6+o21MrvguBli2mNylU5ATPNlDFF+U1vTnKX+OwvGLwENH3/t9 az0wWh67v93M2InO7q+HpwGMFFRBN2FnHgP0fWWL0TujwgR37txab6f/rLFEgvV6Mk lbFH09tqgY2Ng== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE330C4828D; Thu, 1 Feb 2024 13:16:12 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Thu, 01 Feb 2024 21:16:10 +0800 Subject: [PATCH 3/3] usb: ehci: Make usage of generic_{setup,shutdown}_phy_bulk() helpers MIME-Version: 1.0 Message-Id: <20240201-ehci-v1-3-bb506cb0f64d@outlook.com> References: <20240201-ehci-v1-0-bb506cb0f64d@outlook.com> In-Reply-To: <20240201-ehci-v1-0-bb506cb0f64d@outlook.com> To: Tom Rini , Simon Glass , Marek Vasut Cc: u-boot@lists.denx.de, Yang Xiwen X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706793368; l=1440; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=/ZXy+/JFQl5w+CVuHs0t22RB2/75bzpwupaCW19x1fw=; b=Iv8VGxaupk4iwAULRgGA7nLp5taCGqg1xuXWaTArAlAtZAXS3N803yplPcpIuToZdXURuOFh/ XAD4Y5rGVVRBOMu7VZgcaDZJ8IECcpjNLSXTC/h0DgzKp240rOTcc1f X-Developer-Key: i=forbidden405@outlook.com; a=ed25519; pk=qOD5jhp891/Xzc+H/PZ8LWVSWE3O/XCQnAg+5vdU2IU= X-Endpoint-Received: by B4 Relay for forbidden405@outlook.com/20230724 with auth_id=67 X-Original-From: Yang Xiwen X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: forbidden405@outlook.com Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: Yang Xiwen Replace generic_setup_phy() and generic_shutdown_phy() by respectively generic_setup_phy_bulk() and generic_shutdown_phy_bulk(). Signed-off-by: Yang Xiwen --- drivers/usb/host/ehci-generic.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci-generic.c index 936e30438d..e109d84d73 100644 --- a/drivers/usb/host/ehci-generic.c +++ b/drivers/usb/host/ehci-generic.c @@ -25,7 +25,7 @@ struct generic_ehci { struct ehci_ctrl ctrl; struct clk_bulk clocks; struct reset_ctl_bulk resets; - struct phy phy; + struct phy_bulk phys; struct udevice *vbus_supply; }; @@ -95,7 +95,7 @@ static int ehci_usb_probe(struct udevice *dev) if (err) goto reset_err; - err = generic_setup_phy(dev, &priv->phy, 0); + err = generic_setup_phy_bulk(dev, &priv->phys); if (err) goto regulator_err; @@ -110,7 +110,7 @@ static int ehci_usb_probe(struct udevice *dev) return 0; phy_err: - ret = generic_shutdown_phy(&priv->phy); + ret = generic_shutdown_phy_bulk(&priv->phys); if (ret) dev_err(dev, "failed to shutdown usb phy (ret=%d)\n", ret); @@ -140,7 +140,7 @@ static int ehci_usb_remove(struct udevice *dev) if (ret) return ret; - ret = generic_shutdown_phy(&priv->phy); + ret = generic_shutdown_phy_bulk(&priv->phys); if (ret) return ret;