aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/debug
diff options
context:
space:
mode:
authorSimon Wood <simon@mungewell.org>2014-03-13 12:42:03 -0600
committerJiri Kosina <jkosina@suse.cz>2014-03-14 15:43:34 +0100
commit6b5625b2af30de6ff73402ad070dd21592681821 (patch)
tree96c4fb464cd874b95977e3c7613f0d0185cd2f73 /kernel/debug
parentHID: hidraw: fix warning destroying hidraw device files after parent (diff)
downloadlinux-6b5625b2af30de6ff73402ad070dd21592681821.tar.gz
linux-6b5625b2af30de6ff73402ad070dd21592681821.zip
HID: hid-lg4ff: Support new version of G27
It has been reported that there is a new hardware version of the G27 in the 'wild'. This patch add's this new revision so that it can be sent the command to switch to native mode. Reported-by: "Ivan Baldo" <ibaldo@adinet.com.uy> Tested-by: "evilcow" <evilcow93@yahoo.com> Signed-off-by: Simon Wood <simon@mungewell.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions
ght'> Certain HW options (TX packet retry count, CW configuration and TX power configuration) can be specified in both the TX packet descriptor and also into HW "global" registers. The HW is thus configured to honour the global register or the TX descriptor field depending by the case. This patch adds few comments that hopefully clarify in which cases the driver uses one method and in which cases it uses the other. Signed-off-by: Andrea Merello <andrea.merello@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> 2014-02-28rtl818x: make dev_alloc_skb() null pointer check to really workandrea merello1-3/+4 During driver initialization, some skbs are preallocated for RX. Currenly if the allocation fails, the driver's allocation routine exits immediatly but it will return zero (success) anyway. In this way the driver will continue initialization with buggy pointers around. This patch makes the driver's allocation routine to return an error value and to print a complaint message when skb allocation fails. In this way its caller will not go further, avoinding the driver to successfully load, and preventing dereferencing buggy pointers. An hint is thus printed about why the driver failed. Signed-off-by: Andrea Merello <andrea.merello@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> 2014-02-28rtl818x: check for pci_map_single() success when initializing RX ringandrea merello1-0/+7 During initialization a number of RX skbs are allocated and mapped for DMA. Currently if pci_map_single() fails, it will result in passing to the HW a wrong DMA address (to write to!). This patch adds check for this condition and eventually causes the driver not to initialize, avoiding at least dangerous DMAs. Signed-off-by: Andrea Merello <andrea.merello@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> 2014-02-28rtl818x: pci_iomap() should pair with pci_iounmap()andrea merello1-1/+1 Currently the driver uses pci_iomap() but iounmap() is called in the error path Change to use pci_iounmap() instead. Reported-by: Huqiu Liu <liuhq11@mails.tsinghua.edu.cn> Signed-off-by: Andrea Merello <andrea.merello@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> 2014-02-28rtl818x: Explicitly enable contetion windowandrea merello1-0/+2 Currently the contention window enable/disable HW flag is not touched by the driver. This patch explicitly set it to the correct value to make sure contention window is enabled (AFAIK contention window must be enabled in most (if not all) cases. Signed-off-by: Andrea Merello <andrea.merello@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>