Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp999464rdb; Fri, 16 Feb 2024 02:03:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWFvHfa2Iq15+mTFXkpHvHIcPybYgm2m5WZRM4pWoliX97APCko7SDTSy0opvSGteoaDbLi2kN83NQo57xbxXmO2piRp3gQorvKA4I4Bw== X-Google-Smtp-Source: AGHT+IH1AeEbg/w1xbXg+FxsyTu55NlkBKH03BHRf5KhnpwzJIxjp3zBxebGiw6FzQGQjLVRiLkA X-Received: by 2002:a17:90b:ed7:b0:299:3258:fdff with SMTP id gz23-20020a17090b0ed700b002993258fdffmr1523191pjb.3.1708077819655; Fri, 16 Feb 2024 02:03:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708077819; cv=pass; d=google.com; s=arc-20160816; b=lPXhn7aGWlAFHLFOKQBb//Ik8yjgKGTUaWImVzpB4VjV1CXfsAHa04ncyVJnR/XWrk KBsJEN0NwUMoljNCTcZty0idrQRa1PyYCaQnY3He4qYxrowAc+vJoTD6vDg38pkg+zwX WBVs2fiZxMoCsZyZN0oVmc2JDsTqJuwyZfWyyn7sDmnl0eYuepQcy3rfPQ9yErjxSri9 Cnw83VUfOd1lVRdeo4qx9Hyct9B1vQc0g0AhbofNzpVivwbeky+83VciDFs3jauzyFJc Y/Rkhi+KpD9du42syGEcc/n6Qx34OrsZRopwsMU9LtXszKS7BQu7z87gEHspCBj3s7w/ 51Mg== 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=YUyCOKAW57vGpD9UsAB1Jf96lQXTx0J/i1SlBxoko4U=; b=QTO7bgDOOMkCxNBkwKunIajFkwhXsosiGjE09SAYhkbvKyYLaGj+EwpbJ0PnykXEEd ANe/rhqzGPYnIbRMYSLmxRjqpy7/jAxueTtRN0yUx0SksswqVdrLv+Ei5421FvHnIySH LoWM+BYu2pfwLS/PS3/SdbcCjUrIC4YEUfl4m6S75lix31RKc3HyVVXIU7CwhcTuU8+3 kAbDX8Tj9HCGpa1tqj5XCrleYnw+8CBV3gPxKlaBYUFtgbl9i/VpMRY6xmJ2nA4XXtuy nOoRW0j4xEMSRmdgzJQnRoAH+VM0WC2YMSFmAre5+aDNdlmGYq/5nLm3S2h5vpezhQtL pTWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vnf2FYTp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68406-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68406-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l185-20020a6388c2000000b005dc229b6778si2824194pgd.14.2024.02.16.02.03.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 02:03:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68406-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vnf2FYTp; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-68406-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68406-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5C63E28B897 for ; Fri, 16 Feb 2024 10:03:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82D3520B0C; Fri, 16 Feb 2024 10:02:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Vnf2FYTp" 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 BBEB21CA9F; Fri, 16 Feb 2024 10:02:02 +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=1708077722; cv=none; b=XA6LUS2aKKXEdEv0c5CDx7KnrjCtqbi9aEBbAvHMqn3HdGavqQoRu/YAEnSSmOoNjBXoEP3FinrP3k7nwpuY3a0m6GnuQ30CiYr24yKT4s12Xu2sbF2HL0+yIIjlrcLtO5G5D4PxvY7o/Je6FMO5l4z5fflrdayv96mJnb4sd4M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708077722; c=relaxed/simple; bh=V1KomR4EYfJ5rWH5vbpqFhkkFyp2l4Yik0iVHegn1sc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=I4IaawE+irG1gob9Xrc37NEP4apl8MO7gUJnluUtgyho/mlvCC9I88JMHnbAbw32WxOtXPhY/inyjYkb1DWrJAAbf1S4LuJkbqxOXGwp/26SN17X+9K2Fe0LKmpYp5JtbO9wJmEzbsW/iqdmqF/8Z3yjlkG9mxtBuImvD4gyarg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Vnf2FYTp; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 3B385C43143; Fri, 16 Feb 2024 10:02:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708077722; bh=V1KomR4EYfJ5rWH5vbpqFhkkFyp2l4Yik0iVHegn1sc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Vnf2FYTppXare9qZW9Fa7N2FkHqUy5VMiaVAIGUR5Ap5YC9kIegHbuYvF9fdgnNWW h2455fIN9XqdNVtYLpx3pMdgMs+FRDvMlJqgKWiLv4eq6hT06IO4Ww8u0qanMgDRcp bWwLgalJoR73943FM49Ra3bQLFNmxbwiUfr58bTuEVsmxd/lZbJ7LX1nj3pdlv4E+m LMD0mHTT8KMNo1qHwqVRetzA3Sd8qCQBLR1Pi+X7NN0W7PMYWKBly/L+q92diUamB5 bAHyXKATxv8jNtZb8KNb28dqr1yJ2WUE4xnkw7qT+PkgzWY32Sr93ORSqsTsjPT8I5 me4DiL6Rfmpsg== 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 1E22CC48BF6; Fri, 16 Feb 2024 10:02:02 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Fri, 16 Feb 2024 18:02:04 +0800 Subject: [PATCH v2 5/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: <20240216-net-v2-5-89bd4b7065c2@outlook.com> References: <20240216-net-v2-0-89bd4b7065c2@outlook.com> In-Reply-To: <20240216-net-v2-0-89bd4b7065c2@outlook.com> To: Yisen Zhuang , Salil Mehta , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yang Xiwen , 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=1708077720; l=720; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=RxVNNMcUcOL8zwGYeNVp22tshMMwMwhDPBBRMx/bOA4=; b=9eCC9W//0cVI7pQh1Qd1bqXLtsJJgDIAuLm9kVPr8VDZ00nacm6U5wPONG3hgSRXy4dgDqyFx Oqq9x9oJN5OCT7FqpW5ViVbi/3jxG5xRmR2FTALIoIHuPY91E1sa1Tt 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