Re: [PATCH v6 11/11] ASoC: renesas: fsi: Add SPU clock control in hw_startup/shutdown
From: Mark Brown
Date: Tue Jun 09 2026 - 19:25:10 EST
On Tue, Jun 09, 2026 at 06:38:36PM +0700, phucduc.bui@xxxxxxxxx wrote:
> @@ -1560,6 +1560,11 @@ static int fsi_hw_startup(struct fsi_priv *fsi,
> struct device *dev)
> {
> u32 data = 0;
> + int ret;
> + /* enable spu bus bridge clock */
> + ret = clk_enable(fsi->master->clk_spu);
> + if (ret)
> + return ret;
This is unconditional...
> static int fsi_hw_shutdown(struct fsi_priv *fsi,
> struct device *dev)
> {
> + int ret;
> /* stop master clock */
> - if (fsi_is_clk_master(fsi))
> - return fsi_clk_disable(dev, fsi);
> + if (fsi_is_clk_master(fsi)) {
> + ret = fsi_clk_disable(dev, fsi);
> + if (ret)
> + return ret;
> + }
> + /* stop spu bus bridge clock */
> + clk_disable(fsi->master->clk_spu);
...but the matching disable is skipped if !fsi_is_clk_master().
Attachment:
signature.asc
Description: PGP signature