Aw: Re: Fw: Re: keyboard-problem on bpi-r2 since 4.17

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



this fixes the issue:

adding the following lines to drivers/usb/host/xhci-mem.c line:1616

if (xhci->quirks & XHCI_MTK_HOST) {
	in_ep_ctx->reserved[0] = out_ep_ctx->reserved[0];
	in_ep_ctx->reserved[1] = out_ep_ctx->reserved[1];
}
 
commit below is wrong...i got the response:
 
This issue is caused by the commit : 27082e2654dc (“xhci: Clear the host side toggle manually when endpoint is ‘soft reset’”)...
 
i think this commit is meant: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f5249461b504d35aa1a40140983b7ec415807d9e

sorry for confusion, had searched and not compared the result again :(

pushed to my github: https://github.com/frank-w/BPI-R2-4.14/commit/c9acc5a4285d0de71171c7c1fb3ae7dc0bffec34

official patch will be send by mediatek

regards Frank
 
 

Gesendet: Dienstag, 04. September 2018 um 15:45 Uhr
Von: "Mathias Nyman" <mathias.nyman@xxxxxxxxxxxxxxx>
An: "Frank Wunderlich" <frankwu@xxxxxx>, linux-usb@xxxxxxxxxxxxxxx
Betreff: Re: Fw: Aw: Re: keyboard-problem on bpi-r2 since 4.17
On 04.09.2018 16:14, Frank Wunderlich wrote:
> Hi,
>
> i got an info that my issue was caused by this commit:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=217491487c43892318c18b6dcafe33b6353efd40
>
> Patch is in progress...

That patch has been there since 4.13
If 4.16 works for you then it's probably something else

>>
>> is there another way to show more debug-messages?
>>
>> i have a working 4.16-tree, maybe i can merge newer versions (go
>> forward from it instead of backwards).
>>

xhci debugging can be added by:

mount -t debugfs none /sys/kernel/debug
echo -n 'module xhci_hcd =p' > /sys/kernel/debug/dynamic_debug/control


and tracing with: (before pressing keyboard key)

(mount -t debugfs none /sys/kernel/debug)
echo 81920 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/xhci-hcd/enable

after pressing key traces are found at:
/sys/kernel/debug/tracing/trace

-Mathias



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux