Re: [RFC] HID:hid-lg4ff: Delay to allow wheels to center after plug-in

2016-10-26 Thread Michal Malý
Hi all, maybe instead of stalling the entire init() function it'd be better to put a request to disable autocentering on a workqueue and start a delayed work once the init() function is done setting the wheel up? There'd be a bit more code to write though... Michal On Tuesday, October 25, 201

Re: [PATCH 0/2] Add a skeleton module to perform a basic initialization on certain USB devices

2016-01-25 Thread Michal Malý
On Mon, 2016-01-25 at 15:17 +0100, Jiri Kosina wrote: > On Sat, 23 Jan 2016, Michal Malý wrote: > > > I briefly considered leaving the switch up to the userspace and > handling the  > > device in the kernel only once it's been switched. I am however > uncertain how 

Re: [PATCH 0/2] Add a skeleton module to perform a basic initialization on certain USB devices

2016-01-23 Thread Michal Malý
On sobota 23. ledna 2016 13:46:32 CET Bjørn Mork wrote: > Michal Malý writes: > > This mini series adds a simple skeleton module whose only purpose is to > > bring devices that at first appear as a generic USB device into another > > mode that can be handled by a mo

[PATCH 1/2] Add usb_skelswitch skeleton module to do basic initialization of devices that at first appear as a generic USB device.

2016-01-23 Thread Michal Malý
This gets rid of the need to handle such devices in more specific drivers that will be loaded for no purpose other than to do some basic initialization on the device. Signed-off-by: Michal Malý --- drivers/usb/Kconfig | 2 + drivers/usb/common/Kconfig | 15

[PATCH 2/2] Use usb_skelswitch module to switch Logitech G920 Racing Wheel to HID mode.

2016-01-23 Thread Michal Malý
Tested-by: Elias Vanderstuyft Signed-off-by: Michal Malý --- drivers/usb/common/Kconfig | 2 ++ drivers/usb/common/usb-skelswitch.c | 60 + 2 files changed, 62 insertions(+) diff --git a/drivers/usb/common/Kconfig b/drivers/usb/common/Kconfig index

[PATCH 0/2] Add a skeleton module to perform a basic initialization on certain USB devices

2016-01-23 Thread Michal Malý
to switch a Logitech G920 wheel into HID mode is excessive and does not make much sense. The module can be extended to handle any other USB device that might require such a switch. Signed-off-by: Michal Malý Michal Malý (2): Add usb_skelswitch skeleton module to do basic initialization of

[PATCH 01/12] HID: hid-lg4ff: (Cleanup) Remove double underscore prefix from numeric types.

2015-03-21 Thread Michal Malý
This code will never be used outside the kernel so the prefixes are unnecessary. Signed-off-by: Michal Malý --- drivers/hid/hid-lg4ff.c | 52 - drivers/hid/hid-lg4ff.h | 4 ++-- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a

[PATCH 02/12] HID: hid-lg4ff: (Cleanup) Remove "hid_" prefix from some functions names.

2015-03-21 Thread Michal Malý
All internal functions of hid-lg4ff should be prefixed with just "lg4ff_" Signed-off-by: Michal Malý --- drivers/hid/hid-lg4ff.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c ind

[PATCH 05/12] HID: hid-lg4ff: Update a warning message for a case where device is incorrectly flagged to be handled by hid-lg4ff in hid-lg.

2015-03-21 Thread Michal Malý
The original warning message was highly misleading. This warning can be triggered only if a device is flagged to be handled by hid-lg4ff in hid-lg but hid-lg4ff lacks support for such device. Signed-off-by: Michal Malý --- drivers/hid/hid-lg4ff.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH 08/12] HID: hid-lg4ff: Store pointer to the output HID report struct in the device entry struct.

2015-03-21 Thread Michal Malý
This eliminates the need to look the HID report struct up every time it is needed. Signed-off-by: Michal Malý --- drivers/hid/hid-lg4ff.c | 67 +++-- 1 file changed, 32 insertions(+), 35 deletions(-) diff --git a/drivers/hid/hid-lg4ff.c b/drivers

[PATCH 06/12] HID: hid-lg: Check return values from lg[N]ff_init()

2015-03-21 Thread Michal Malý
hid-lg did not check return values from the lg[N]_init() functions, possibly trying to work with a device whose initialization has failed. Signed-off-by: Michal Malý --- drivers/hid/hid-lg.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/hid/hid-lg.c b

[PATCH 00/12] HID: hid-lg, hid-lg4ff: Mostly cleanup patches

