linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [BUG] wireless: mt7601u: probe failed with error -110
@ 2023-11-25 13:03 cristian_ci
  2023-11-26 22:26 ` Jakub Kicinski
  0 siblings, 1 reply; 4+ messages in thread
From: cristian_ci @ 2023-11-25 13:03 UTC (permalink / raw)
  To: kuba@kernel.org, kvalo@kernel.org, matthias.bgg@gmail.com,
	angelogioacchino.delregno@collabora.com
  Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org, cristian_ci@protonmail.com

Hi, this mt7601u device attempts continuously to probe spamming the following lines to dmesg output:

[   99.604249] usb 1-2: new high-speed USB device number 7 using xhci_hcd
[   99.758083] usb 1-2: New USB device found, idVendor=148f, idProduct=7601, bcdDevice= 0.00
[   99.758098] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   99.758104] usb 1-2: Product: 802.11 n WLAN
[   99.758109] usb 1-2: Manufacturer: MediaTek
[   99.758114] usb 1-2: SerialNumber: 1.0
[   99.880644] usb 1-2: reset high-speed USB device number 7 using xhci_hcd
[  100.025562] mt7601u 1-2:1.0: ASIC revision: 76010001 MAC revision: 76010500
[  100.029499] mt7601u 1-2:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____
[  100.455461] mt7601u 1-2:1.0: EEPROM ver:0d fae:00
[  100.645586] mt7601u 1-2:1.0: Error: MCU resp urb failed:-71
[  100.645610] mt7601u 1-2:1.0: Error: MCU resp evt:0 seq:5-4!
[  100.645678] mt7601u 1-2:1.0: Error: MCU resp urb failed:-71
[  100.645697] mt7601u 1-2:1.0: Error: MCU resp evt:0 seq:5-4!
[  100.645774] mt7601u 1-2:1.0: Error: MCU resp urb failed:-71
[  100.645816] mt7601u 1-2:1.0: Error: MCU resp evt:0 seq:5-4!
[  100.645920] mt7601u 1-2:1.0: Error: MCU resp urb failed:-71
[  100.645926] mt7601u 1-2:1.0: Error: MCU resp evt:0 seq:5-4!
[  100.646026] mt7601u 1-2:1.0: Error: MCU resp urb failed:-71
[  100.646031] mt7601u 1-2:1.0: Error: MCU resp evt:0 seq:5-4!
[  100.646036] mt7601u 1-2:1.0: Error: mt7601u_mcu_wait_resp timed out
[  100.784270] mt7601u 1-2:1.0: Vendor request req:07 off:0080 failed:-71
[  100.917572] mt7601u 1-2:1.0: Vendor request req:02 off:0080 failed:-71
[  101.057650] mt7601u 1-2:1.0: Vendor request req:02 off:0080 failed:-71
[  101.057737] mt7601u: probe of 1-2:1.0 failed with error -110
[  101.058197] usb 1-2: USB disconnect, device number 7
[  101.313690] usb 1-2: new high-speed USB device number 8 using xhci_hcd

I'm not the only one to have experienced this bug. I've been suggested to report that to kernel mailing list by linux support channels.

I've tested this bug against upstream 6.6.2 kernel tarball from the latest stable branch [1].

To solve this issue. I've also tried to patch mt7601u driver disabling mcu calibration. Which doesn't seem a wise idea because apparently it fixes probing but also hangs completely the machine after some seconds (so, it needs a hard/forced shutdown).

Thanks in advance,

Regards,

Cristian.

[1] https://www.kernel.org/

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG] wireless: mt7601u: probe failed with error -110
  2023-11-25 13:03 [BUG] wireless: mt7601u: probe failed with error -110 cristian_ci
@ 2023-11-26 22:26 ` Jakub Kicinski
  2023-11-27 14:48   ` cristian_ci
  2023-12-06 19:51   ` cristian_ci
  0 siblings, 2 replies; 4+ messages in thread
