From: Liam Girdwood Subject: Re: pxa2xx ac97 driver Date: Fri, 11 Feb 2005 12:38:46 +0000 Message-ID: <1108125526.7954.29.camel@odin.gnova.org> References: <1108123181.3181.23.camel@icampbell-debian> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from mail.perex.cz (gate.perex.cz [82.113.61.162]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id C3987206 for ; Fri, 11 Feb 2005 13:39:46 +0100 (MET) Received: from orlando.wolfsonmicro.main (unknown [212.20.225.142]) by gate.perex.cz (Perex's E-mail Delivery System) with ESMTP id 60CEB51444 for ; Fri, 11 Feb 2005 13:39:46 +0100 (MET) In-Reply-To: <1108123181.3181.23.camel@icampbell-debian> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Ian Campbell Cc: Nicolas Pitre , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Hi Ian, On Fri, 2005-02-11 at 11:59 +0000, Ian Campbell wrote: > Second issue is a bit strange. The code in the reset function does: > GCR = GCR_COLD_RST; > GCR |= GCR_PRIRDY_IEN|GCR_SECRDY_IEN; > wait_event_timeout(gsr_wq, gsr_bits & (GSR_PCR | GSR_SCR), 1); > which either causes a hang or causes repeated interrupts so that it is > impossible to see what is going on (didn't see anything from a printk in > the irq handler though). I changed it to > GCR = GCR_COLD_RST; > GCR |= GCR_CDONE_IE|GCR_SDONE_IE; > wait_event_timeout(gsr_wq, gsr_bits & (GSR_PCR | GSR_SCR), 1); > which matches the way the old OSS driver did the reset and now the > driver works great. I've not had any problems with this code on PXA27x. I know there are some differences between the PXA25x and PXA27x wrt AC97 CDONE/SDONE bits that can cause some problems. Perhaps we should use your changes for the PXA25x and Nico's for PXA27x ? Liam ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click