linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: Yvan <yvan.labadie@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: ath6kl: AR6004 failed to start on computer boot
Date: Mon, 25 Feb 2013 13:39:49 -0600	[thread overview]
Message-ID: <512BBE05.9010006@lwfinger.net> (raw)
In-Reply-To: <loom.20130225T175854-850@post.gmane.org>

On 02/25/2013 11:19 AM, Yvan wrote:
> Kalle Valo <kvalo@...> writes:
>
>>
>> Larry Finger <Larry.Finger@...> writes:
>>
>>> On 02/21/2013 08:03 AM, Julien Massot wrote:
>>>> Hi,
>>>> I just find a quick and dirty patch to workaround this issue.
>>>> I just reset the device on initialization failure.
>>>>
>>>> I hope this helps to understand the real issue.
>>>>
>>
>> [...]
>>
>>> I am certain that the real problem here is that ath6kl is requesting
>>> firmware with a synchronous call using request_firmware() rather than
>>> with the asynchronous request_firmware_nowait(). That used to work,
>>> but updates to udev caused the firmware read operation to time out. It
>>> works after a reset because the file reading routines are now running;
>>> however, the correct fix is to rewrite the firmware reading section.
>>
>> I haven't looked at all the details yet, but AFAIK this is about cold vs
>> warm booting the chip. When rebooting the host while maintaining the
>> power to ar6004 ("warm boot") ath6kl probe fails as the chip is in odd
>> state and needs to be reset. It's not about dowloading the firmware
>> image from user space, it's about starting the firmware inside the chip.
>>
>> And besides, didn't udev finally fix that (after some "feedback" from
>> Linus) so that we don't need to change all the drivers?
>>
>
> Hi,
>
> I'm having the exact same problem than Julien, (my kernel log are _exactly_ the
> same than his).
>
> A difference on the behavior: the problem is not on reboot, it's always present
> (normal boot and reboot...).
>
> But the "quick fix" witch consist in adding "reset_device" doesn't work, it just
> goes into a loop (hardware_init fail->reset device->hardware_init fail->...)
>
> Main difference is the linux system:
> the architecture is ARM9 (armv4) with a buildroot system and kernel 3.6.7
> note: hardware USB port is usb_v1.1 only.
>
> I've tried ath6kl drivers from the kernel and the one from compat-
> driver_next(2013-02-20)
> =>same result.
>
> The wireless USB dongle is working properly on my linux computer with the same
> compat-driver and same firmware files, so it shouldn't have hardware problem
>
> Another wireless dongle based on RALINK chipset is working properly on my ARM
> system, so this shouldn't be an hardware problem from the board.

Does 'modprobe -rv ath6kl' followed by 'modprobe -r ath6kl' make it work? If so, 
then my idea about firmware loading might be correct. If not, then the problem 
is somewhere else.

Larry


  reply	other threads:[~2013-02-25 19:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-10 14:39 ath6kl: AR6004 failed to start on computer boot Julien Massot
2012-12-13 17:46 ` Kalle Valo
2013-02-15 10:09 ` Kalle Valo
2013-02-15 14:10   ` Julien Massot
2013-02-15 14:22     ` Mohammed Shafi Shajakhan
2013-02-21 14:03       ` Julien Massot
2013-02-21 14:18         ` Mohammed Shafi Shajakhan
2013-03-08 10:28           ` Kalle Valo
2013-03-12 16:15             ` Mohammed Shafi Shajakhan
2013-02-21 17:06         ` Larry Finger
2013-02-22 15:06           ` Kalle Valo
2013-02-25 17:19             ` Yvan
2013-02-25 19:39               ` Larry Finger [this message]
     [not found]                 ` <1448005898.305768.1361866657564.open-xchange@ox-webdesk.1and1.fr>
2013-02-26 14:09                   ` Larry Finger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=512BBE05.9010006@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=yvan.labadie@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).