All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: hda: Remove finite loop from snd_hdac_sync_power_state()
@ 2018-02-13  9:09 abhijeet.kumar
  2018-02-13  9:14 ` Takashi Iwai
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: abhijeet.kumar @ 2018-02-13  9:09 UTC (permalink / raw)
  To: tiwai, abhijeet.kumar, intel-gfx

From: Abhijeet Kumar <abhijeet.kumar@intel.com>

Finite loop was causing few igt@pm_rpm tests failure for HSW and BDW.
Thus changing it back to infinite one.

References: https://bugs.freedesktop.org/show_bug.cgi?id=105069

Signed-off-by: Abhijeet Kumar <abhijeet.kumar@intel.com>
---
 sound/hda/hdac_device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/hda/hdac_device.c b/sound/hda/hdac_device.c
index 7ba100bb1c3f..5a1dd570cea7 100644
--- a/sound/hda/hdac_device.c
+++ b/sound/hda/hdac_device.c
@@ -1079,9 +1079,9 @@ unsigned int snd_hdac_sync_power_state(struct hdac_device *codec,
 			hda_nid_t nid, unsigned int power_state)
 {
 	unsigned long end_time = jiffies + msecs_to_jiffies(500);
-	unsigned int state, actual_state, count;
+	unsigned int state, actual_state;
 
-	for (count = 0; count < 500; count++) {
+	for (; ;) {
 		state = snd_hdac_codec_read(codec, nid, 0,
 				AC_VERB_GET_POWER_STATE, 0);
 		if (state & AC_PWRST_ERROR) {
-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-02-13 14:14 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-13  9:09 [PATCH] ALSA: hda: Remove finite loop from snd_hdac_sync_power_state() abhijeet.kumar
2018-02-13  9:14 ` Takashi Iwai
2018-02-13  9:42 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-02-13  9:45   ` Chris Wilson
2018-02-13 10:12     ` Kumar, Abhijeet
2018-02-13 10:36   ` Saarinen, Jani
2018-02-13 10:24 ` [PATCH v2] " abhijeet.kumar
2018-02-13 12:41   ` Kumar, Abhijeet
2018-02-13 12:47     ` Chris Wilson
2018-02-13 13:11       ` Kumar, Abhijeet
2018-02-13 13:29       ` Takashi Iwai
2018-02-13 13:51       ` Kumar, Abhijeet
2018-02-13 12:50   ` Jani Nikula
2018-02-13 11:02 ` ✓ Fi.CI.BAT: success for ALSA: hda: Remove finite loop from snd_hdac_sync_power_state() (rev2) Patchwork
2018-02-13 14:14 ` ✗ Fi.CI.IGT: warning " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.