Linux RTC
 help / color / mirror / Atom feed
From: Johan Hovold <johan@kernel.org>
To: Gopikrishna Garmidi <gopikrishna.garmidi@oss.qualcomm.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>,
	Johan Hovold <johan+linaro@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Abel Vesa <abelvesa@kernel.org>, Rob Herring <robh@kernel.org>,
	Sibi Sankar <sibi.sankar@oss.qualcomm.com>,
	Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
	linux-rtc@vger.kernel.org, linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH] rtc: pm8xxx: Don't fail probe if the UEFI offset variable is missing
Date: Thu, 26 Nov 2026 08:01:20 +0100	[thread overview]
Message-ID: <awfZQEs2PmbPtcHM@hovoldconsulting.com> (raw)
In-Reply-To: <20261126055009.758156-1-gopikrishna.garmidi@oss.qualcomm.com>

On Wed, Nov 25, 2026 at 09:50:09PM -0800, Gopikrishna Garmidi wrote:
> On boards that set qcom,uefi-rtc-info, the RTC offset is read from the
> RTCInfo UEFI variable at probe time. Not every firmware creates this
> variable. On the Microsoft Surface Laptop 8th Edition the variable store
> is accessible but RTCInfo does not exist, so the read returns
> EFI_NOT_FOUND and the probe fails:
> 
>   rtc-pm8xxx c426000.spmi:pmic@0:rtc@6100: probe with driver
>   rtc-pm8xxx failed with error -2
> 
> As no RTC device is registered, the time can never be set and the
> variable is never created.

No, this is working as intended and the driver should not create this
variable.

If the firmware doesn't set this variable then this platform uses some
other means to store the RTC time. Please add support for that so that
the time is synchronised with UEFI setup (and any other OS).

The devicetree property in question describes how the platform works,
it's not a configuration flag.

Also see:

	https://lore.kernel.org/all/aoxrOaY7RIFEqVr2@hovoldconsulting.com/

> Treat a missing variable as a zero offset. It gets written the first
> time the time is set, as for any other offset update.
> 
> Fixes: bba38b874886 ("rtc: pm8xxx: add support for uefi offset")

This is clearly not a fix in any case.

> Signed-off-by: Gopikrishna Garmidi <gopikrishna.garmidi@oss.qualcomm.com>

Johan

      parent reply	other threads:[~2026-11-26  7:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  5:50 [PATCH] rtc: pm8xxx: Don't fail probe if the UEFI offset variable is missing Gopikrishna Garmidi
2026-11-26  5:54 ` sashiko-bot
2026-11-26  7:01 ` Johan Hovold [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awfZQEs2PmbPtcHM@hovoldconsulting.com \
    --to=johan@kernel.org \
    --cc=abelvesa@kernel.org \
    --cc=alexandre.belloni@bootlin.com \
    --cc=andersson@kernel.org \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=gopikrishna.garmidi@oss.qualcomm.com \
    --cc=johan+linaro@kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sibi.sankar@oss.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox