Input: iforce - use DMA-safe buffores for USB transfers
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 10 Aug 2018 20:44:52 +0000 (13:44 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 23 Jun 2019 06:55:48 +0000 (23:55 -0700)
commitdfad2b17935d70d7dc3830c4986344b3f2669c62
tree976a018df3ecf05d9db59f25b00886a7ba4184f3
parent6ac0aec6b0a651d64eef759fddf17d9145b51033
Input: iforce - use DMA-safe buffores for USB transfers

USB transport has to use cache line-aligned buffers for transfers to avoid
DMA issues; serio doe snot have such restrictions. Let's move "data_in"
buffer from main driver structure into transport modules and make sure USB
requirements are respected.

Tested-by: Tim Schumacher <timschumi@gmx.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/iforce/iforce-serio.c
drivers/input/joystick/iforce/iforce-usb.c
drivers/input/joystick/iforce/iforce.h