From patchwork Thu Feb 22 12:43:22 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: 204746 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp225132dyb; Thu, 22 Feb 2024 04:46:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUFhHcgysQSglPxwuL6+Wobsti+xaCMBogkin7jInrIHG/i28bS2FYbDmBHkx2EknW5bW37nQQryTlyUWkOlvTzcU9tNg== X-Google-Smtp-Source: AGHT+IEuFElv2PXdAcps03GbtkqcbiSjhu82R9d0PgkhqNbPLJLq358ooCJnHS9NpdV9eKcycqsK X-Received: by 2002:a17:90b:1bc6:b0:299:63ff:9c0f with SMTP id oa6-20020a17090b1bc600b0029963ff9c0fmr11030568pjb.21.1708605990379; Thu, 22 Feb 2024 04:46:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708605990; cv=pass; d=google.com; s=arc-20160816; b=t8yCdqIn00MswDlKEq5zo7LASLqIMjEVCVSx+phPv7Wvw0XdX7qeU2npYBhqFy6z+s el0uOO2JLQ/oVr6R9IEoPXuLXHla187bxq9GxJKuAnsZb70E7MxqPcJIPP5IoUR2JF+8 pwj/wdkmeG/wLcy/ijPTV2aFNNRz9b+u5pczlKWRo39QZgQtTVuv3rWvXnFbOs6kEBnX 48zgA9IfjcGs2Dld4CXRLV21fPSfE8jaW9DDD4Rt+PN/omWGigJwZGJJ3cinegj8Czob QzqaH2ewF954J/b/RCbNUsQtUw3Rv2xCz7nIo+dKMNmfwHLWzXQVxbjJD8W5ySsIWA9r cipQ== 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=YQYoADa3es2XM5FJnSpj6yrzDopPPR9wRtEe1G8hE8t+h5FIbwir5fSHJdX8PWeUQL vImyR+2sKuaH+8vO7FLUYLTkAX368oBZVndOvU0xiQ4uhAmAuVV1cojsqF9JYDcBSb0L DRhiXAVq73yVPKw/UkE0cPo822g9CWGgIbyik0LC9hCAtwXkzr5NwMwMWRFAJuH09KHl z/MISfYA/xiOB3wfnzJ5GVuKHOvHqTJjyvov+2+07dgGJtolvv9El0dsiwETKuGblU9T LCsNsOvkxMmfzyOjiG/PvH7gFNV799VLlPkVlpwpEtORoNrEZTrFMXDTWynqa5honE5j O3Rw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DZVO5Fte; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76530-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76530-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id pj6-20020a17090b4f4600b00297160ba34csi10167353pjb.104.2024.02.22.04.46.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 04:46:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76530-ouuuleilei=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=DZVO5Fte; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76530-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76530-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 26F0B283952 for ; Thu, 22 Feb 2024 12:45:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0394F145331; Thu, 22 Feb 2024 12:43:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DZVO5Fte" 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 3B75D12DD96; Thu, 22 Feb 2024 12:43:42 +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=1708605822; cv=none; b=I1Al92qMxDdFAqG7KFaueKGyU5rJBB+CA70y5VbtZ5QTt2/XpY/q6UsdzVlhfNDCYZsf9QD/OOaPyWUza+NZlw6RxidhUqRSRqcwk5tpAy18ffMu1ihiVg0UYQ5kx1aHIVue2awRAICTSRZj8WkNQT1WpZUv7zo+ijgynD9G4D0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708605822; c=relaxed/simple; bh=V1KomR4EYfJ5rWH5vbpqFhkkFyp2l4Yik0iVHegn1sc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=apMMy8djqxhy2h5P4R9VQvcD/78QL7R9UxWOi1Ea3RV4ktg2OaO+57022mcEtfe+/6O+rCIozVB//zATv4hoRSCjaKDUqiJE8tAL8gzgPnP+tRmUOwTNhhckq/q31tvmxUFOrAQEhfW4qWOXDzaYQTV1TmaBdXNCZqKz+ClkgfA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DZVO5Fte; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id DE46AC433B1; Thu, 22 Feb 2024 12:43:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708605821; bh=V1KomR4EYfJ5rWH5vbpqFhkkFyp2l4Yik0iVHegn1sc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=DZVO5FteyniSEsuQFid7EvprD5it4sZV7nS0TgN7Ss3ZtkgFK2yI/e9GP76Ad/Aja S/uMbLeIm6JEc04UCzQEwRiEtGgsrntV+CVGeFWBNuzrvp20iGb1bF0OxWrKQy+2CB VFhVTnzi6l6pR4mI8oUj0Wa4ILwCG1NhAmKhvWspmbkzQHUIjOKjqD5MxMv4JE1yVM QGU4QLNdEH94NTkRAxzQO1qAIf6A5MuKLWggHi48FuAiONFmYsbzEgGioxgVaXM0au eUVk4weMiYCqCkPQHSlnm+3sYgmxXuoK4c6RuQg20T3EGHq0549ULUbOmJm/KfrCJl BbeoJzPax7CyQ== 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 BFB88C54798; Thu, 22 Feb 2024 12:43:41 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Thu, 22 Feb 2024 20:43:22 +0800 Subject: [PATCH net-next v4 2/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 Message-Id: <20240222-net-v4-2-eea68f93f090@outlook.com> References: <20240222-net-v4-0-eea68f93f090@outlook.com> In-Reply-To: <20240222-net-v4-0-eea68f93f090@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=1708605802; l=720; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=RxVNNMcUcOL8zwGYeNVp22tshMMwMwhDPBBRMx/bOA4=; b=1c9dFQmaUoe8pYc+8UA7JNdtR9Upmnvh5R0mJamXsLrTU2F9PMlNqiN/8AASZ0TCUfB2qU/v7 j5ea6kccwz4AWFpQwwgxagmjlSrEfvdLJNm83pqxOHOEnqqC2iUFLNU 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: 1791603234933279557 X-GMAIL-MSGID: 1791603234933279557 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;