All of lore.kernel.org
 help / color / mirror / Atom feed
From: James <bjlockie@lockie.ca>
To: linux-usb <linux-usb@vger.kernel.org>
Subject: Re: Alfa AWUS036ACM (Mediatek MT7612U) problem
Date: Thu, 25 Jun 2020 16:58:45 -0400	[thread overview]
Message-ID: <f9f7e6ba-5d37-a42a-3de9-c97c76f8641c@lockie.ca> (raw)
In-Reply-To: <20200625183151.GA266690@rowland.harvard.edu>



On 2020-06-25 2:31 p.m., Alan Stern wrote:
> On Thu, Jun 25, 2020 at 01:08:34PM -0400, James wrote:
>> I have an Alfa AWUS036ACM (Mediatek MT7612U) on a Raspberry Pi 4. with:
>> OpenWrt SNAPSHOT r13626-751e6ab8e6 / LuCI Master git-20.175.45303-bb95e67
>> Kernel Version: 5.4.48
>>
>> # lsusb
>> Bus 002 Device 002: ID 0e8d:7612 MediaTek Inc.
>>
>> |My AP keeps dieing (I suspect when it's under load and some other condition
>> :-(). mt76x2u 2-1:1.0: error: mt76x02u_mcu_wait_resp failed with -110| I
>> tried:
>>
>> https://superuser.com/questions/176319/hard-reset-usb-in-ubuntu-10-04
> Did you try running the usbreset program described in that web page?
I don't have that program and I can't compile on that platform.
I tried the script instead of trying to cross compile.
>
>> cd /sys/bus/usb/drivers/usb
>>
>> echo 2-2 > unbind ; sleep 3 ; echo 2-2 > bind I think it should be 2-1 so I
>> tried that:
>>
>> echo 2-1 > unbind ; sleep 3 ; echo 2-1 > bind
>>
>> |[ 3539.309730] mt76x2u 2-1:1.0: firmware upload failed: -110
>> [ 3540.828260] mt76x2u: probe of 2-1:1.0 failed with error -5|
>> That didn't work.
>> Physically removing reinserting works (if I also "reset" the wifi in OpenWrt
>> (I don't know what this does)).
>>
>> There must be a way to remove/reinsert in software instead of rebooting.
> Well no, actually there isn't.  Removing a cable breaks the power
> connection; if the device gets its power from the USB cable then it goes
> through a complete shutdown (and restart when you plug it back in).  On
> most computers and USB hubs, there is no way to turn off power to the USB
> ports in software -- the hardware simply won't do it.  _Some_ hubs can
> turn off port power, but most can't.
>
> It is possible to do various sorts of reset in software, such as by using
> the usbreset program mentioned above.  But none of them do exactly the
> same thing as unplugging and replugging the USB cable.
>
> Alan Stern
I guess I'll have to reboot if it loses the AP.
I can automate that. :-)

      reply	other threads:[~2020-06-25 21:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-25 17:08 Alfa AWUS036ACM (Mediatek MT7612U) problem James
2020-06-25 18:31 ` Alan Stern
2020-06-25 20:58   ` James [this message]

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=f9f7e6ba-5d37-a42a-3de9-c97c76f8641c@lockie.ca \
    --to=bjlockie@lockie.ca \
    --cc=linux-usb@vger.kernel.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.