[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f6f17489-19ec-4956-ace4-47ec93081359@oss.qualcomm.com>
Date: Wed, 30 Apr 2025 16:28:35 +0200
From: Konrad Dybcio <konrad.dybcio@....qualcomm.com>
To: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@....qualcomm.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konradybcio@...nel.org>,
Wim Van Sebroeck <wim@...ux-watchdog.org>,
Guenter Roeck
<linux@...ck-us.net>,
Rajendra Nayak <quic_rjendra@...cinc.com>
Cc: linux-arm-msm@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-watchdog@...r.kernel.org
Subject: Re: [PATCH v2 5/5] watchdog: qcom: add support to read the restart
reason from IMEM
On 4/17/25 8:19 AM, Kathiravan Thirumoorthy wrote:
>
> On 4/16/2025 8:21 PM, Konrad Dybcio wrote:
>>> .max_tick_count = 0xFFFFFU,
>>> };
>>> +static int qcom_wdt_get_restart_reason(struct qcom_wdt *wdt,
>> double space> + const struct qcom_wdt_match_data *data)
>>
>> Please align this
>
>
> Ack.
>
>
>>> +{
>>> + struct regmap *imem;
>>> + unsigned int val;
>>> + int ret;
>>> +
>>> + imem = syscon_regmap_lookup_by_compatible(data->compatible);
>> I still think nvmem could be better here, as it allows to plug in
>> more magic values
>
>
> Sure, I will be on vacation next week. I shall check on how to use nvmem here once I'm back.
We talked offline and I learned that IMEM is not in fact non-volatile, so
while good looking, the nvram APIs are probably not really fit for it.
Let's continue with the syscon approach.
Konrad
Powered by blists - more mailing lists