From patchwork Tue Mar 5 02:19:46 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: 13581554 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9EDD1C48BF6 for ; Tue, 5 Mar 2024 02:20:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5CqrOjn+r2NL3/5DXc98kummx46ciD+kgKSPPuXJWKk=; b=mJRz5ul0Ee5uZG QCUTT9hy5sKPcwYpyxO9QLiDHe0/0UgqUGuAoBAt6Pez/2XDhZrVgu1Xs4ujVTw9hMxY1/aYwLodk 6rJHzZz5SwPJE8rbpeiVEcG6pwnhIoWYoDoPZGfh92HD9Hpy8URllZT5tkoymwJenlZFU7OhAajQj EM21kXAGGrXx/wSUsc6JOcuoKGnjJT+kVF4lCCm2eQ0U0zkHtt1OMI2Yxoyw7IaDf/wR2zlNoY7Uc hRuuw9CAz+7QmudxowsViT9OBKFLRRYp52eUkW/D09OCiaB7OiR8zWdLJ0qqn8inemc2+lENH7v1M 7bmrYnZzGzU+xn2hzQ9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhKPv-0000000BXdL-0uZw; Tue, 05 Mar 2024 02:20:31 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhKPQ-0000000BXSb-33sk for linux-phy@lists.infradead.org; Tue, 05 Mar 2024 02:20:16 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 9A389CE182E; Tue, 5 Mar 2024 02:19:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 7B46BC43390; Tue, 5 Mar 2024 02:19:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709605196; bh=esSfqR/EN2uGgQJhZInB3gQ5IgggyIpQkCwvAPI4KIE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=B6jPmrlv0e63tN91R5wSQHmgw+HQjbhM+GG7rMi69/VzxSGNHYI8JsY92W73+sspe VPOmRDq6g583Pl66liY77KWE2eXAp1HBwgLQgZhjG3oDXK7UV5HapmzqTmWlimU9z5 kBkc+FjWH//O3zJYm4Q5EEpdBezCIuLukoNMpVAiTwQIFDa20xLXE629BYqJ47GgGb 9PIDySWaGiLn/jiF3UCLo7qFJ1WLrRpF1Pk9joaysLHoti93f2bmagGGt39g0Q3UEt 5KSBre2Ly+wCviatpTAMvOGk6Hpgbte9ZsGR8DA5u7GOjQVN6KO0PG7MNYCToZ71fi g2Oz2ymQPQj2A== 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 646D3C54E49; Tue, 5 Mar 2024 02:19:56 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Tue, 05 Mar 2024 10:19:46 +0800 Subject: [PATCH v4 1/5] phy: hisilicon: hisi-inno-phy: enable clocks for every ports MIME-Version: 1.0 Message-Id: <20240305-inno-phy-v4-1-a03204c9cf1c@outlook.com> References: <20240305-inno-phy-v4-0-a03204c9cf1c@outlook.com> In-Reply-To: <20240305-inno-phy-v4-0-a03204c9cf1c@outlook.com> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jiancheng Xue , Shawn Guo , Philipp Zabel Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kishon Vijay Abraham I , David Yang , Yang Xiwen X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1709605195; l=971; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=jGUbESXsyAvU27nkXjLoTOKtwqcjOT068eM8RNJCWfs=; b=mZkELQxdOeb+Ne66xgMMDdr9MMJtJvx7d4OtBV0cy5nnZX+tkpCKswo6gT9KRCqANjgeZjyPA wGNJRUlf08VDaB8fXHvmiAChKRXphX48gM5i0Dmi7bKCDr/iQX04WzJ 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240304_182001_052151_B4B6CC51 X-CRM114-Status: GOOD ( 11.23 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: forbidden405@outlook.com Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Yang Xiwen This is needed for port1 to work. Fixes: ba8b0ee81fbb ("phy: add inno-usb2-phy driver for hi3798cv200 SoC") Signed-off-by: Yang Xiwen --- drivers/phy/hisilicon/phy-hisi-inno-usb2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/phy/hisilicon/phy-hisi-inno-usb2.c b/drivers/phy/hisilicon/phy-hisi-inno-usb2.c index c138cd4807d6..b7e740eb4752 100644 --- a/drivers/phy/hisilicon/phy-hisi-inno-usb2.c +++ b/drivers/phy/hisilicon/phy-hisi-inno-usb2.c @@ -86,8 +86,10 @@ static void hisi_inno_phy_write_reg(struct hisi_inno_phy_priv *priv, static void hisi_inno_phy_setup(struct hisi_inno_phy_priv *priv) { + int i; /* The phy clk is controlled by the port0 register 0x06. */ - hisi_inno_phy_write_reg(priv, 0, 0x06, PHY_CLK_ENABLE); + for (i = 0; i < INNO_PHY_PORT_NUM; i++) + hisi_inno_phy_write_reg(priv, i, 0x06, PHY_CLK_ENABLE); msleep(PHY_CLK_STABLE_TIME); }