Re: [PATCH v3 4/4] watchdog: qcom: add support to read the restart reason from IMEM

From: Kathiravan Thirumoorthy
Date: Fri May 02 2025 - 12:31:25 EST



On 5/2/2025 8:24 PM, Dmitry Baryshkov wrote:
+static int qcom_wdt_get_restart_reason(struct qcom_wdt *wdt,
+ const struct qcom_wdt_match_data *data)
+{
+ struct regmap *imem;
+ unsigned int val;
+ int ret;
+
+ imem = syscon_regmap_lookup_by_compatible(data->imem_compatible);
+ if (IS_ERR(imem))
+ return PTR_ERR(imem);
Why? Just pass the syscon directly via DT.


Ack. As replied to Konrad, will rework this.