Re: [PATCH v3] watchdog: Add driver for Gunyah Watchdog
From: Hrishabh Rajput
Date: Tue Oct 28 2025 - 06:58:18 EST
On 10/28/2025 3:10 PM, Krzysztof Kozlowski wrote:
On 28/10/2025 10:35, Hrishabh Rajput via B4 Relay wrote:
+I don't think you implemented my feedback. This again is executed on
+static int __init gunyah_wdt_init(void)
+{
+ struct arm_smccc_res res;
+ struct device_node *np;
+ int ret;
+
+ /* Check if we're running on a Qualcomm device */
+ np = of_find_compatible_node(NULL, NULL, "qcom,smem");
every platform, e.g. on Samsung, pointlessly.
Implement previous feedback.
Do you want us to add platform device from another driver which is probed only on Qualcomm devices (like socinfo from previous discussion) and get rid of the module init function entirely? As keeping anything in the module init will get it executed on all platforms.
With this patch version, we have tried to reduce the code execution on non-Qualcomm devices (also tried the alternative as mentioned in the cover letter). Adding platform device from another driver as described above would eliminate it entirely, please let us know if you want us to do that.
Thanks,
Hrishabh