Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: sh: rz-ssi: Use SSIFCR_FIFO_RST macro

Use SSIFCR_FIFO_RST macro to make the line shorter.

Suggested-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20241003081140.31332-1-biju.das.jz@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Biju Das and committed by
Mark Brown
64207f80 6061483d

+2 -4
+2 -4
sound/soc/sh/rz-ssi.c
··· 311 311 ssicr |= SSICR_CKDV(clk_ckdv); 312 312 ssicr |= SSICR_DWL(1) | SSICR_SWL(3); 313 313 rz_ssi_reg_writel(ssi, SSICR, ssicr); 314 - rz_ssi_reg_writel(ssi, SSIFCR, 315 - (SSIFCR_AUCKE | SSIFCR_TFRST | SSIFCR_RFRST)); 314 + rz_ssi_reg_writel(ssi, SSIFCR, SSIFCR_AUCKE | SSIFCR_FIFO_RST); 316 315 317 316 return 0; 318 317 } ··· 342 343 dev_info(ssi->dev, "timeout waiting for SSI idle\n"); 343 344 344 345 /* Hold FIFOs in reset */ 345 - rz_ssi_reg_mask_setl(ssi, SSIFCR, 0, 346 - SSIFCR_TFRST | SSIFCR_RFRST); 346 + rz_ssi_reg_mask_setl(ssi, SSIFCR, 0, SSIFCR_FIFO_RST); 347 347 } 348 348 349 349 static int rz_ssi_start(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm)