From: Mark Brown Subject: Re: AC97 reset fail after suspend Date: Thu, 14 May 2009 15:25:10 +0100 Message-ID: <20090514142509.GM28291@sirena.org.uk> References: <200905080148.20137.sleep_walker@suse.cz> <200905140357.35682.marek.vasut@gmail.com> <20090514123241.GL28291@sirena.org.uk> <200905141551.37422.marek.vasut@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cassiel.sirena.org.uk (cassiel.sirena.org.uk [80.68.93.111]) by alsa0.perex.cz (Postfix) with ESMTP id 99718103978 for ; Thu, 14 May 2009 16:25:10 +0200 (CEST) Content-Disposition: inline In-Reply-To: <200905141551.37422.marek.vasut@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Marek Vasut Cc: alsa-devel@alsa-project.org, Tomas 'Sleep_Walker' Cech , linux-arm-kernel@lists.arm.linux.org.uk List-Id: alsa-devel@alsa-project.org On Thu, May 14, 2009 at 03:51:37PM +0200, Marek Vasut wrote: > On Thursday 14 of May 2009 14:32:41 Mark Brown wrote: > > needed to start the link. I'll need to check but IIRC the WM9712 runs > > the link by default and I can't see any changes to this behaviour in the > > driver changelog. > Well without this, the codec doesn't kick in (reading the registers returns > all zeros) so I assume that's the same issue as on wm9713. OK, I've checked - there is actually a resistor strap option on the CODEC to control if the device powers on with the AC97 link enabled or disabled by default. This must be the first Linux device that chooses the second option, I guess. A version of your patch would be good, but it should check for warm reset support in the AC97 controller before it tries to use it since the chip won't always need the warm reset.