rz-ssi.c (d40dfb860ad72a32b9c2aeae739a2725f8ce011a) | rz-ssi.c (1b5d1d3a2f77250707225509cadc17997bab4353) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2// 3// Renesas RZ/G2L ASoC Serial Sound Interface (SSIF-2) Driver 4// 5// Copyright (C) 2021 Renesas Electronics Corp. 6// Copyright (C) 2019 Chris Brandt. 7// 8 --- 354 unchanged lines hidden (view full) --- 363 /* Clear all error flags */ 364 rz_ssi_reg_mask_setl(ssi, SSISR, 365 (SSISR_TOIRQ | SSISR_TUIRQ | SSISR_ROIRQ | 366 SSISR_RUIRQ), 0); 367 368 /* Wait for idle */ 369 timeout = 100; 370 while (--timeout) { | 1// SPDX-License-Identifier: GPL-2.0 2// 3// Renesas RZ/G2L ASoC Serial Sound Interface (SSIF-2) Driver 4// 5// Copyright (C) 2021 Renesas Electronics Corp. 6// Copyright (C) 2019 Chris Brandt. 7// 8 --- 354 unchanged lines hidden (view full) --- 363 /* Clear all error flags */ 364 rz_ssi_reg_mask_setl(ssi, SSISR, 365 (SSISR_TOIRQ | SSISR_TUIRQ | SSISR_ROIRQ | 366 SSISR_RUIRQ), 0); 367 368 /* Wait for idle */ 369 timeout = 100; 370 while (--timeout) { |
371 if (rz_ssi_reg_readl(ssi, SSISR) | SSISR_IIRQ) | 371 if (rz_ssi_reg_readl(ssi, SSISR) & SSISR_IIRQ) |
372 break; 373 udelay(1); 374 } 375 376 if (!timeout) 377 dev_info(ssi->dev, "timeout waiting for SSI idle\n"); 378 379 /* Hold FIFOs in reset */ --- 684 unchanged lines hidden --- | 372 break; 373 udelay(1); 374 } 375 376 if (!timeout) 377 dev_info(ssi->dev, "timeout waiting for SSI idle\n"); 378 379 /* Hold FIFOs in reset */ --- 684 unchanged lines hidden --- |