2012-05-11 19:50:05

by Bouterse, Robert

[permalink] [raw]
Subject: Re: ath9k_htc fails with

Sujith Manoharan <c_manoha@...> writes:

>
> David Madore wrote:
> > In other words: loading the module seems to place the dongle in a bad
> > state that goes away after ifconfig up (but not by removing the
> > modules), and if a reboot happens while the dongle is in that bad
> > state, it will fail permanently.
>
> Right, there's a difference here, a 'reboot' of the card is done only when
> if the interface is brought up. The device status from the USB subsystem
> is used to handle this - it works on x86.
>
> On your platform, I think that a full reboot is required even when doing just
> a simple load/unload cycle. I'll come up with a patch to test this.
>
> Thanks for the detailed log.
>
> Sujith
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@...
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
Hi Sujith,
I seem to running into this same issue, mine is that the driver emits the
"Target unresponsive" error if the unit is powered-up with the TL-WN721N plugged
in already. I think my issue is that the USB subsytem event is not recieved by
the atk9k_htc driver, and therefore the hardware is not reset.

Has this ben fixed already? Can you give me the commit sha1 in wireless-testing?
I am using compat-wireless, so I am lagging master a bit.

If not, can you point me at where in the driver code the reset happens? Maybe I
can come up with a patch.




2012-05-14 09:20:23

by Sujith Manoharan

[permalink] [raw]
Subject: Re: ath9k_htc fails with

Robert Bouterse wrote:
> I seem to running into this same issue, mine is that the driver emits the
> "Target unresponsive" error if the unit is powered-up with the TL-WN721N plugged
> in already. I think my issue is that the USB subsytem event is not recieved by
> the atk9k_htc driver, and therefore the hardware is not reset.
>
> Has this ben fixed already? Can you give me the commit sha1 in wireless-testing?
> I am using compat-wireless, so I am lagging master a bit.
>
> If not, can you point me at where in the driver code the reset happens? Maybe I
> can come up with a patch.

You can play around with the function ath9k_hif_usb_disconnect() in
drivers/net/wireless/ath/ath9k/hif_usb.c which has the deinit/reboot code. :)

Sujith

2012-05-14 22:23:42

by Bouterse, Robert

[permalink] [raw]
Subject: RE: ath9k_htc fails with

RllJLCBJZiB5b3UgYXJlIGludGVyZXN0ZWQgaW4gd2hlcmUgSSBoYXZlIGdvdHRlbiB3aXRoIHRo
aXMsIGxldCBtZSBleHBsYWluOg0KSSBoYXZlIHRoZSBUTC1XTjcyMU4gcGx1Z2dlZCBpbnRvIGEg
c2VsZiBwb3dlcmVkIGh1Yi4NCkkgYW0gcnVubmluZyBvbiBhIEZyZWVzY2FsZSBpTVg1MF9yZDMg
RVZNLg0KDQpJIGhhdmUgZm91bmQgdGhhdCB0aGUgdXNiIGRpc2Nvbm5lY3QgY2FsbGJhY2sgZG9l
cyBub3QgYWx3YXlzIGdldCBjYWxsZWQsIGZvciBpbnN0YW5jZSBvbiBzaHV0ZG93bi4NCg0KV2hl
biB0aGUgZGV2aWNlIGlzIGluIHRoZSBVbnJlc3BvbnNpdmUgc3RhdGUsIEkgZ2V0IHRoZSBmb2xs
aW5nIHN0YXRlIG91dHB1dCBvbiBtb2R1bGUgbG9hZDoNCg0KCXVzYiAyLTEuMzogYXRoOWtfaHRj
OiBUcmFuc2ZlcnJlZCBGVzogaHRjXzkyNzEuZncsIHNpemU6IDUxMjcyICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICANCglhdGg5a19odGMgMi0xLjM6MS4wOiBhdGg5
a19odGM6IFRhcmdldCBpcyB1bnJlc3BvbnNpdmUgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgDQoJRmFpbGVkIHRvIGluaXRpYWxpemUgdGhlIGRldmlj
ZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgIA0KCXVzYiAyLTEuMzogYXRoOWtfaGlmX3VzYl9kZXZfZGVpbml0
OjEwNjUgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICANCglhdGg5a19oaWZfdXNiX2Rldl9kZWluaXQ6MTA2NiAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgDQoJdXNiIDItMS4zOiBhdGg5a19odGM6IFVTQiBTdGF0ZSA3LCB1bnBsdWdnZWQg
PSAwLCBoaWZfZGV2LT5mbGFncyA9IDAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgIA0KCXVzYiAyLTEuMzogYXRoOWtfaHRjOiBVU0IgbGF5ZXIgZGVpbml0aWFsaXplZA0KDQpJ
IGFkZGVkIHRoZSBsb2cgc3RhdGVtZW50IHRvIGdldCB0aGUgc3RhdGUganVzdCBiZW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AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICANCgl1c2IgMi0xLjM6IGF0aDlrX2h0YzogVVNCIHJlYm9vdCBmYWlsZWQgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgDQoJ
dXNiIDItMS4zOiBhdGg5a19odGM6IFVTQiBsYXllciBkZWluaXRpYWxpemVkICANCg0KU28sIGl0
IG1heSBiZSB0aGF0IHRoZSBkZXZpY2UgaXMgbm90IGNhcGFibGUgb2YgcHJvY2Vzc2luZyB0aGUg
cmVib290IGNvbW1hbmQgaW4gdGhpcyBzdGF0ZS4NCg0KSSBhcHBvbG9naXplIGZvciBteSBpbmV4
cGVyaWVuY2Ugd2l0aCB0aGUgdXNiIGFwaXMuDQoNCi8qLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLSovDQpCb2IgQm91dGVyc2UNClNlbmlvciBTb2Z0d2FyZSBFbmdpbmVl
cg0KTXVsdGltZWRpYSBEZXZlbG9wbWVudCBDZW50ZXINCkQmTSBIb2xkaW5ncyBJbmMuDQpodHRw
Oi8vd3d3LmRtLWhvbGRpbmdzLmNvbQ0KX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fXw0KRnJvbTogU3VqaXRoIE1hbm9oYXJhbiBbY19tYW5vaGFAcWNhLnF1YWxjb21tLmNv
bV0NClNlbnQ6IE1vbmRheSwgTWF5I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