2015-03-21 Thread Michal Malý
spinlock to handle concurrent access to the HID report that is used by the driver to send data to the wheel. I would appreciate some comments on this one, particularly on the way it handles deinitialization. Michal Malý (12): HID: hid-lg4ff: (Cleanup) Remove double underscore prefix from numeric

[PATCH 10/12] HID: hid-lg4ff: Allow the driver to continue without sysfs interface.

2015-03-21 Thread Michal Malý
Instead of aborting the initialization allow the driver to continue in a degraded mode. Signed-off-by: Michal Malý --- drivers/hid/hid-lg4ff.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c index ad959e2

[PATCH 09/12] HID: hid-lg4ff: Constify those members of lg4ff_device_entry struct whose value is not supposed to change.

2015-03-21 Thread Michal Malý
Prevent accidental modifications of read-only members of the lg4ff_device_entry struct. Signed-off-by: Michal Malý --- drivers/hid/hid-lg4ff.c | 54 +++-- 1 file changed, 39 insertions(+), 15 deletions(-) diff --git a/drivers/hid/hid-lg4ff.c b

[PATCH 07/12] HID: hid-lg4ff: Protect concurrent access to the output HID report values with a spinlock.

2015-03-21 Thread Michal Malý
Since all functions that need to send some data to the device they manage share the same HID report some synchronization is needed to prevent sending bogus data to the device. Signed-off-by: Michal Malý --- drivers/hid/hid-lg.c| 4 +- drivers/hid/hid-lg4ff.c | 293

[PATCH 03/12] HID: hid-lg4ff: (Cleanup) Replace DEVICE_ATTR_RW with DEVICE_ATTR to have all internal functions prefixed with "lg4ff_"

2015-03-21 Thread Michal Malý
All internal functions should be prefixed with just "lg4ff_". Usage of DEVICE_ATTR_RW breaks this scheme because it expects the functions' names to match the name of the respective sysfs entry. This partially reverts "2f1cec3250e38609bf9252db52dbbe61603c04a7" S

[PATCH 12/12] HID: hid-lg: Only one of LG_FF flags can be set for a given device.

2015-03-21 Thread Michal Malý
Reflect the mutual exclusivity of the LG_FF flags in the code. Signed-off-by: Michal Malý --- drivers/hid/hid-lg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c index c3981da..f1e92bf 100644 --- a/drivers/hid/hid-lg.c +++ b

[PATCH 11/12] HID: hid-lg4ff: Update respective sysfs interface documentation

2015-03-21 Thread Michal Malý
- Refer to the sysfs interface for "range" using "/sys/bus/..." - Update contact email address Signed-off-by: Michal Malý --- Documentation/ABI/testing/sysfs-driver-hid-logitech-lg4ff | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentati

[PATCH 04/12] HID: hid-lg4ff: (Cleanup) Remove unused variable from the "lg4ff_device_entry" struct.

2015-03-21 Thread Michal Malý
This is a leftover from times where hid_get|set_drvdata() was not available to hid-lg4ff so it had to keep track of the devices it managed by itself. Signed-off-by: Michal Malý --- drivers/hid/hid-lg4ff.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid

[PATCH] HID: hid-lg4ff: Fix "undefined reference" build issue with CONFIG_USB disabled.

2015-02-18 Thread Michal Malý
Fix "undefined reference" build issue with CONFIG_USB disabled. Signed-off-by: Michal Malý --- drivers/hid/hid-lg4ff.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c index 854982b..1232210 10

[PATCH v3 2/4] HID: hid-lg4ff: Display the real wheel model and supported alternate modes through sysfs. This applies only to multimode wheels.

2015-02-18 Thread Michal Malý
Display the real wheel model and supported alternate modes through sysfs. This applies only to multimode wheels. Signed-off-by: Michal Malý --- v2: Document the sysfs interface .../ABI/testing/sysfs-driver-hid-logitech-lg4ff| 20 ++ drivers/hid/hid-lg4ff.c

[PATCH v3 4/4] HID: hid-lg4ff: Allow switching of Logitech gaming wheels between available compatibility modes through sysfs. This only applies to multimode wheels.

2015-02-18 Thread Michal Malý
Allow switching of Logitech gaming wheels between available compatibility modes through sysfs. This only applies to multimode wheels. Signed-off-by: Michal Malý --- v2: Fix a misleading error message regarding unsupported wheel mode .../ABI/testing/sysfs-driver-hid-logitech-lg4ff| 27

[PATCH v3 1/4] HID: hid-lg4ff: Identify Logitech gaming wheels in compatibility modes accordingly to Logitech specifications