From: Jakub Kicinski @ 2023-11-26 22:26 UTC (permalink / raw)
  To: cristian_ci
  Cc: kvalo@kernel.org, matthias.bgg@gmail.com,
	angelogioacchino.delregno@collabora.com,
	linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org, Lorenzo Bianconi,
	Felix Fietkau

On Sat, 25 Nov 2023 13:03:45 +0000 cristian_ci wrote:
> I'm not the only one to have experienced this bug. I've been
> suggested to report that to kernel mailing list by linux support
> channels.
> 
> I've tested this bug against upstream 6.6.2 kernel tarball from the
> latest stable branch [1].
> 
> To solve this issue. I've also tried to patch mt7601u driver
> disabling mcu calibration. Which doesn't seem a wise idea because
> apparently it fixes probing but also hangs completely the machine
> after some seconds (so, it needs a hard/forced shutdown).

Does it work with the vendor driver? The upstream driver is just 
a rewrite of the vendor driver, I don't know much about the device
internals.

Maybe Lorenzo or Felix have some ideas.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG] wireless: mt7601u: probe failed with error -110
  2023-11-26 22:26 ` Jakub Kicinski
@ 2023-11-27 14:48   ` cristian_ci
  2023-12-06 19:51   ` cristian_ci
  1 sibling, 0 replies; 4+ messages in thread
From: cristian_ci @ 2023-11-27 14:48 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: kvalo@kernel.org, matthias.bgg@gmail.com,
	angelogioacchino.delregno@collabora.com,
	linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org, Lorenzo Bianconi,
	Felix Fietkau

Hi,

On Sunday, November 26th, 2023 at 23:26, Jakub Kicinski <kuba@kernel.org> wrote:

> Does it work with the vendor driver? The upstream driver is just
> a rewrite of the vendor driver, I don't know much about the device
> internals.
> 

I remember I tried the device with the vendor driver [1] (which is not compatible with mainline) and it should work in that case. I noticed there is a datasheet somewhere out around, BTW I've also found information here [2] and here [3] about the driver and devices shipping this chip under several brands.

> Maybe Lorenzo or Felix have some ideas.
Indeed, I dared to fw and cc them in order to join this discussion.

Regards,

Cristian.

[1] https://www.mediatek.com/products/broadband-wifi/mt7601u
[2] http://en.techinfodepot.shoutwiki.com/wiki/Mt7601u
[3] http://en.techinfodepot.shoutwiki.com/wiki/MediaTek_MT7601U

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG] wireless: mt7601u: probe failed with error -110
  2023-11-26 22:26 ` Jakub Kicinski
  2023-11-27 14:48   ` cristian_ci
@ 2023-12-06 19:51   ` cristian_ci
  1 sibling, 0 replies; 4+ messages in thread
From: cristian_ci @ 2023-12-06 19:51 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: kvalo@kernel.org, matthias.bgg@gmail.com,
	angelogioacchino.delregno@collabora.com,
	linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org, Lorenzo Bianconi,
	Felix Fietkau

[RESEND I've made a mistake with list of recipients]

Update:

I've built and installed mt7601Usta vendor driver, which is shown into lsmod output.

ra0 interface appears as shown in the following output from iwconfig and ifconfig:

ra0       Ralink STA  ESSID:""
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated
          Bit Rate:1 Mb/s
          RTS thr:off   Fragment thr:off
          Link Quality=10/100  Signal level:0 dBm  Noise level:0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


ra0       Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisioni:0 txqueuelen:1000
          Byte RX:0 (0.0 B)  Byte TX:0 (0.0 B)

The driver is properly loaded and the device doesn't connect/disconnect continuously as instead happens in mainline driver:

Bus 001 Device 007: ID 148f:7601 Ralink Technology, Corp.
    |__ Port 3: Dev 7, If 0, Class=vend., Driver=rt2870, 480M

Any thoughts?

Waiting for a reply,

Cristian.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-06 19:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-25 13:03 [BUG] wireless: mt7601u: probe failed with error -110 cristian_ci
2023-11-26 22:26 ` Jakub Kicinski
2023-11-27 14:48   ` cristian_ci
2023-12-06 19:51   ` cristian_ci

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).