Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp495581lqi; Thu, 7 Mar 2024 03:35:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX9LZQCn+eP9EeCip+ESK1nS3qHhD5IVeRtSG0Geqy0sRW74NtOzRXXn22kEl65HzA/t29BzQp6sBE8/F81Ry0XwK3leV82wk44rg4LoQ== X-Google-Smtp-Source: AGHT+IFqYZxw5zQ5q4Fo9BTwAOw3CNpm5oRvoL647BEn04M/im62WxfMaiWhFZ4l9v9BgkeWsSiz X-Received: by 2002:ac8:7e95:0:b0:42e:f481:efe7 with SMTP id w21-20020ac87e95000000b0042ef481efe7mr9012258qtj.11.1709811342791; Thu, 07 Mar 2024 03:35:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709811342; cv=pass; d=google.com; s=arc-20160816; b=kwvNWQ7Xdou3kKpfg55DEo4gegwSe7BZrmjllhHDberKOGVN58hfOQ/TpfG9PUIWHP H67bm04LXr+v3WiCRA2hax8Sb787SRJa3s8e+T0zwqAKKvxYsi+ZVJfaghcpw7KrONOP Q7jbrUY1YO+e6HH+Nktif9EIo+ypIsm+9sivBioQ2WAqRYv+4zLhPn5RPkX+OqvZvYfR 4juQ7riCIGWU2jSyLeCcNbvuB4+cgzuDqWEypbLvVJKZ6bOYOPE6typcWMZR5SIYF19p 32x9+e1qQ7T+1XS39CeQA29rBxFy49R+5yXudHhpnPnkJCJW7MTMQRisEbz3+O/rzbgs 7uag== 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=mQHkHu02Ju679QBSv3bJLBxP6+L44nIXBsaupShbZ4xR9MuCrxE9j5A5c4yYvW6KRq 5PR7x2McslD3m89guZMNn+xABwBwxpDMJUjqUM6sziy1Rn2Z+bfmw9wPF642baG69ufn 2bW+QB3zSKP6Bc1IiJ0QG9k3i54lZWL3tvsr8oaOVtQ/ehjCBinSwYBB8vaXvfiT9Bf1 p6EsrLklFTURfzcOY1JKo0MhJGDJeWa4SOwAVdJ0vm1pXsINKoKpBAfjzSBrtdeIKGXF Si8KUG1nhVNq0M+L0WH+D4CQkxV6K2DDfWL5UCbEKRAzqlGsvs82s5J6LEn8Pb8lZVf2 rWeg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=im485R7n; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-95428-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95428-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u9-20020a05622a198900b0042f227d2621si19841qtc.511.2024.03.07.03.35.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 03:35:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95428-linux.lists.archive=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=im485R7n; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-95428-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95428-linux.lists.archive=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 7FF791C21065 for ; Thu, 7 Mar 2024 11:35:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFE5712AAF6; Thu, 7 Mar 2024 11:34:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="im485R7n" 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 ACD791292CA; Thu, 7 Mar 2024 11:34:49 +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=1709811289; cv=none; b=CRWd//AE75KuL+qhzWaocRYV/49YxUrq6aByXv9iChyB2kdA3qZwciFbjIvGQzSzC7nHCmxxlnJSHQsGdfmGkwza0K+6zV/64yJ6HUT6nlVNFYP465WCsuE2uakM9qz1gi9XRlT2M/QLogkWAA7TTCYWLxPVZu2zQQFjb+hvg+Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709811289; c=relaxed/simple; bh=vu47BKfN+xFcRDfbkn3C1v8zrm2ugq1RBZELrpt63GU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=O/4UQHOePHVH5b4vzBgv3bAaKsoFswbHlvfj3kPPj5ap62Nvi0/2QxW+qtp1TJ8pi5rE5hFF8HAGPL1xp14cKjLYAhuCh9T33k6IoJlmmNQMC7nf7zrmrH+qbQgNRUtVhl2m8Sq6YHNn1Bcg0QfwlNL48ixaIaKMZ97p6K6sSL0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=im485R7n; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 649FAC43399; Thu, 7 Mar 2024 11:34:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709811289; bh=vu47BKfN+xFcRDfbkn3C1v8zrm2ugq1RBZELrpt63GU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=im485R7nJmn8xDH8cxn81xBBQrDgIDW1mGHRDMHqIPt0mRYJ7Uk/5sM6ATCChj5ap 46QvL5GIz+cdN76vJ6cYbgKVhr5sxrQARq1b3jatve6uGfEbGXNS0tZCjmPzJNTD1s 5V9PsMWPJPx2rI/Vkj/OFKO5wIOFntLO62TtX69eRJgkB69qWRl6Rm1g/amQkNG7Rz 2waLDh8TBvq50BobOMmCH7C9tQdhT210K3gZ2J+ibqRroJuqapAAhETsNuST+qE9IT D/DzIjE+SipAuxwxO0/3a4JKpJhCKVhc19nVGyU0np9XYUf6FLEqzq7pcrSnIgTnuG V2xyULJzPCwuA== 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 4C2C1C54E5D; Thu, 7 Mar 2024 11:34:49 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Thu, 07 Mar 2024 19:34:49 +0800 Subject: [PATCH net-next v9 3/9] 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240307-net-v9-3-6e0cf3e6584d@outlook.com> References: <20240307-net-v9-0-6e0cf3e6584d@outlook.com> In-Reply-To: <20240307-net-v9-0-6e0cf3e6584d@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=1709811287; l=1802; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=kdWAr70dNlF5sryokQxZlrJGOk8Z9nw7ekwi0I/9miA=; b=4jG54x7jbw0SvOi73HBsijYpAPLI5aJg0+aivTN+E2BwqWAmb9+9EI/8ESyHdgvineOb53dR8 TCTFa4NfbJZDMHqCFQMazmqRdJgxe9RmCLsMoVg7No64HCQLtKgTXU+ 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: 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); } -- 2.43.0