From mboxrd@z Thu Jan 1 00:00:00 1970 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 DA39E26B080; Thu, 13 Feb 2025 14:53: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=1739458416; cv=none; b=f5Apyi32ejDx6UkTCTmCh0dfkZ5aDWh7WVCJV9C0b2fNg8UII6dkp3y5oUU2YomuYuX8sfZxfTAsuHU7bgbGY+6gkC/0s4q3qNpYnJMQlt2YfRhylOkTcU2iPKemNpbWOSnbLz9zQK1MzKvfHdVJZ5Hp2+XFd/DneAh+/rOIkn4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739458416; c=relaxed/simple; bh=Lbfe3ufOEu61CG45F65ERUuGai55WW8B/qFAUkLqx0M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OaDFrmW/312CABdjCQGpOEn7am0KOV2E9sVDYvTrr5sg+aeq0USUnirQ7DgnZ35vq+bpLqpVXExrfOlirsgIyO5XWMOV8eghw6gDa4lryiyhZGUOZSya6Ob1gS3Mkv4cV3FCy6uw50BDtH1mTlhnJt+d7cmciLhE4Vqei6OIkv8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=M4M3wj9I; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="M4M3wj9I" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 430A4C4CEE5; Thu, 13 Feb 2025 14:53:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1739458416; bh=Lbfe3ufOEu61CG45F65ERUuGai55WW8B/qFAUkLqx0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M4M3wj9IihiLnJI71dmPUO1j2f4VkkE4UV/UdDn2efVMOmA2sbkhfMbHR20vxpe9G lvZzOVHqgI/lvD3Ijw3uRGVCK/Hqk1G42bvoX9V6wRmCQz6i0aZujGi3PGIrSqUv65 0cD1D115HntCefAYrG5hR3T4GZU8vctkwvjflfxY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Michal Simek , stable@kernel.org, Peter Korsgaard , Alexandre Belloni Subject: [PATCH 6.12 393/422] rtc: zynqmp: Fix optional clock name property Date: Thu, 13 Feb 2025 15:29:02 +0100 Message-ID: <20250213142451.713120465@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250213142436.408121546@linuxfoundation.org> References: <20250213142436.408121546@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Michal Simek commit 2a388ff22d2cbfc5cbd628ef085bdcd3b7dc64f5 upstream. Clock description in DT binding introduced by commit f69060c14431 ("dt-bindings: rtc: zynqmp: Add clock information") is talking about "rtc" clock name but driver is checking "rtc_clk" name instead. Because clock is optional property likely in was never handled properly by the driver. Fixes: 07dcc6f9c762 ("rtc: zynqmp: Add calibration set and get support") Signed-off-by: Michal Simek Cc: stable@kernel.org Reviewed-by: Peter Korsgaard Link: https://lore.kernel.org/r/cd5f0c9d01ec1f5a240e37a7e0d85b8dacb3a869.1732723280.git.michal.simek@amd.com Signed-off-by: Alexandre Belloni Signed-off-by: Greg Kroah-Hartman --- drivers/rtc/rtc-zynqmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/rtc/rtc-zynqmp.c +++ b/drivers/rtc/rtc-zynqmp.c @@ -318,8 +318,8 @@ static int xlnx_rtc_probe(struct platfor return ret; } - /* Getting the rtc_clk info */ - xrtcdev->rtc_clk = devm_clk_get_optional(&pdev->dev, "rtc_clk"); + /* Getting the rtc info */ + xrtcdev->rtc_clk = devm_clk_get_optional(&pdev->dev, "rtc"); if (IS_ERR(xrtcdev->rtc_clk)) { if (PTR_ERR(xrtcdev->rtc_clk) != -EPROBE_DEFER) dev_warn(&pdev->dev, "Device clock not found.\n");