Return-path: Received: from rv-out-0506.google.com ([209.85.198.225]:10990 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751648AbYEOQpd (ORCPT ); Thu, 15 May 2008 12:45:33 -0400 Received: by rv-out-0506.google.com with SMTP id l9so595566rvb.1 for ; Thu, 15 May 2008 09:45:32 -0700 (PDT) Message-ID: (sfid-20080515_184537_460826_9C556202) Date: Thu, 15 May 2008 12:45:32 -0400 From: "Bob Copeland" To: "Zack Weinberg" Subject: Re: Getting ath5k driver working with Thinkpad T61 [168c:1014] Cc: linux-wireless@vger.kernel.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, May 15, 2008 at 10:41 AM, Zack Weinberg wrote: >> Interesting... can you confirm that madwifi also will not start from a cold >> boot? > > Yes, madwifi will not start from a cold boot. Ugh, well that is not good. Does ndiswrapper work? Unless anyone else has ideas, I would suggest capturing a trace using mmiotrace and ndiswrapper to see what is going on. Someone on ath5k-devel list might have a better idea. >> Perhaps the best thing to do is add printks to ath5k_hw_nic_wakeup and see >> where it hangs? > > It's not hanging. The very first call to ath5k_hw_set_power(ah, > AR5K_PM_AWAKE, true, 0); from ath5k_hw_nic_wakeup fails with -EIO, and > the driver gives up. By 'hanging' I mean the register writes cease to do anything useful and the card basically stops responding until you power off. Madwifi will even give "Card didn't behave as expected" in this case. -EIO means it couldn't wake up the chip after 1s, so if the first call to ath5k_hw_set_power that doesn't work, we'll need a trace to see what differences there are in a working setup. -- Bob Copeland %% www.bobcopeland.com