2015-02-18 Thread Michal Malý
ng against known values of bcdDevice. Handling of the mode switch upon initialization is also adjusted so that the driver does not have to go through the entire initialization routine because the wheels are set to perform a USB detach before they reappear in "native" mode. Signed-off-by:

[PATCH v3 0/4] HID: hid-lg4ff: Improve handling of Logitech multimode wheels

2015-02-18 Thread Michal Malý
This patch series improves handling of various Logitech gaming wheels and allows switching between various compatibility modes which might be useful to improve compatibility with very old games and testing purposes. Signed-off-by: Michal Malý v3: - Marked all internal functions static

[PATCH v3 3/4] HID: hid-lg4ff: Introduce a module parameter to disable automatic switch of Logitech gaming wheels from compatibility to native mode. This only applies to multimode wheels.

2015-02-18 Thread Michal Malý
Introduce a module parameter to disable automatic switch of Logitech gaming wheels from compatibility to native mode. This only applies to multimode wheels. Signed-off-by: Michal Malý --- v3: - Share the module parameter through header file. - Create a new "hid-lg4ff.h" h

[PATCH v2 2/4] HID: hid-lg4ff: Display the real wheel model and supported alternate modes through sysfs. This applies only to multimode wheels.

2015-02-14 Thread Michal Malý
Display the real wheel model and supported alternate modes through sysfs. This applies only to multimode wheels. Signed-off-by: Michal Malý --- v2: Document the sysfs interface .../ABI/testing/sysfs-driver-hid-logitech-lg4ff| 20 ++ drivers/hid/hid-lg4ff.c

[PATCH v2 1/4] HID: hid-lg4ff: Identify Logitech gaming wheels in compatibility modes accordingly to Logitech specifications

2015-02-14 Thread Michal Malý
djusted so that the driver does not have to go through the entire initialization routine because the wheels are set to perform a USB detach before they reappear in "native" mode. Signed-off-by: Michal Malý --- drivers/hid/hid-lg4ff.c | 266 ++--

[PATCH v2 0/4] HID: hid-lg4ff: Improve handling of Logitech multimode gaming wheels

2015-02-14 Thread Michal Malý
This patch series improves handling of various Logitech gaming wheels and allows switching between various compatibility modes which might be useful to improve compatibility with very old games and testing purposes. Signed-off-by: Michal Malý v2: - Rebased against latest linux-next

[PATCH v2 3/4] HID: hid-lg4ff: Introduce a module parameter to disable automatic switch of Logitech gaming wheels from compatibility to native mode. This only applies to multimode wheels.

2015-02-14 Thread Michal Malý
Introduce a module parameter to disable automatic switch of Logitech gaming wheels from compatibility to native mode. This only applies to multimode wheels. Signed-off-by: Michal Malý --- drivers/hid/hid-lg.c| 6 ++ drivers/hid/hid-lg4ff.c | 4 +++- 2 files changed, 9 insertions(+), 1

[PATCH v2 4/4] HID: hid-lg4ff: Allow switching of Logitech gaming wheels between available compatibility modes through sysfs. This only applies to multimode wheels.

2015-02-14 Thread Michal Malý
Allow switching of Logitech gaming wheels between available compatibility modes through sysfs. This only applies to multimode wheels. Signed-off-by: Michal Malý --- v2: Fix a misleading error message regarding unsupported wheel mode .../ABI/testing/sysfs-driver-hid-logitech-lg4ff| 27

[PATCH 2/4] HID: Display the real wheel model and supported alternate modes through sysfs. This applies only to multimode wheels.

2015-02-06 Thread Michal Malý
Display the real wheel model and supported alternate modes through sysfs. This applies only to multimode wheels. Signed-off-by: Michal Malý --- drivers/hid/hid-lg4ff.c | 209 ++-- 1 file changed, 202 insertions(+), 7 deletions(-) diff --git a

[PATCH 1/4] HID: Identify Logitech gaming wheels in compatibility modes accordingly to Logitech specifications

2015-02-06 Thread Michal Malý
ng against known values of bcdDevice. Handling of the mode switch upon initialization is also adjusted so that the driver does not have to go through the entire initialization routine because the wheels are set to perform a USB detach before they reappear in "native" mode. Signed

[PATCH 3/4] HID: Introduce a module parameter to disable automatic switch of Logitech gaming wheels from compatibility to native mode. This only applies to multimode wheels.

