Re: [PATCH] staging: most: dim2: use dev_err_probe() for clock errors in rcar enable functions
From: Batu Ada Tutkun
Date: Tue Jun 23 2026 - 13:42:10 EST
Yes, this was drafted with AI assistance. Thank you for pointing it out.
You are right that the error code was not broken here. rcar_gen2 and gen3 already return PTR_ERR(dev->clk), so unlike the fsl_mx6 case there is no -EFAULT bug to fix. This is just a consistency cleanup, plus devm_clk_get() can return -EPROBE_DEFER when the clock provider has not registered yet so dev_err_probe() suppresses the misleading "cannot get clock" message during a normal deferred probe.
clk_prepare_enable() can't return -EPROBE_DEFER. By the time it is called the clock handle is already acquired and deferral only happens at acquisition. Because of that I deliberately left that path as dev_err().
Compile tested only. I do not have R-Car hardware.
Regards,
Batu Ada Tutkun