]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: qcom: scm: Register gunyah watchdog device
authorHrishabh Rajput <hrishabh.rajput@oss.qualcomm.com>
Wed, 11 Mar 2026 05:46:30 +0000 (11:16 +0530)
committerBjorn Andersson <andersson@kernel.org>
Mon, 30 Mar 2026 14:10:24 +0000 (09:10 -0500)
commit07b9712339e3ce1d183adef996c0f317adc9848d
treec17a13d208a003604440b929b160324cc9781eae
parentf55fa3e3dcd8f766266fdf878994f0ec09459a7d
firmware: qcom: scm: Register gunyah watchdog device

To restrict Gunyah watchdog initialization to Qualcomm platforms running
under the Gunyah Hypervisor, register the watchdog device in the QCOM
SCM driver.

When Gunyah is not present or Gunyah emulates MMIO-based watchdog, we
expect Qualcomm watchdog or ARM SBSA watchdog device to be present in
the devicetree. First, we make sure we're running under the Gunyah
Hypervisor. Then we move to check if any of the above mentioned
watchdog device nodes are present, if not then we proceed to register
the SMC-based Gunyah watchdog device.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Tested-by: Shivendra Pratap <shivendra.pratap@oss.qualcomm.com>
Tested-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Hrishabh Rajput <hrishabh.rajput@oss.qualcomm.com>
Signed-off-by: Pavankumar Kondeti <pavan.kondeti@oss.qualcomm.com>
Tested-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260311-gunyah_watchdog-v8-1-4c1c0689de22@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/firmware/qcom/qcom_scm.c