Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1345197rdb; Mon, 19 Feb 2024 12:08:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVjVbUxvoGIa6VZLL+V1FYixHghWO0Cs59sgQ8r5QhpnOmCJA8y3xRjmedU+tykl6dS7dDC9U4zddVKMZ5RCQLar1hn/YU5OB0Ler8wbw== X-Google-Smtp-Source: AGHT+IEM9sVxWAHoylpNWV0faGAFRGBgPIdDbltjVjBGTA7r5whDrGsrgVH478uWfbAqpbGs5DtY X-Received: by 2002:a17:903:2445:b0:1db:f965:470d with SMTP id l5-20020a170903244500b001dbf965470dmr3540612pls.24.1708373326703; Mon, 19 Feb 2024 12:08:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708373326; cv=pass; d=google.com; s=arc-20160816; b=epfQ5XuTpSApTcIgVGpm1FAPvL+ZarIisR8a7pMRqjSnEjxoXsaTzA4HPhlY4EWGPL KS+DtK+U8IIH9L7FMQBz650uIcEt266xVOmeeHKcWcnhjvVVsSaDvz1HwisyfvAMuX2D XRGy+Zra38worV+2knYgZ35vP8KASmyAa5XS6FKeEgkZQAHf79NMemnMCR6AeUsDPv3A sxXgoFaGQZwiPDcni4IKqbq1kPnPpXpn91RW/eJ/XwHANWA7zAYsnizawtKsKMTG3AU6 YRA5TFyJ8xfznKtkO17cxFNP/QrCkzonaudBk6UvNVmjxKfvlyj9KyWH8v+sg8DUpQdE BA4A== 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=wZ9zS9nph4jLUuRlfb5y1FcijYDY3O4ndPQcFe2N7eM=; fh=xf53zEEwO8UfwqXA8rNDXb86USgBpvamfpvPadu/NTs=; b=PEkPtcERS3iW/P/Y0zwO+RqBadqrR7+ojUzRwgL2YcoLa0Y6szHkE8+twtyjt2lJ61 p1Y4o/rgR7oKfEx/yKJj5qrHFjlvnHhkfDdGJMnCLJS7qZjlqBN1i0jVAlVx/Jq7qI1o dlvdWeB2zEGbSO46xqmJHs9QdgDDHNuCgXXnd/mRPUokWmLJbcMkq/LruPFYt0XuwtPC 2cHYTW79uyTcXOTxSERoWOu3QMR2+AF6HyTFuLtZEVhzwZ5EhNKwADS8eig4Bx2l85qt MJXwKk6a3tWojB7MWO3q91n/TU3Th+12ROI9/0PGUwyg77Bgjn8D+kIW72oxqwT3IZvx 9JQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NIYYv6fO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71927-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m15-20020a170902f64f00b001dc0f0d71aesi563226plg.489.2024.02.19.12.08.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 12:08:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NIYYv6fO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71927-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 36BB3B26114 for ; Mon, 19 Feb 2024 19:58:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16B7C53E16; Mon, 19 Feb 2024 19:57:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NIYYv6fO" 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 22E5151C47; Mon, 19 Feb 2024 19:57:36 +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=1708372657; cv=none; b=kXVhJ5yuM3IAEef6kz2IRymzqDHA7AHYBQIvObpFCadGm68WQPtKb0upLZxXoSRFNPbfnvKV5IwtKvFqa5LXnWgAA75X7/CJ7iFKfQNqAvF9CRbr7JiOWqxRpUMdfSW6cIzq+ucOKSK2nWDw1Qw7ZqWmtU3BCCD8pOJdtJueeMg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708372657; c=relaxed/simple; bh=V1KomR4EYfJ5rWH5vbpqFhkkFyp2l4Yik0iVHegn1sc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mHaF6TVNAIzo3SNgmoZHipgvAHUQde841jDfr7VpQqnuEjMPe8h1IF2HKBk3/3unMvRDHyva78dYSBl6gPn0FaPc//kxBAAdBEV8jscGVC3s0vyVFF+fvUyJs27pjKSRf44TQKT5Pq02UEeCZkqAPXGuSqT9RxzsyJlaI27QyCw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NIYYv6fO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id A7386C433C7; Mon, 19 Feb 2024 19:57:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708372656; bh=V1KomR4EYfJ5rWH5vbpqFhkkFyp2l4Yik0iVHegn1sc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=NIYYv6fOX7C78iccCoMfSOyFTYYaY9v8MlsvSNNCjF61+D57pLTMNJenR5Wlzz+oh xX0KjmmRcpzkZs41qVidP2qfTilYN+/gr4wDBJ3QdpMF0B8pc27pqhO7yOxj4bnznv ZzG3QfW6yf8CjLBSHjFhJBr4wexskuJTxfBLiihPtTp/kx3eTJQJXqe5Cbua9jEd46 b8c7Ug3a+S66cePO3Fvpyt+FkqOQcR+2OtmjMDTAuzT0sr/AnQP/4ypl9XN1nWCSNA vhwchxxyOSntWskNEWsLEV0DX8ucMdcWep3Y9kWeUX34JB5jSSDtlYm5q5KXfx3cyC 8BIYovOBuDRBg== 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 8B1C0C54788; Mon, 19 Feb 2024 19:57:36 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Tue, 20 Feb 2024 03:57:36 +0800 Subject: [PATCH net-next v3 1/6] net: mdio: hisi-femac: make clock optional 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: <20240220-net-v3-1-b68e5b75e765@outlook.com> References: <20240220-net-v3-0-b68e5b75e765@outlook.com> In-Reply-To: <20240220-net-v3-0-b68e5b75e765@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=1708372656; l=720; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=RxVNNMcUcOL8zwGYeNVp22tshMMwMwhDPBBRMx/bOA4=; b=QWnp8vXIvEWNQsFkYpybTyS4CueV5P2ocmQp+rpM8gO/MOJ7eUrbcJ7WOKB/E6zOZoJRTGhvC k7ZhNuV9xxjAdXlEfVk9tD3gFbUtvtZSwi27S8xqJ2cgUP0CKSYT57b 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 The clocks are optional. Signed-off-by: Yang Xiwen --- drivers/net/mdio/mdio-hisi-femac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mdio/mdio-hisi-femac.c b/drivers/net/mdio/mdio-hisi-femac.c index 6703f626ee83..a2620b200381 100644 --- a/drivers/net/mdio/mdio-hisi-femac.c +++ b/drivers/net/mdio/mdio-hisi-femac.c @@ -93,7 +93,7 @@ static int hisi_femac_mdio_probe(struct platform_device *pdev) goto err_out_free_mdiobus; } - data->clk = devm_clk_get(&pdev->dev, NULL); + data->clk = devm_clk_get_optional(&pdev->dev, NULL); if (IS_ERR(data->clk)) { ret = PTR_ERR(data->clk); goto err_out_free_mdiobus; -- 2.43.0