From: "Petr Štetiar" <ynezz@true.cz>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] ath9k_htc, 2.6.36 and "Target is unresponsive" error
Date: Mon, 22 Nov 2010 10:14:22 +0100 [thread overview]
Message-ID: <20101122091422.GD2530@ibawizard.net> (raw)
In-Reply-To: <AANLkTin6eJT=OXhybKrjnk4nbPdYK1XZzhC7+qQtOdX2@mail.gmail.com>
Mohammed Shafi <shafi.wireless@gmail.com> [2010-11-22 11:15:17]:
> On Fri, Nov 19, 2010 at 4:35 PM, Petr ?tetiar <ynezz@true.cz> wrote:
> >
> > 1. line 128 in htc_drv_init.c time_left =
> > wait_for_completion_timeout(&priv->htc->target_wait, HZ);
> Can you please try out .. htc_drv_init.c time_left =
> wait_for_completion_timeout(&priv->htc->target_wait, HZ/4); this should
> obviously fail
I'll try that later today, but it I think, that it will fail also.
> htc_drv_init.c time_left =
> wait_for_completion_timeout(&priv->htc->target_wait, 30*HZ);
I've even tried 100*HZ, but it fails anyway and I think, that the root of the
problem is somewhere else. This point is just the consequence of the failure
in htc_process_target_ready(), so even adding the 1000*HZ wouldn't help it
much :-)
As I understand it, host downloads the firmware to the MCU with
FIRMWARE_DOWNLOAD, then if it's sending of the firmware complete the host
sends FIRMWARE_DOWNLOAD_COMP and then MCU should respond with
HTC_MSG_READY_ID, but it didn't in my case for some reason. It's responding
with msg 0x18 on USB endpoint 0x1, instead of msg 0x1(HTC_MSG_READY_ID) on USB
endpoint 0.
I don't have the sources of the firmware, so I don't know how it works
internally, but maybe it's just wrong timing assumption somewhere or something
similar. That ARM board I'm using is kind of slow, it's like 200MHz(99
Bogomips), so everything takes quite longer time to complete, than on one is
used on desktop PC.
-- ynezz
next prev parent reply other threads:[~2010-11-22 9:14 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-19 11:05 [ath9k-devel] ath9k_htc, 2.6.36 and "Target is unresponsive" error Petr Štetiar
2010-11-19 12:06 ` Mohammed Shafi
2010-11-19 12:27 ` Petr Štetiar
2010-11-19 18:34 ` Petr Štetiar
2010-11-20 13:59 ` Petr Štetiar
2010-11-22 5:10 ` Mohammed Shafi
2010-11-22 8:40 ` Petr Štetiar
2010-11-22 5:45 ` Mohammed Shafi
2010-11-22 9:14 ` Petr Štetiar [this message]
2010-11-22 9:42 ` Mohammed Shafi
2010-11-22 11:30 ` Petr Štetiar
2010-11-22 13:41 ` Mohammed Shafi
2010-11-22 15:47 ` Petr Štetiar
2010-12-03 10:36 ` Rajkumar Manoharan
2010-12-03 11:33 ` Rajkumar Manoharan
2010-12-06 18:27 ` Petr Štetiar
2011-07-30 13:23 ` [ath9k-devel] ath9k_htc, 2.6.36 and Levi Civita
2011-08-01 4:38 ` Mohammed Shafi
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=20101122091422.GD2530@ibawizard.net \
--to=ynezz@true.cz \
--cc=ath9k-devel@lists.ath9k.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.