[OpenWrt-Devel] [PATCH 0/4] Gemini forward-port to kernel v4.14

Roman Yeryomin roman at advem.lv
Sun Apr 15 13:22:01 EDT 2018


On 2018-04-14 20:36, Hans Ulli Kroll wrote:
> Hi Roman
> 
> On Tue, 10 Apr 2018, Linus Walleij wrote:
> 
>> On Mon, Apr 9, 2018 at 12:38 PM, Roman Yeryomin <roman at advem.lv> 
>> wrote:
>> 
>> > I have tested them quickly yesterday on nas4220b board. Although I've
>> > managed to boot it (had to fix rootfs image) ethernet and usb didn't work.
>> > And I didn't check anything else.
>> > I didn't yet look at the code but before I dive there I have a question: did
>> > you have a chance to test it yourself on any of the boards? And if yes,
>> > which one?
>> 
> 
> I think the fotg controller gets stalled after a port reset.
> Please check attached (untested) patch for openwrt.
> I can test this next week by myself
> 
> +diff --git a/drivers/usb/host/fotg210-hcd.c 
> b/drivers/usb/host/fotg210-hcd.c
> +index 2acc51b0be5a..bc9efb49adc7 100644
> +--- a/drivers/usb/host/fotg210-hcd.c
> ++++ b/drivers/usb/host/fotg210-hcd.c
> +@@ -1653,6 +1653,10 @@ static int fotg210_hub_control(struct usb_hcd
> *hcd, u16 typeReq, u16 wValue,
> + 			/* see what we found out */
> + 			temp = check_reset_complete(fotg210, wIndex, status_reg,
> + 					fotg210_readl(fotg210, status_reg));
> ++
> ++			/* restart schedule */
> ++			fotg210->command |= CMD_RUN;
> ++			fotg210_writel(fotg210, fotg210->command, 
> &fotg210->regs->command);
> + 		}
> +
> + 		if (!(temp & (PORT_RESUME|PORT_RESET))) {
> +--
> +2.16.2
> +

Didn't work for me :(


Regards,
Roman
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list