2015-02-06 Thread Michal Malý
Introduce a module parameter to disable automatic switch of Logitech gaming wheels from compatibility to native mode. This only applies to multimode wheels. Signed-off-by: Michal Malý --- drivers/hid/hid-lg.c| 6 ++ drivers/hid/hid-lg4ff.c | 4 +++- 2 files changed, 9 insertions(+), 1

[PATCH 0/4] HID: Improve handling of multimode Logitech handling wheels

2015-02-06 Thread Michal Malý
This patch series improves handling of various Logitech gaming wheels and allows switching between various compatibility modes which might be useful to improve compatibility with very old games and testing purposes. Signed-off-by: Michal Malý Michal Malý (4): Identify Logitech gaming wheels

[PATCH 4/4] HID: Allow switching of Logitech gaming wheels between available compatibility modes through sysfs. This only applies to multimode wheels.

2015-02-06 Thread Michal Malý
Allow switching of Logitech gaming wheels between available compatibility modes through sysfs. This only applies to multimode wheels. Signed-off-by: Michal Malý --- .../ABI/testing/sysfs-driver-hid-logitech-lg4ff| 45 + drivers/hid/hid-lg4ff.c| 203

Re: PATCH hid: Implement mode switching on Logitech gaming wheels accordingly to the documentation

2014-08-12 Thread Michal Malý
On Tuesday 12 of August 2014 15:10:12 Jiri Kosina wrote: > On Thu, 31 Jul 2014, si...@mungewell.org wrote: > > > +#define LG4FF_MSW_MIN 0 > > > +#define LG4FF_MSW_NATIVE 0 /* Switch device to its native mode (if > > > applicable) */ > > > +#define LG4FF_MSW_DONTSWITCH 1 /* Leave device in i

PATCH hid: Implement mode switching on Logitech gaming wheels accordingly to the documentation

2014-07-30 Thread Michal Malý
Implement mode switching on Logitech gaming wheels accordingly to the documentation Signed-off-by: Michal Malý --- Logitech has recently released technical documentation which describes the protocol used by their force feedback gaming devices. The documentation describes the method by which

Re: [v2] input: drv260x: Add TI drv260x haptics driver

2014-07-29 Thread Michal Malý
On Monday 28 of July 2014 21:21:26 Murphy, Dan wrote: > Dmitry > > On 07/28/2014 12:59 PM, si...@mungewell.org wrote: > >>> The initial driver supports the devices > >>> real time playback mode. But the device > >>> has additional wave patterns in ROM. > >> > >> As it presented the device appear

Re: [PATCH v4 01/24] input: Add ff-memless-next module

2014-05-20 Thread Michal Malý
On Tuesday 20 of May 2014 18:17:51 Roland Bosa wrote: > > The file format of an IFR is probably easily deducible. There's a lot of > textual clues to parameters and the values are also written out in > string form. > > I don't have a FEdit file at hand, but I suppose it will be similar. I believ

Re: [PATCH v4 01/24] input: Add ff-memless-next module

2014-05-20 Thread Michal Malý
On Tuesday 20 of May 2014 19:45:44 si...@mungewell.org wrote: > >> Regarding the question of emulated vs. real effects, can we extend the > >> API > >> so that applications can know which effects are really supported, and > >> enable/disable emulation somehow? > > > > I suppose that a few extra fl

Re: [PATCH v4 01/24] input: Add ff-memless-next module

2014-05-20 Thread Michal Malý
On Tuesday 20 of May 2014 16:16:12 si...@mungewell.org wrote: > > To bring this to a conclusion we could go from, would this be an > > acceptable > > solution? > > > > - Have the HW-specific driver talk directly to ff-core and reimplement > > upload(), > > play(), etc. > > - Rewrite "ff-memless-ne

Re: [PATCH v4 01/24] input: Add ff-memless-next module

2014-05-20 Thread Michal Malý
On Tuesday 20 of May 2014 11:32:14 Roland Bosa wrote: > On 05/20/2014 02:27 AM, Michal Malý wrote: > > On Wednesday 14 of May 2014 11:05:58 Dmitry Torokhov wrote: > >> On Wed, May 14, 2014 at 10:35:25AM +0200, Michal Malý wrote: > >>> Hi Dmitry, > >&g

Re: [PATCH v4 01/24] input: Add ff-memless-next module

2014-05-20 Thread Michal Malý
On Wednesday 14 of May 2014 11:05:58 Dmitry Torokhov wrote: > On Wed, May 14, 2014 at 10:35:25AM +0200, Michal Malý wrote: > > Hi Dmitry, > > > > thank you for reviewing this. > > > > On Tuesday 13 of May 2014 23:38:06 Dmitry Torokhov wrote: > > > On Sat

