public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] unsafe reset in ac97_codec.c
@ 2004-02-03 15:42 Liam Girdwood
  2004-02-04 21:24 ` Jeff Garzik
  0 siblings, 1 reply; 6+ messages in thread
From: Liam Girdwood @ 2004-02-03 15:42 UTC (permalink / raw)
  To: Jeff Garzik, Linux Kernel

Hi

Does anyone know why ac97_codec.c does a register reset of the codec
during device probing. i.e.

/* probing AC97 codec, AC97 2.0 says that bit 15 of register 0x00
(reset) should 
* be read zero.
*
* FIXME: is the following comment outdated?  -jgarzik 
* Probing of AC97 in this way is not reliable, it is not even SAFE !!
*/
codec->codec_write(codec, AC97_RESET, 0L);


IMO, this is unsafe because it can also reset the codec into it's
default power state which can be "power down". This is not normally a
problem for PC's, but some battery powered devices have the default
codec state as "power down" to conserve power.

Was this introduced as a workaround for some buggy device ?
If no one objects I'll submit a patch.

Liam


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

end of thread, other threads:[~2004-02-29 18:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-03 15:42 [BUG] unsafe reset in ac97_codec.c Liam Girdwood
2004-02-04 21:24 ` Jeff Garzik
2004-02-05 16:31   ` Liam Girdwood
2004-02-05 17:59     ` Alan Cox
2004-02-26 15:55       ` Liam Girdwood
2004-02-29 18:38         ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox