drivers: firmware: ti_sci: Add DM_FLAG_PRE_RELOC to driver
authorManorit Chawdhry <m-chawdhry@ti.com>
Tue, 17 Dec 2024 08:54:37 +0000 (14:24 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 31 Dec 2024 23:55:02 +0000 (17:55 -0600)
commit998e00cfcedf22a19efbde116f4a9bb1bdd775f7
tree4437e7474f4f8775f27d005332018b31ff507d3f
parent8fa355d822f0bf9e90ce80d39fff64e0f32d7695
drivers: firmware: ti_sci: Add DM_FLAG_PRE_RELOC to driver

Currently the driver relies on bootph flag to probe it during PRE_RELOC
stage but with the upcoming cleanup of v6.13, we don't have the bootph
property in the parent nodes anymore and ti_sci driver being one of the
parent nodes required during SPL stage would end up hampering the probe
model [0].

Add DM_FLAG_PRE_RELOC to ti_sci driver for mitigating this issue.

[0]: https://source.denx.de/u-boot/custodians/u-boot-dm/-/issues/21

Suggested-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
drivers/firmware/ti_sci.c