Re: [PATCH v3 07/10] ASoC: renesas: fsi: refactor clock initialization
From: Bui Duc Phuc
Date: Mon May 11 2026 - 06:23:43 EST
Hi Mark, Morimoto-san,
Thank you both for the review.
>We ignore the return value from fsi_clk_init() which means deferred
>probe won't work (as well as fatal errors).
I will update the fsi_clk_init() side as follows:
if (!master->clk_spu) {
master->clk_spu = devm_clk_get_optional(dev, "spu");
if (IS_ERR(master->clk_spu))
return dev_err_probe(dev, PTR_ERR(master->clk_spu),
"Can't get spu clock\n");
}
The probe function will also be updated as follows:
ret = fsi_clk_init();
if (ret)
return ret;
Do you think this approach looks okay?
>Below parts are clock->xxx cleanup code, not refactor clocks initialization ?
>Please separate it into cleanup part and refactor part.
Understood. I will split the current patch into two separate patches:
cleanup patch: includes the changes converting to devm_clk_get_optional()
refactor patch: includes the remaining changes such as updating
function arguments,
moving the function call locations, and adding handling in the
set_rate() functions, etc.
Best regards,
Phuc