2012-11-12 13:34:52

by Corey Richardson

[permalink] [raw]
Subject: ath9k_htc-based adapter unfunctioning after commit ceb26a6013

I was giving 3.7-rc4 a whirl when I discovered my wireless adapter [0] wasn't
working: the LED didn't light up. Went and ran 'ip link' and it just hung there.
Tried a few other things and discovered that sudo was broken too. With
strace I found that they were hanging in sendto().

If I then unplug the adapter, everything comes out of the hang.

Bisected and found that commit ceb26a6013b962b82f644189ea29d802490fc8fc is
to blame.

Attached is my .config,. The complete dmesg is attached, as well as
dmesg_disconnect which is what gets spat out on disconnect of the device.
strace is an strace of 'ip link'.

I feel like I haven't given enough information; anything else needed?

(Please CC me in any reply to a list; I am not subscribed to them)

[0] - http://support.netgear.com/product/WNA1100

--
Corey Richardson


Attachments:
dmesg (63.29 kB)
strace (2.49 kB)
.config (67.17 kB)
dmesg_disconnect (854.00 B)
Download all attachments

2012-11-12 21:49:17

by Corey Richardson

[permalink] [raw]
Subject: Re: ath9k_htc-based adapter unfunctioning after commit ceb26a6013

On Mon, Nov 12, 2012 at 4:39 PM, Adrian Chadd <[email protected]> wrote:
> Hi!
>
> Please create a bugzilla.kernel.org ticket with this info?
>

https://bugzilla.kernel.org/show_bug.cgi?id=50441

--
Corey Richardson

2012-11-12 21:39:34

by Adrian Chadd

[permalink] [raw]
Subject: Re: ath9k_htc-based adapter unfunctioning after commit ceb26a6013

Hi!

Please create a bugzilla.kernel.org ticket with this info?

Thanks,



adrian


On 12 November 2012 05:34, Corey Richardson <[email protected]> wrote:
> I was giving 3.7-rc4 a whirl when I discovered my wireless adapter [0] wasn't
> working: the LED didn't light up. Went and ran 'ip link' and it just hung there.
> Tried a few other things and discovered that sudo was broken too. With
> strace I found that they were hanging in sendto().
>
> If I then unplug the adapter, everything comes out of the hang.
>
> Bisected and found that commit ceb26a6013b962b82f644189ea29d802490fc8fc is
> to blame.
>
> Attached is my .config,. The complete dmesg is attached, as well as
> dmesg_disconnect which is what gets spat out on disconnect of the device.
> strace is an strace of 'ip link'.
>
> I feel like I haven't given enough information; anything else needed?
>
> (Please CC me in any reply to a list; I am not subscribed to them)
>
> [0] - http://support.netgear.com/product/WNA1100
>
> --
> Corey Richardson

2012-11-13 07:28:23

by Sujith Manoharan

[permalink] [raw]
Subject: ath9k_htc-based adapter unfunctioning after commit ceb26a6013

Corey Richardson wrote:
> I was giving 3.7-rc4 a whirl when I discovered my wireless adapter [0] wasn't
> working: the LED didn't light up. Went and ran 'ip link' and it just hung there.
> Tried a few other things and discovered that sudo was broken too. With
> strace I found that they were hanging in sendto().
>
> If I then unplug the adapter, everything comes out of the hang.
>
> Bisected and found that commit ceb26a6013b962b82f644189ea29d802490fc8fc is
> to blame.

I can see this issue too. I am not entirely convinced that the commit in
question is valid. If a HW reset fails for some reason in start(), bailing
out seems the right thing to do instead of continuing to fiddle with the HW
and silently returning a success code to mac80211.

I was able to bring up the device with this patch.

diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 756191b..e06bcec 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -1456,7 +1456,7 @@ static bool ath9k_hw_set_reset_reg(struct ath_hw *ah, u32 type)
switch (type) {
case ATH9K_RESET_POWER_ON:
ret = ath9k_hw_set_reset_power_on(ah);
- if (!ret)
+ if (ret)
ah->reset_power_on = true;
break;
case ATH9K_RESET_WARM:

Sujith

2012-11-12 21:03:37

by Andreas Philipp

[permalink] [raw]
Subject: Re: [ath9k-devel] ath9k_htc-based adapter unfunctioning after commit ceb26a6013

Hello,

I am experiencing exactly the same problem. I will try to revert the
commit in question tomorrow and report the result.

Thanks,
Andreas Philipp

On 11/12/2012 02:34 PM, Corey Richardson wrote:
> I was giving 3.7-rc4 a whirl when I discovered my wireless adapter [0] wasn't
> working: the LED didn't light up. Went and ran 'ip link' and it just hung there.
> Tried a few other things and discovered that sudo was broken too. With
> strace I found that they were hanging in sendto().
>
> If I then unplug the adapter, everything comes out of the hang.
>
> Bisected and found that commit ceb26a6013b962b82f644189ea29d802490fc8fc is
> to blame.
>
> Attached is my .config,. The complete dmesg is attached, as well as
> dmesg_disconnect which is what gets spat out on disconnect of the device.
> strace is an strace of 'ip link'.
>
> I feel like I haven't given enough information; anything else needed?
>
> (Please CC me in any reply to a list; I am not subscribed to them)
>
> [0] - http://support.netgear.com/product/WNA1100
>
> --
> Corey Richardson
>
>
> _______________________________________________
> ath9k-devel mailing list
> [email protected]
> https://lists.ath9k.org/mailman/listinfo/ath9k-devel