[PATCH v1] misc: qcom-geni: add DM_FLAG_PRE_RELOC to geni-se-qup driver

Gurumoorthy Santhakumar gurumoorthy.santhakumar at oss.qualcomm.com
Wed Jun 3 14:16:29 CEST 2026


Hi Casey,
Thanks  for the feedback, please find my reply below,

On 5/26/2026 8:26 PM, Casey Connolly wrote:
>
> On 24/05/2026 07:03, Gurumoorthy Santhakumar wrote:
>> The GENI SE QUP wrapper driver (geni-se-qup) needs to be bound during
>> pre-relocation to allow its child devices (such as the debug UART) to
>> be discovered and probed before relocation.
>>
>> Without DM_FLAG_PRE_RELOC, the qupv3 device is skipped during the
>> pre-relocation DM scan, which prevents early serial devices from
>> being bound. This causes serial_find_console_or_panic() to fail with
>> "No serial driver found" during serial_init().
>>
>> Add DM_FLAG_PRE_RELOC to the geni_se_qup driver so that the GENI SE
>> QUP wrapper and its children are bound during pre-relocation, enabling
>> the serial console to be initialized correctly.
> This is a non-issue if you correctly set /chosen/stdout-path in your
> DTB. I'd rather minimise the devices we probe pre-reloc and skip this
> whole dance which we will do once we get
> https://lore.kernel.org/u-boot/20260401-casey-ccf-compat-v2-2-414d5b7f040b@linaro.org/
I've addressed in v2 patch
>
> Kind regards,
>
>> Signed-off-by: Gurumoorthy Santhakumar <gurumoorthy.snthakumar at oss.qualcomm.com>
>> ---
>>   drivers/misc/qcom_geni.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/misc/qcom_geni.c b/drivers/misc/qcom_geni.c
>> index a62ae6a2478..cbad7bd3bd2 100644
>> --- a/drivers/misc/qcom_geni.c
>> +++ b/drivers/misc/qcom_geni.c
>> @@ -576,5 +576,5 @@ U_BOOT_DRIVER(geni_se_qup) = {
>>   	.of_match = geni_ids,
>>   	.of_to_plat = geni_se_of_to_plat,
>>   	.plat_auto = sizeof(struct geni_se_plat),
>> -	.flags = DM_FLAG_DEFAULT_PD_CTRL_OFF,
>> +	.flags = DM_FLAG_PRE_RELOC | DM_FLAG_DEFAULT_PD_CTRL_OFF,
>>   };


More information about the U-Boot mailing list