From patchwork Thu Feb 15 23:48:57 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: 201846 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp193365dyb; Thu, 15 Feb 2024 15:51:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXZ8nSD1jQTrz7j/ntPMvL+I+XFhhyZ1HrSMCdZB4VxBps5dSa9FYggqEoyMibqHkq/xd9W/j8SExCTwyB4ugsFNd4u0g== X-Google-Smtp-Source: AGHT+IFLu9r8DATJpGQkyCLYuHYpDTjWBF8/shBLbprYzI1+vf3lXuP6jGAKmrWJQMMO40aCaR6/ X-Received: by 2002:a17:902:da92:b0:1db:80d3:1af8 with SMTP id j18-20020a170902da9200b001db80d31af8mr4780086plx.19.1708041073334; Thu, 15 Feb 2024 15:51:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708041073; cv=pass; d=google.com; s=arc-20160816; b=KAlfNDdp8v+BcwTgoSsIobNJ1HwtWBIe/tOyIKRJVqt5XdpJmhFPGbf0tM8AMur1cz KyZbG2s+UBVdr8esJ2c1yR6JwRJZ8s1vjybBYw1wVBkdGdC+egV0gbgSOJZO9j+8pHej 4wN9D1RWww8URboVXZcaOf4nCUdX0q8TcPmpqxwYbExyZ5OMdPuW4qBHPRFe4kXUZkS0 GDL3P4hIVl6CzRUhJx/6OQiD76PlRG0VGRlo/ftOwDihB/vP99qH585/qf3UsYwHeLjI gokpR9SagnR2HDaP4r7fhA+iNrUVvsSKoGLpcrjosyBXf6B+0LX4sJMuDORDyKwg8tj5 CzFQ== 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=7mi/oAti9uc+JsnjjjpWvSnTdRhCdO+I/4P7fLOMzkI=; fh=YUyCOKAW57vGpD9UsAB1Jf96lQXTx0J/i1SlBxoko4U=; b=zaHSj9sKhozveJOz8SUoqyscirr28sTT5tRpMLnzjaT1fxwNar1mqSs9GcTwk8fvvs TvAZ0r8rMh7rY2fOsMCrsHKV+uqXDDRgh4OykoqaVzORo2db/Gx7wgAZyZYnrdOQHDZ1 trWOos3pJOlX3EO2EfSA1dh4DU9tRsZ+Z30eYBdjIX9dcVnPEcZuQh5Ncrl1kAHmRgmQ oMeSZmdwVcwRgBmjFNM7BEHClLDIFQdDk7WG8+0ypzKI936PiPRSGb5Pyl80qfWyYNFK oEMCaGD8AJ+emRitnaSSKIZaCkLQNnjgLZZWAygIzCNz2OfHG6l8SvJRGVW3Z5s8hd/w mGtA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EjV5lrI+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-67856-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67856-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. [139.178.88.99]) by mx.google.com with ESMTPS id e12-20020a170902cf4c00b001db3bb0647esi1887262plg.605.2024.02.15.15.51.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 15:51:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67856-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EjV5lrI+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-67856-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67856-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 2AAA928165E for ; Thu, 15 Feb 2024 23:51:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 172F0149009; Thu, 15 Feb 2024 23:48:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EjV5lrI+" 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 853C7145FF7; Thu, 15 Feb 2024 23:48:53 +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=1708040933; cv=none; b=SODQ+330RXP8SqpC+HvLxJ4XUQW7GGWJZOAMg8eoZ3e/iwlSQUxqfrDwD42K5sSdsd/efBsbZWw4HUvMf8o8IYikFLac/FCVUhLA83oEdWdGthA1QRnxtgGsI9O8HxG37nj/V65v0oTdwM3/NQFMpkREGcCgPrP088VVkXCVuRc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708040933; c=relaxed/simple; bh=7qpxZXKNb+gP/tnwm1MPhxnNC2V6cxuGt+MDwFekHBE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MfPpamaMVmOGNijzsi1ZVpEv5s3iMQ3e1Z9iTEazgayzoBUGgFDvrsKPlnr2DZyd1UCpTdRH9q6p/00a8ff56J/GQGzYS3BzO07aLB6V9HgMITt5hPY/aKKjO/wR8yAgOv7IDWHJyHLbzMov4I9gKmNb2+6Aitdjz5tU8DT877w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EjV5lrI+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id F225DC43143; Thu, 15 Feb 2024 23:48:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708040933; bh=7qpxZXKNb+gP/tnwm1MPhxnNC2V6cxuGt+MDwFekHBE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=EjV5lrI+Nbo8KQHsgSYFmIm919LPAnRjnY/Lb7bl9Sm4i5kCpANSQMqQKKhiLklag 6oGFCUd+x0IoSzrlo7VsZnCd2NiArO5q0tj+RqsKDBb4OFBlYfl6Cbk1Oxyu+GBEQx q9Y5jyLoRw9p+CdLx749kikZxpQ4MxQH9ZK0QSmTTp7NZwna+/VKoIjrb7WStoEW6k ReLMP4nNUSjS69MeHe6Kk0r+eqRk58+0Tq61qWXL5Wp9yXU9MDgOPwLiWk1m3kKPyz 24UMPvaGdzN/N7cJebc03jSvUQrNNQDsAGvmtXCwsBaRMGQ+ab0NHJf7ExYeqRd2rX UvmtHG3MSPe+A== 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 DF464C48BF3; Thu, 15 Feb 2024 23:48:52 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Fri, 16 Feb 2024 07:48:57 +0800 Subject: [PATCH 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 Message-Id: <20240216-net-v1-5-e0ad972cda99@outlook.com> References: <20240216-net-v1-0-e0ad972cda99@outlook.com> In-Reply-To: <20240216-net-v1-0-e0ad972cda99@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=1708040932; l=720; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=CtG+9hi3qtkcoLBxP9QyjEY1uFXvU0ZodPoAkWSo5gY=; b=QYzvW4P72cPyxM2AbyfFSJt2FcuisIbXKazfDqJmZjikuu0+PGGVfGoZIQp9ItG0BfwcVzdZi zTb/uLSG2FlAsq98RLH7FSW6dh0A+HZLyd1VlGAeE4umBRxqA2QYOY+ 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: 1791010876677138492 X-GMAIL-MSGID: 1791010876677138492 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;