There is a simple way to fix this bug.
1) Open the boot folder shared in the network (or in Retropie Terminal) use an editor and open cmdlne.txt
2) add this code:
usbhid.quirks=0x16c0:0x05e1:0x040 as first command
3) Save the file and close the editor
5) Reboot and, now, your controller work fine. No kernel needed, nothing to install.
This is an easy way…