Modify

Opened 2 years ago

Last modified 15 months ago

#21318 new defect

USB broken for ARV4510PW

Reported by: pgid69 Owned by: developers
Priority: normal Milestone:
Component: packages Version: Chaos Calmer 15.05
Keywords: Cc:

Description

When i plug a usb device in the ARV4510PW modem, it is not detected.
And command cat /proc/interrupts shows that the number of interrupts for irq 66 (the irq assigned to USB PCI controller, a VIA VT6212L) is null.

It works in barrier breaker

Attachments (1)

0401-fix-irq-chip-for-exins.patch (2.5 KB) - added by pgid69 2 years ago.

Download all attachments as: .zip

Change History (13)

Changed 2 years ago by pgid69

comment:1 Changed 2 years ago by pgid69

I've just added a patch that resolve the problem.
I think the same problem exists in trunk.

comment:2 Changed 2 years ago by Python1320

I can confirm this works when applied on trunk (maybe alone, but at least when applied with #20997).

Board: Arcadyan ARV7510PW
SoC: Danube rev 1.3

comment:3 Changed 2 years ago by pgid69

Thank you for your feedback

comment:4 Changed 2 years ago by anonymous

Will the patches be submitted to trunk or CC?

comment:5 follow-up: Changed 2 years ago by pgid69

I applied the patch to CC. User Python1320 reported above that the patch works when applied on trunk.

comment:6 in reply to: ↑ 5 Changed 2 years ago by anonymous

Replying to pgid69:

I applied the patch to CC. User Python1320 reported above that the patch works when applied on trunk.

... also in the repository? Can't find it there.

comment:7 Changed 2 years ago by anonymous

No the patch is not the repository. Perhaps one day when that ticket will be reviewed by an OpenWrt developper !

comment:8 Changed 2 years ago by anonymous

You will have to send the patch to the OpenWrt Mailing list for review. Follow the steps outlined by https://dev.openwrt.org/wiki/SubmittingPatches to get your patch merged.

comment:9 Changed 23 months ago by anonymous

I'm using ImageBuilder so still dependent on "one day" is coming.

comment:10 Changed 20 months ago by corsaroangelo@…

Hi,
I've applied the patches with a trunk version r49363 and kernel 3.18 successfully and I have all port usb working.

root@OpenWrt:/# lsusb
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

My question is if there's any patch to apply with kernel 4.4 ? Getting the trunk (Bleeding Edge) I find the kernel 4.4.

root@OpenWrt:/# lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002

Can I try to apply the patch in the source code of kernel 4.4?

TIA
Angelo

comment:11 Changed 18 months ago by mandmkelly

This patch with a small modification works for me when compiled with Designated Driver r49395. Lines 453-455 in the patch file need to be changed to:

		if (!request_mem_region(res.start, resource_size(&res),
							res.name))
			pr_err("Failed to request eiu memory");

Evidently the latest trunk version of the source file had a few formatting changes made to it that cause quilt to fail to patch it correctly. With this modified patch (a patched patch?) applied trunk works very well on two of my ARV7510PW routers. Everything now works fine - USB, WiFi, DSL, Ethernet. See https://wiki.openwrt.org/toh/arcadyan/arv7510pw#building_openwrt for more information. Many thanks to the original patcher!

Last edited 18 months ago by mandmkelly (previous) (diff)

comment:12 Changed 15 months ago by Python1320

I tried to apply the patch and it failed to apply on trunk again.
I tried to modify the patch to patch okay: https://gist.github.com/Python1320/833fcfa62fc386c7e37a#file-0401-fix-irq-chip-for-exins-patch
This seems to get rid of a single kernel oops at boot related to rt2800pci, but WiFi still won't work.
Could someone check if I missed something obvious in the, heh, patch of patch of patch?


It seems I get wrong IRQs at least for USB (used to be irq 66):

ehci-pci 0000:00:0f.2: irq 67, io mem 0x18010000

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.