Re: [PATCH v4 01/24] input: Add ff-memless-next module

2014-05-14 Thread Michal Malý
On Wednesday 14 of May 2014 11:14:02 Dmitry Torokhov wrote: > On Sat, Apr 26, 2014 at 05:02:00PM +0200, Michal Malý wrote: > > + > > +/** input_ff_create_mlnx() - Register a device within ff-memless-next and > > + * the kernel force feedback system

Re: [PATCH v4 01/24] input: Add ff-memless-next module

2014-05-14 Thread Michal Malý
On Wednesday 14 of May 2014 11:05:58 Dmitry Torokhov wrote: > On Wed, May 14, 2014 at 10:35:25AM +0200, Michal Malý wrote: > > Hi Dmitry, > > > > thank you for reviewing this. > > > > On Tuesday 13 of May 2014 23:38:06 Dmitry Torokhov wrote: > > > On Sat

Re: [PATCH v4 01/24] input: Add ff-memless-next module

2014-05-14 Thread Michal Malý
Hi Dmitry, thank you for reviewing this. On Tuesday 13 of May 2014 23:38:06 Dmitry Torokhov wrote: > On Sat, Apr 26, 2014 at 05:02:00PM +0200, Michal Malý wrote: > > + > > +/** DEFINITION OF TERMS > > + * > > + * Combined effect - An effect whose force i

Re: [PATCH v4 00/24] input: Introduce ff-memless-next as an improved replacement for ff-memless

2014-05-12 Thread Michal Malý
On Monday 12 of May 2014 11:14:42 Jiri Kosina wrote: > On Sat, 26 Apr 2014, Michal Malý wrote: > > ff-memless-next (MLNX) is a largely improved version of the current > > ff-memless (FFML) driver. MLNX supports all force feedback effects > > currently available in the

[PATCH v4 01/24] input: Add ff-memless-next module

2014-04-26 Thread Michal Malý
Add ff-memless-next module Signed-off-by: Michal Malý Tested-by: Elias Vanderstuyft --- drivers/input/Kconfig | 11 + drivers/input/Makefile|1 + drivers/input/ff-memless-next.c | 1037 + include/linux/input/ff-memless

[PATCH v4 22/24] hid: Port hid-lg2ff to ff-memless-next

2014-04-26 Thread Michal Malý
- Port hid-lg2ff to ff-memless-next - Clamp vibration magnitude to range <0x02; 0xfd> to prevent irregular shaking of the vibration motors. Signed-off-by: Elias Vanderstuyft --- drivers/hid/Kconfig | 2 +- drivers/hid/hid-lg2ff.c | 65 ++--- 2 f

[PATCH v4 23/24] hid: Port hid-lg4ff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-lg4ff to ff-memless-next Signed-off-by: Michal Malý Tested-by: Tested-by: Elias Vanderstuyft --- drivers/hid/Kconfig | 2 +- drivers/hid/hid-lg4ff.c | 93 ++--- 2 files changed, 59 insertions(+), 36 deletions(-) diff --git a/drivers

[PATCH v4 02/24] input: Port arizona-haptics to ff-memless-next

2014-04-26 Thread Michal Malý
Port arizona-haptics to ff-memless-next Signed-off-by: Michal Malý --- drivers/input/misc/Kconfig | 2 +- drivers/input/misc/arizona-haptics.c | 39 +++- 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/drivers/input/misc/Kconfig b

[PATCH v4 24/24] input: Replace ff-memless with ff-memless-next

2014-04-26 Thread Michal Malý
defined by Microsoft DirectInput. - Improved emulation of periodic and rumble effects in case either of those is not supported by a device. - New kernel API to interface with HW-specific drivers. Signed-off-by: Michal Malý --- drivers/input/Kconfig | 13 +- drivers/input/Makefile

[PATCH v4 04/24] input: Port twl6040-vibra to ff-memless-next

2014-04-26 Thread Michal Malý
Port twl6040-vibra to ff-memless-next Signed-off-by: Michal Malý --- drivers/input/misc/Kconfig | 2 +- drivers/input/misc/twl6040-vibra.c | 27 ++- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc

[PATCH v4 03/24] input: Port twl4030-vibra to ff-memless-next

2014-04-26 Thread Michal Malý
Port twl4030-vibra to ff-memless-next Signed-off-by: Michal Malý --- drivers/input/misc/Kconfig | 2 +- drivers/input/misc/twl4030-vibra.c | 31 +-- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/drivers/input/misc/Kconfig b/drivers/input

[PATCH v4 05/24] input: Port max8997_haptic to ff-memless-next

2014-04-26 Thread Michal Malý
Port max8997_haptic to ff-memless-next Signed-off-by: Michal Malý --- drivers/input/misc/Kconfig | 2 +- drivers/input/misc/max8997_haptic.c | 25 +++-- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc

[PATCH v4 07/24] hid: Port hid-axff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-axff to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig| 2 +- drivers/hid/hid-axff.c | 32 +++- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 7af9d0b..e076627 100644

[PATCH v4 08/24] hid: Port hid-emsff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-emsff to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig | 2 +- drivers/hid/hid-emsff.c | 38 ++ 2 files changed, 27 insertions(+), 13 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index e076627

[PATCH v4 06/24] input: Port pm8xxx-vibrator to ff-memless-next

2014-04-26 Thread Michal Malý
Port pm8xxx-vibrator to ff-memless-next Signed-off-by: Michal Malý --- drivers/input/misc/Kconfig | 2 +- drivers/input/misc/pm8xxx-vibrator.c | 28 +++- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/drivers/input/misc/Kconfig b/drivers

[PATCH v4 09/24] hid: Port hid-dr to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-dr to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig | 2 +- drivers/hid/hid-dr.c | 59 2 files changed, 37 insertions(+), 24 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index a78b5d8

[PATCH v4 10/24] hid: Port hid-gaff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-gaff to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig| 2 +- drivers/hid/hid-gaff.c | 32 +++- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 1d4180c..4c59a88 100644

[PATCH v4 11/24] hid: Port hid-holtekff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-holtekff to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig| 2 +- drivers/hid/hid-holtekff.c | 47 +- 2 files changed, 31 insertions(+), 18 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig

[PATCH v4 12/24] hid: Port hid-lgff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-lgff to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig| 2 +- drivers/hid/hid-lgff.c | 70 +++--- 2 files changed, 51 insertions(+), 21 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index

[PATCH v4 13/24] hid: Port hid-lg3ff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-lg3ff to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig | 2 +- drivers/hid/hid-lg3ff.c | 60 +++-- 2 files changed, 39 insertions(+), 23 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index

[PATCH v4 14/24] hid: Port hid-pl to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-pl to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig | 2 +- drivers/hid/hid-pl.c | 38 ++ 2 files changed, 27 insertions(+), 13 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index eb0c7f1..42904e4 100644

[PATCH v4 16/24] hid: Port hid-sony to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-sony to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig| 2 +- drivers/hid/hid-sony.c | 23 +-- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 9260d14..e97c382 100644 --- a

[PATCH v4 15/24] hid: Port hid-sjoy to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-sjoy to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig| 2 +- drivers/hid/hid-sjoy.c | 35 +-- 2 files changed, 26 insertions(+), 11 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 42904e4..9260d14

[PATCH v4 17/24] hid: Port hid-tmff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-tmff to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig| 2 +- drivers/hid/hid-tmff.c | 83 ++ 2 files changed, 51 insertions(+), 34 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index

[PATCH v4 19/24] hid: Port hid-zpff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-zpff to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig| 2 +- drivers/hid/hid-zpff.c | 30 ++ 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 23d9776..97d2d8f 100644

[PATCH v4 18/24] hid: Port hid-wiimote-modules to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-wiimote-modules to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig | 2 +- drivers/hid/hid-wiimote-modules.c | 74 --- 2 files changed, 46 insertions(+), 30 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers

Re: [PATCH v3 16/24] hid: Port hid-sony to ff-memless-next

2014-04-26 Thread Michal Malý
On Saturday 26 of April 2014 15:09:44 Antonio Ospite wrote: > On Sat, 26 Apr 2014 13:57:53 +0200 > > Michal Malý wrote: > > Port hid-sony to ff-memless-next > > > > Signed-off-by: Michal Malý > > Not a big deal, but note that the patch adds an unneeded >

Re: [PATCH v3 01/24] input: Add ff-memless-next module

2014-04-26 Thread Michal Malý
On Saturday 26 of April 2014 15:07:01 Antonio Ospite wrote: > On Sat, 26 Apr 2014 13:57:38 +0200 > > Michal Malý wrote: > > Add ff-memless-next module > > Hi Michal, what about adding the notes from 0/24 to this commit > message? This is the one which will actua

[PATCH v4 20/24] input: Port gamecon to ff-memless-next

2014-04-26 Thread Michal Malý
Port gamecon to ff-memless-next Signed-off-by: Michal Malý --- drivers/input/joystick/Kconfig | 2 +- drivers/input/joystick/gamecon.c | 57 ++-- 2 files changed, 33 insertions(+), 26 deletions(-) diff --git a/drivers/input/joystick/Kconfig b/drivers

[PATCH v4 21/24] input: Port xpad to ff-memless-next

2014-04-26 Thread Michal Malý
Port xpad to ff-memless-next Signed-off-by: Michal Malý --- drivers/input/joystick/Kconfig | 2 +- drivers/input/joystick/xpad.c | 125 +++-- 2 files changed, 71 insertions(+), 56 deletions(-) diff --git a/drivers/input/joystick/Kconfig b/drivers/input

[PATCH v4 00/24] input: Introduce ff-memless-next as an improved replacement for ff-memless

2014-04-26 Thread Michal Malý
[1] 2) Ports all hardware-specific drivers to MLNX's API [2-23] 3) Removes FFML and replaces it with MLNX [24] Signed-off-by: Michal Malý v4: - Add a summary of changes between MLNX and FFML to the last patch - Remove a stale empty line in hid-sony.c - Add "Tested-by: Elias Van

[PATCH v3 02/24] input: Port arizona-haptics to ff-memless-next

2014-04-26 Thread Michal Malý
Port arizona-haptics to ff-memless-next Signed-off-by: Michal Malý --- drivers/input/misc/Kconfig | 2 +- drivers/input/misc/arizona-haptics.c | 39 +++- 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/drivers/input/misc/Kconfig b

[PATCH v3 03/24] input: Port twl4030-vibra to ff-memless-next

2014-04-26 Thread Michal Malý
Port twl4030-vibra to ff-memless-next Signed-off-by: Michal Malý --- drivers/input/misc/Kconfig | 2 +- drivers/input/misc/twl4030-vibra.c | 31 +-- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/drivers/input/misc/Kconfig b/drivers/input

[PATCH v3 01/24] input: Add ff-memless-next module

2014-04-26 Thread Michal Malý
Add ff-memless-next module Signed-off-by: Michal Malý Tested-by: Elias Vanderstuyft --- drivers/input/Kconfig | 11 + drivers/input/Makefile|1 + drivers/input/ff-memless-next.c | 1037 + include/linux/input/ff-memless

[PATCH v4 04/24] input: Port twl6040-vibra to ff-memless-next

2014-04-26 Thread Michal Malý
Port twl6040-vibra to ff-memless-next Signed-off-by: Michal Malý --- drivers/input/misc/Kconfig | 2 +- drivers/input/misc/twl6040-vibra.c | 27 ++- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc

[PATCH v3 07/24] hid: Port hid-axff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-axff to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig| 2 +- drivers/hid/hid-axff.c | 32 +++- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 7af9d0b..e076627 100644

[PATCH v3 05/24] input: Port max8997_haptic to ff-memless-next

2014-04-26 Thread Michal Malý
Port max8997_haptic to ff-memless-next Signed-off-by: Michal Malý --- drivers/input/misc/Kconfig | 2 +- drivers/input/misc/max8997_haptic.c | 25 +++-- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc

[PATCH v3 06/24] input: Port pm8xxx-vibrator to ff-memless-next

2014-04-26 Thread Michal Malý
Port pm8xxx-vibrator to ff-memless-next Signed-off-by: Michal Malý --- drivers/input/misc/Kconfig | 2 +- drivers/input/misc/pm8xxx-vibrator.c | 28 +++- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/drivers/input/misc/Kconfig b/drivers

[PATCH v3 10/24] hid: Port hid-gaff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-gaff to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig| 2 +- drivers/hid/hid-gaff.c | 32 +++- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 1d4180c..4c59a88 100644

[PATCH v3 09/24] hid: Port hid-dr to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-dr to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig | 2 +- drivers/hid/hid-dr.c | 59 2 files changed, 37 insertions(+), 24 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index a78b5d8

[PATCH v3 12/24] hid: Port hid-lgff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-lgff to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig| 2 +- drivers/hid/hid-lgff.c | 70 +++--- 2 files changed, 51 insertions(+), 21 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index

[PATCH v3 11/24] hid: Port hid-holtekff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-holtekff to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig| 2 +- drivers/hid/hid-holtekff.c | 47 +- 2 files changed, 31 insertions(+), 18 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig

[PATCH v3 16/24] hid: Port hid-sony to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-sony to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig| 2 +- drivers/hid/hid-sony.c | 24 ++-- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 9260d14..e97c382 100644 --- a

[PATCH v3 14/24] hid: Port hid-pl to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-pl to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig | 2 +- drivers/hid/hid-pl.c | 38 ++ 2 files changed, 27 insertions(+), 13 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index eb0c7f1..42904e4 100644

[PATCH v3 13/24] hid: Port hid-lg3ff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-lg3ff to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig | 2 +- drivers/hid/hid-lg3ff.c | 60 +++-- 2 files changed, 39 insertions(+), 23 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index

[PATCH v3 15/24] hid: Port hid-sjoy to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-sjoy to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig| 2 +- drivers/hid/hid-sjoy.c | 35 +-- 2 files changed, 26 insertions(+), 11 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 42904e4..9260d14

[PATCH v3 18/24] hid: Port hid-wiimote-modules to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-wiimote-modules to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig | 2 +- drivers/hid/hid-wiimote-modules.c | 74 --- 2 files changed, 46 insertions(+), 30 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers

[PATCH v3 17/24] hid: Port hid-tmff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-tmff to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig| 2 +- drivers/hid/hid-tmff.c | 83 ++ 2 files changed, 51 insertions(+), 34 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index

[PATCH v3 20/24] input: Port gamecon to ff-memless-next

2014-04-26 Thread Michal Malý
Port gamecon to ff-memless-next Signed-off-by: Michal Malý --- drivers/input/joystick/Kconfig | 2 +- drivers/input/joystick/gamecon.c | 57 ++-- 2 files changed, 33 insertions(+), 26 deletions(-) diff --git a/drivers/input/joystick/Kconfig b/drivers

[PATCH v3 23/24] hid: Port hid-lg4ff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-lg4ff to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig | 2 +- drivers/hid/hid-lg4ff.c | 93 ++--- 2 files changed, 59 insertions(+), 36 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index

[PATCH v3 22/24] hid: Port hid-lg2ff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-lg2ff to ff-memless-next. Clamp vibration magnitude to range <0x02; 0xfd> to prevent irregular shaking of the vibration motors. Signed-off-by: Elias Vanderstuyft --- drivers/hid/Kconfig | 2 +- drivers/hid/hid-lg2ff.c | 65 ++--- 2 files

[PATCH v3 24/24] input: Replace ff-memless with ff-memless-next

2014-04-26 Thread Michal Malý
Replace ff-memless with ff-memless-next Signed-off-by: Michal Malý --- drivers/input/Kconfig | 13 +- drivers/input/Makefile | 1 - drivers/input/ff-memless.c | 547 - include/linux/input.h | 3 - 4 files changed, 1 insertion

[PATCH v3 21/24] input: Port xpad to ff-memless-next

2014-04-26 Thread Michal Malý
Port xpad to ff-memless-next Signed-off-by: Michal Malý --- drivers/input/joystick/Kconfig | 2 +- drivers/input/joystick/xpad.c | 125 +++-- 2 files changed, 71 insertions(+), 56 deletions(-) diff --git a/drivers/input/joystick/Kconfig b/drivers/input

[PATCH v3 19/24] hid: Port hid-zpff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-zpff to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig| 2 +- drivers/hid/hid-zpff.c | 30 ++ 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 23d9776..97d2d8f 100644

[PATCH v3 08/24] hid: Port hid-emsff to ff-memless-next

2014-04-26 Thread Michal Malý
Port hid-emsff to ff-memless-next Signed-off-by: Michal Malý --- drivers/hid/Kconfig | 2 +- drivers/hid/hid-emsff.c | 38 ++ 2 files changed, 27 insertions(+), 13 deletions(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index e076627

[PATCH v3 00/24] input: Introduce ff-memless-next as an improved replacement for ff-memless

2014-04-26 Thread Michal Malý
[1] 2) Ports all hardware-specific drivers to MLNX's API [2-23] 3) Removes FFML and replaces it with MLNX [24] Signed-off-by: Michal Malý v3: - Rebase against latest linux-next. Fixes conflict in hid-sony.c and max8997_haptic.c - Updated documentation in ff-memless-next.h. The documentati

Re: [PATCH v2 09/24] input: Port hid-dr to ff-memless-next

2014-04-24 Thread Michal Malý
On Wednesday 23 of April 2014 15:41:03 Oliver Neukum wrote: > On Tue, 2014-04-22 at 15:59 +0200, Michal Malý wrote: > > static int drff_play(struct input_dev *dev, void *data, > > > > -struct ff_effect *effect) > > +

  1   2   >