From patchwork Fri Feb 23 13:28:18 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: 205378 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp583386dyb; Fri, 23 Feb 2024 05:30:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWQW8ytOOEyrqx8T3RqVqAIYwR1VaFJpnT1MFuQfsfPPo/ucWffJB68M29PWTSlF0gRLybvS2sN75T1jWUZO9l3EaW7bg== X-Google-Smtp-Source: AGHT+IHDixuey3wR1csOgzxReMhgOp4VStezOHDYb99K814Mhe6b97DAYGUZb3Do69unP51pjSbx X-Received: by 2002:ac8:7d81:0:b0:42e:3830:5485 with SMTP id c1-20020ac87d81000000b0042e38305485mr2214539qtd.19.1708695014934; Fri, 23 Feb 2024 05:30:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708695014; cv=pass; d=google.com; s=arc-20160816; b=HQX7/2vT8LZxF5OaxI8JMQBEjWaVwjoBN/Q3TLSMMUTIC7GgLx5puEqsNWrVkWDy3D 4WL5DMeLAMo9bsNrtCGDGX8sRlCb2B/0PMnDesBKA0ouV6jZ611Q3B6OqN7vhCPnWtlZ dTOt3nUCcWbUdbQeceZBSmkRlCZ6g2blfWmYRUv+PoOOymqadqEVqo+5EfI8JGqQFr0K SB085h6+qs4w1s/uxm74IQviLoUF3L5F24k0u1MbEqVL6QzlxGCKcKV+foRKHucCAWRw AlefeP/htxtwkT86QmqJReTmhSrMJmlT6in5rF8nkqDSTNhtHwAXzMn+EmOz4R1Kq/zm c3dA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=qb31qhkRYQE5dlYWRk5TzkAiXMs7RFajPgkV8ywARAo=; fh=xf53zEEwO8UfwqXA8rNDXb86USgBpvamfpvPadu/NTs=; b=Xdl3qVjzJ7KQ7Jf6geCqQw9CD99q14Lg0edokExCAcW6w1ceY91u9k0e6wIsLeQhkw 7Knfzslds7fVMUPw/lOlsM4WRL7yflDiPLgodz1+naFlASB0kQ7rM3Xfa0+ABfnksamr JcnFcUmN5DF7VlOV1eSJ7AbYRzDm6Fuh1Bvhu2N2J/I3ETvcmLzfhnWMbCkyF9qaG6pN YFR7+ftWwcFC9Ey4EVSZH/nB7VOBbVVDdCS3NrC8PUGipayNX2hy1pzOpvbdRmZOQjxK t++f6JwH3KUYhfSg/Xhu8hd8pUpfjxqNUzPylLzvbFNQricCrzIkCH9SSAstKh6jJ8Xf 53bw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HfQhkwhT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78376-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78376-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v9-20020ac873c9000000b0042da7f4ffb7si14505019qtp.607.2024.02.23.05.30.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 05:30:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78376-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HfQhkwhT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78376-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78376-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 36C971C20E7D for ; Fri, 23 Feb 2024 13:30:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D18C182880; Fri, 23 Feb 2024 13:28:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HfQhkwhT" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0B157EEF6; Fri, 23 Feb 2024 13:28:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708694909; cv=none; b=JKTDJGN1IUKIMPqhlvcLAYejfnyRpO0Mt/IFfUN3rPCJ5FaJfM7SgwdZrzOXL4rgUSCwa6e889CQNWje7hCcRsCFsYcDCqQDDKzvTTnmB571dPPQUw/QVd9//puOoEYzLSKTWPgy/LDfe1MRbOQT8w9XEgIwas9oPV4BCHgtzLA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708694909; c=relaxed/simple; bh=vu47BKfN+xFcRDfbkn3C1v8zrm2ugq1RBZELrpt63GU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cT1kew1nBqjsBC2dUf+MLUqEbQR0iAc7qBS3S6Xg1BLmtmAZLtDgubJRqbGbLenmMWGSlZMJpJGOPZK3waLfTGmpkX1NsBJud++vwBU8GpHZi7lfN86bCS+tlHQmSL9l7U+9n9hr+yPidAb1FtQiUA46H8V4OMeU5mD9A8+n/tE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HfQhkwhT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id A2215C433B2; Fri, 23 Feb 2024 13:28:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708694908; bh=vu47BKfN+xFcRDfbkn3C1v8zrm2ugq1RBZELrpt63GU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=HfQhkwhTOUySZBg/c/PvXZAlUx4PH05CjTf/r1ndpFBILffuylF1hKkVJkqjCi0US y8+TpEbW2udnUp+xQM9FhRYQbN73HSk/SlgWGKIpn4BZDzYWG3hj/HMu9HzPwmNwJ0 KTzJ7+4J9+zhnzWQsSCqJyCaUjtXckFyUEPSZxr5i9zSM0R/atvaYKjai3gQLy8EdM ziFrVYzQXOjrJ7UF7+lMMmZka/aOwOcgMObcjoAcBWM2JNrHObhT4fWGmMLc81nkCo eK/q2AaAZD+wJDparsQR3Axz16wOVcDKJHbmr1DBmDuf9adPUoE+Ah4eyp753bbJTN eJHvGSbcLNupw== 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 8C333C54798; Fri, 23 Feb 2024 13:28:28 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Fri, 23 Feb 2024 21:28:18 +0800 Subject: [PATCH net-next v5 3/7] net: mdio: hisi-femac: remove clock Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240223-net-v5-3-43b22d39c013@outlook.com> References: <20240223-net-v5-0-43b22d39c013@outlook.com> In-Reply-To: <20240223-net-v5-0-43b22d39c013@outlook.com> To: Yisen Zhuang , Salil Mehta , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Heiner Kallweit , Russell King Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Yang Xiwen X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708694896; l=1802; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=kdWAr70dNlF5sryokQxZlrJGOk8Z9nw7ekwi0I/9miA=; b=hUCPn8YKnVGxbiN/uWX3GewS3/JP2RKNXDm4Yg42EdhJqi8ihx78WmvVsew+vBs8R8I8TFCwH HAeMbQRJzSQDFKSw1107eHRm7VXsPoTUSKFlHb/3fEsrWgi2eKdrZZr 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 Reply-To: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791696583983110484 X-GMAIL-MSGID: 1791696583983110484 From: Yang Xiwen This integrated MDIO bus does not have a dedicated clock, remove it. Signed-off-by: Yang Xiwen --- drivers/net/mdio/mdio-hisi-femac.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/drivers/net/mdio/mdio-hisi-femac.c b/drivers/net/mdio/mdio-hisi-femac.c index 6703f626ee83..faf4688eb1ab 100644 --- a/drivers/net/mdio/mdio-hisi-femac.c +++ b/drivers/net/mdio/mdio-hisi-femac.c @@ -5,7 +5,6 @@ * Copyright (c) 2016 HiSilicon Technologies Co., Ltd. */ -#include #include #include #include @@ -21,7 +20,6 @@ #define BIT_WR_DATA_OFFSET 16 struct hisi_femac_mdio_data { - struct clk *clk; void __iomem *membase; }; @@ -93,26 +91,14 @@ static int hisi_femac_mdio_probe(struct platform_device *pdev) goto err_out_free_mdiobus; } - data->clk = devm_clk_get(&pdev->dev, NULL); - if (IS_ERR(data->clk)) { - ret = PTR_ERR(data->clk); - goto err_out_free_mdiobus; - } - - ret = clk_prepare_enable(data->clk); - if (ret) - goto err_out_free_mdiobus; - ret = of_mdiobus_register(bus, np); if (ret) - goto err_out_disable_clk; + goto err_out_free_mdiobus; platform_set_drvdata(pdev, bus); return 0; -err_out_disable_clk: - clk_disable_unprepare(data->clk); err_out_free_mdiobus: mdiobus_free(bus); return ret; @@ -121,10 +107,8 @@ static int hisi_femac_mdio_probe(struct platform_device *pdev) static void hisi_femac_mdio_remove(struct platform_device *pdev) { struct mii_bus *bus = platform_get_drvdata(pdev); - struct hisi_femac_mdio_data *data = bus->priv; mdiobus_unregister(bus); - clk_disable_unprepare(data->clk); mdiobus_free(bus); }