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

2016-10-27 Thread Simon Wood
On Wed, October 26, 2016 11:00 am, Dmitry Torokhov wrote: > > Yeah, if device happens to be plugged at boot time it will wait that > long before even getting to mount rootfs if driver is built into the > kernel. Not a case I had considered... that would probably be bad. I'll look at coding up a wo

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

2016-10-25 Thread Simon Wood
A number of wheels (G27/etc) do a little full right/full left 'dance' when first plugged in. This patch inserts a delay so that this 'dance' is completed before we disable (set to zero) the autocenter spring. A side benefit is that the DFGT was confused without the delay, and is now correctly bein

[Patch-V2 5/6] HID:hid-logitech: Improve Wingman Formula Force GP support

2016-09-18 Thread Simon Wood
Move ForceFeedback support for the Formula Force GP into hid-lgff4 and re-write HID descriptor, thus allowing combined pedals or not as user desires. Signed-off-by: Simon Wood --- drivers/hid/hid-lg.c| 59 - drivers/hid/hid-lg4ff.c | 2 ++ 2

[Patch-V2 6/6] HID:hid-logitech: Documentation updates/corrections

2016-09-18 Thread Simon Wood
Signed-off-by: Simon Wood --- .../ABI/testing/sysfs-driver-hid-logitech-lg4ff| 6 ++ drivers/hid/Kconfig| 23 +- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-driver-hid-logitech-lg4ff

[Patch-V2 4/6] HID:hid-logitech: Rewrite of descriptor for all DF wheels

2016-09-18 Thread Simon Wood
Signed-off-by: Simon Wood --- drivers/hid/hid-lg.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c index 06f8a5e..ffcf4f1 100644 --- a/drivers/hid/hid-lg.c +++ b/drivers/hid/hid-lg.c @@ -343,8 +343,6 @@ static __u8 *lg

[Patch-V2 2/6] HID:hid-logitech: Add combined pedal support Logitech wheels

2016-09-18 Thread Simon Wood
Add support for reporting a combined accelerator/brake axis for wheels which contain combined data in their HID stream. This includes DF, MOMO, MOMO2 and DFP. Signed-off-by: Simon Wood --- drivers/hid/hid-lg.c| 12 drivers/hid/hid-lg4ff.c | 32

[Patch-V2 3/6] HID:hid-logitech: Compute combined pedals value

2016-09-18 Thread Simon Wood
Add support for computing a combined accelerator/brake axis for wheels which don't contain combined data in their HID stream. This includes DFGT, G25, G27, G29 and Wii-Wheel. Signed-off-by: Simon Wood --- drivers/hid/hid-lg4ff.c | 17 + 1 file changed, 17 insertions(+)

[Patch-V2 1/6] HID:hid-logitech: Introduce control for combined pedals feature

2016-09-18 Thread Simon Wood
Introduce a dev_attr which can be used to combine the accelerator and brake pedals into a single axis. This is useful for older games which can not handle seperate accelerator and brake. Signed-off-by: Simon Wood --- .../ABI/testing/sysfs-driver-hid-logitech-lg4ff| 9 drivers/hid/hid

Re: [PATCH 4/5] HID:hid-logitech: Rewrite of descriptor for all DF wheels

2016-09-14 Thread Simon Wood
On Fri, September 9, 2016 7:34 pm, kbuild test robot wrote: > All warnings (new ones prefixed by >>): > > > drivers/hid/hid-lg.c: In function 'lg_report_fixup': > >>> drivers/hid/hid-lg.c:347:28: warning: unused variable 'rev_min' >>> [-Wunused-variable] >>> > __u16 bcdDevice, rev_maj, rev_min; > ^

[PATCH 5/5] HID:hid-logitech: Documentation updates/corrections

2016-09-09 Thread Simon Wood
Signed-off-by: Simon Wood --- Documentation/ABI/testing/sysfs-driver-hid-logitech-lg4ff | 6 ++ drivers/hid/Kconfig | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-driver-hid-logitech-lg4ff b

[PATCH 4/5] HID:hid-logitech: Rewrite of descriptor for all DF wheels

2016-09-09 Thread Simon Wood
Signed-off-by: Simon Wood --- drivers/hid/hid-lg.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c index 06f8a5e..53429c6 100644 --- a/drivers/hid/hid-lg.c +++ b/drivers/hid/hid-lg.c @@ -365,18 +365,7 @@ static __u8 *lg

[PATCH 2/5] HID:hid-logitech: Add combined pedal support Logitech wheels

2016-09-09 Thread Simon Wood
Add support for reporting a combined accelerator/brake axis for wheels which contain combined data in their HID stream. This includes DF, MOMO, MOMO2 and DFP. Signed-off-by: Simon Wood --- drivers/hid/hid-lg.c| 12 drivers/hid/hid-lg4ff.c | 32

[PATCH 1/5] HID:hid-logitech: Introduce dev_attr for combined pedals feature

2016-09-09 Thread Simon Wood
Introduce a dev_attr which can be used to combine the accelerator and brake pedals into a single axis. This is useful for older games which can not handle separate accelerator and brake. Signed-off-by: Simon Wood --- .../ABI/testing/sysfs-driver-hid-logitech-lg4ff| 9 drivers/hid/hid

[PATCH 3/5] HID:hid-logitech: Compute combined pedals if not supplied

2016-09-09 Thread Simon Wood
Add support for computing a combined accelerator/brake axis for wheels which don't contain combined data in their HID stream. This includes DFGT, G25, G27, G29 and Wii-Wheel. Signed-off-by: Simon Wood --- drivers/hid/hid-lg4ff.c | 17 + 1 file changed, 17 insertions(+)

Re: RFC: Backport HID-logitech to 3.10?

2016-09-02 Thread Simon Wood
On Fri, September 2, 2016 3:32 am, Benjamin Tissoires wrote: > On Thu, Sep 1, 2016 at 2:56 AM, Simon Wood wrote: >> After copying the HEAD 'hid-lg.[ch]' and 'hid-lg4ff.[ch]' from 4.7, >> there is a minimal patch (example attached) required to get the build

RFC: Backport HID-logitech to 3.10?

2016-08-31 Thread Simon Wood
Hi all, I received a question regarding back-porting the support for the G29 racing wheel to 3.10 (Android in particular), and after some collaborative work we determined that changes between 3.10 and 4.7 are actually pretty minimal and self contained. After copying the HEAD 'hid-lg.[ch]' and 'hid

Re: [PATCH-V2 1/1] HID: Force feedback support for the Logitech G920

2016-01-26 Thread Simon Wood
e few minor points, but seems to work OK - tested against G920 with older firmware. Tested-by: Simon Wood

Re: [Patch-V2 1/6] INPUT: xpad: Add minimal support for Logitech G920 Wheel

2016-01-06 Thread Simon Wood
On Wed, January 6, 2016 6:47 pm, Dmitry Torokhov wrote: > It is wrong. Aside form the fact that IMO xpad.c is the wrong place for > this code to be in, why are we waiting for the input device to be opened by > userspace before we do the switch instead of doing it immediately? The 'send magic' mig

[Patch-V3 1/6] INPUT: xpad: switch Logitech G920 Wheel into HID mode

2015-11-19 Thread Simon Wood
When plugged in the Logitech G920 wheel starts with USBID 046d:c261 and behaviors as a vendor specific class. If a 'magic' byte sequence is sent the wheel will detach and reconnect as a HID device with the USBID 046d:c262. Signed-off-by: Simon Wood --- drivers/input/joystick/x

[Patch-V3 3/6] HID: hid-logitech-hidpp: Add basic support for Logitech G920

2015-11-19 Thread Simon Wood
The normal HID functions work to give input functionality using joystick/event interface. Note: in 'hidpp_probe()' we have to start the hardware to get packets flowing, the same might apply in future for other devices which don't use the unifying protocol. Signed-off-by: Simon W

[Patch-V3 5/6] HID: Add vendor specific usage pages for Logitech G920

2015-11-19 Thread Simon Wood
The Logitech G920 uses a couple of vendor specific usage pages, which results in incorrect number of axis/buttons being detected. This patch adds these pages to the 'ignore' list. Reported-by: Elias Vanderstuyft Signed-off-by: Simon Wood --- drivers/hid/hid-input.c | 4 inc

[Patch-V3 6/6] HID: hid-logitech-hidpp: G920 remove deadzones

2015-11-19 Thread Simon Wood
Ensure that the G920 is not given the default deadzones. Signed-off-by: Simon Wood --- drivers/hid/hid-logitech-hidpp.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c index fc553e3..f2a4811 100644

[Patch-V3 4/6] HID: hid-logitech-hidpp: Add range sysfs for Logitech G920

2015-11-19 Thread Simon Wood
The G920 can adjust the amount of 'turn' it permits, this patch adds a sysfs file 'range' to control this. Signed-off-by: Simon Wood --- drivers/hid/hid-logitech-hidpp.c | 140 ++- 1 file changed, 139 insertions(+), 1 deletion(-) diff --g

[Patch-V3 2/6] HID: hid-logitech-hidpp: Add support for very long packets

2015-11-19 Thread Simon Wood
Patch add support for the 'very long' HID++ packets, which are 64 bytes in length. Signed-off-by: Simon Wood --- drivers/hid/hid-logitech-hidpp.c | 59 1 file changed, 48 insertions(+), 11 deletions(-) diff --git a/drivers/hid/hid-logitech

[Patch-V3 0/6] HID: Support for the Logitech G920 Wheel

2015-11-19 Thread Simon Wood
. The future... as the internals of the wheel are considerably more 'capable' we are working on implementing Force Feedback using the forth-coming KLGD system. Simon Wood (6): INPUT: xpad: switch Logitech G920 Wheel into HID mode HID: hid-logitech-hidpp: Add support for very long packets

Re: [Patch-V2 1/6] INPUT: xpad: Add minimal support for Logitech G920 Wheel

2015-11-19 Thread Simon Wood
On Thu, November 19, 2015 11:31 am, Dmitry Torokhov wrote: > On Thu, Nov 19, 2015 at 02:50:51PM +0100, Jiri Kosina wrote: > >> On Thu, 12 Nov 2015, Simon Wood wrote: >> >> >>> When plugged in the Logitech G920 wheel starts with USBID 046d:c261 >>> and

Depmod issues with libcfs on 4.4 HEAD

2015-11-13 Thread Simon Wood
Hi James, I am still seeing problems with libcfs whilst building a Ubuntu kernel from 4.4 HEAD (0e976064256523ca604bd82048ae0e3402ce2467, as per pull last night 12th Nov). -- INSTALL /home/simon/linux-git/debian/linux-image-4.3.0-g920+/lib/firmware/4.3.0-g920+/cpia2/stv0672_vp4.bin INSTALL /hom

[Patch-V2 2/6] HID: hid-logitech-hidpp: Add support for very long packets

2015-11-12 Thread Simon Wood
Patch add support for the 'very long' HID++ packets, which are 64 bytes in length. Signed-off-by: Simon Wood --- drivers/hid/hid-logitech-hidpp.c | 59 1 file changed, 48 insertions(+), 11 deletions(-) diff --git a/drivers/hid/hid-logitech

Re: [Patch-V2 0/6] HID: Support for the Logitech G920 Wheel

2015-11-12 Thread Simon Wood
> Note: These patches are applied to Jiri's 'for-next' tree to work with > the other HID++ changes already queued for 4.4. Whoops, left this note in by mistake. These patches are against 4.4 HEAD. Simon. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a m

[Patch-V2 6/6] HID: hid-logitech-hidpp: G920 remove deadzones

2015-11-12 Thread Simon Wood
Ensure that the G920 is not given the default deadzones. Signed-off-by: Simon Wood --- drivers/hid/hid-logitech-hidpp.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c index 80ebd1c..e235f3d 100644

[Patch-V2 4/6] HID: hid-logitech-hidpp: Add range sysfs for Logitech G920

2015-11-12 Thread Simon Wood
The G920 can adjust the amount of 'turn' it permits, this patch adds a sysfs file 'range' to control this. Signed-off-by: Simon Wood --- drivers/hid/hid-logitech-hidpp.c | 140 ++- 1 file changed, 139 insertions(+), 1 deletion(-) diff --g

[Patch-V2 5/6] HID: Add vendor specific usage pages for Logitech G920

2015-11-12 Thread Simon Wood
The Logitech G920 uses a couple of vendor specific usage pages, which results in incorrect number of axis/buttons being detected. This patch adds these pages to the 'ignore' list. Reported-by: Elias Vanderstuyft Signed-off-by: Simon Wood --- drivers/hid/hid-input.c | 4 inc

[Patch-V2 3/6] HID: hid-logitech-hidpp: Add basic support for Logitech G920

2015-11-12 Thread Simon Wood
The normal HID functions work to give input functionality using joystick/event interface. Note: in 'hidpp_probe()' we have to start the hardware to get packets flowing, the same might apply in future for other devices which don't use the unifying protocol. Signed-off-by: Simon W

[Patch-V2 1/6] INPUT: xpad: Add minimal support for Logitech G920 Wheel

2015-11-12 Thread Simon Wood
When plugged in the Logitech G920 wheel starts with USBID 046d:c261 and behaviors as a vendor specific class. If a 'magic' byte sequence is sent the wheel will detach and reconnect as a HID device with the USBID 046d:c262. Signed-off-by: Simon Wood --- drivers/input/joystick/x

[Patch-V2 0/6] HID: Support for the Logitech G920 Wheel

2015-11-12 Thread Simon Wood
Patch-V2 tweaked as per Benjamin's requests. This series of patches provide input support for the Logitech G920 gaming wheel. This wheel is internally different from the other Logitech wheels; when first connected it is in X-Box mode and can instructed to switch to HID with a 'magic command' (1

Re: [PATCH 6/6] HID: hid-logitech-hidpp: G920 remove deadzones

2015-11-10 Thread Simon Wood
> With this change, and the nitpicks in the other patches, the series is: > Reviewed-by: Benjamin Tissoires Have Patch-V2 in progress. Other build problems stopped in last night but trying again with new pull - hopefully they are fixed. Simon -- To unsubscribe from this list: send the line "un

[PATCH 4/6] HID: hid-logitech-hidpp: Add range sysfs for Logitech G920

2015-11-07 Thread Simon Wood
The G920 can adjust the amount of 'turn' it permits, this patch adds a sysfs file 'range' to control this. Signed-off-by: Simon Wood --- drivers/hid/hid-logitech-hidpp.c | 140 ++- 1 file changed, 139 insertions(+), 1 deletion(-) diff --g

[PATCH 3/6] HID: hid-logitech-hidpp: Add basic support for Logitech G920

2015-11-07 Thread Simon Wood
The normal HID functions work to give input functionality using joystick/event interface. Signed-off-by: Simon Wood --- drivers/hid/hid-core.c | 1 + drivers/hid/hid-ids.h| 1 + drivers/hid/hid-logitech-hidpp.c | 69 +++- 3 files c

[PATCH 5/6] HID: Add vendor specific usage pages for Logitech G920

2015-11-07 Thread Simon Wood
The Logitech G920 uses a couple of vendor specific usage pages, which results in incorrect number of axis/buttons being detected. This patch adds these pages to the 'ignore' list. Reported-by: Elias Vanderstuyft Signed-off-by: Simon Wood --- drivers/hid/hid-input.c | 2 +- include/l

[PATCH 1/6] INPUT: xpad: Add minimal support for Logitech G920 Wheel

2015-11-07 Thread Simon Wood
When plugged in the Logitech G920 wheel starts with USBID 046d:c261 and behaviors as a vendor specific class. If a 'magic' byte sequence is sent the wheel will detach and reconnect as a HID device with the USBID 046d:c262. Signed-off-by: Simon Wood --- drivers/input/joystick/x

[PATCH 2/6] HID: hid-logitech-hidpp: Add support for very long packets

2015-11-07 Thread Simon Wood
Patch add support for the 'very long' HID++ packets, which are 64 bytes in length. Signed-off-by: Simon Wood --- drivers/hid/hid-logitech-hidpp.c | 59 1 file changed, 48 insertions(+), 11 deletions(-) diff --git a/drivers/hid/hid-logitech

[PATCH 6/6] HID: hid-logitech-hidpp: G920 remove deadzones

2015-11-07 Thread Simon Wood
Ensure that the G920 is not given the default deadzones. Signed-off-by: Simon Wood --- drivers/hid/hid-logitech-hidpp.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c index 03e01be..853b9c2 100644

HID: Support for the Logitech G920 wheel

2015-11-07 Thread Simon Wood
This series of patches provide input support for the Logitech G920 gaming wheel. This wheel is internally different from the other Logitech wheels; when first connected it is in X-Box mode and can instructed to switch to HID with a 'magic command' (1st patch). Once the wheel reconnects in HID mo

[PATCH 1/2] HID: hid-logitech: Simplify wheel detection scheme

2015-11-02 Thread Simon Wood
Simplfy how hid-logitech driver detects the native mode of the wheel, done by looking at the USB-ID revision and comparing bit mask. Signed-off-by: Simon Wood --- drivers/hid/hid-lg4ff.c | 70 - 1 file changed, 28 insertions(+), 42 deletions

[PATCH 2/2] HID: hid-logitech: Add support for G29

2015-11-02 Thread Simon Wood
At present the G29 is mis-identified as a DFGT, this patch ensures that the wheel is correctly detected and allows setting the LEDs and turning range via the '/sys' interface. This wheel can also emulate other types of Logitech wheels. Signed-off-by: Simon Wood --- drivers/hid/hid-co

Re: Re: [Regression] 4.3.0rc4 through rc7: No LCD backlight on Thinkpad T60P

2015-10-30 Thread Simon Wood
On Thu, October 29, 2015 8:39 pm, Simon Wood wrote: > On Thu, October 29, 2015 6:50 pm, Michel Dänzer wrote: > > >>>> So problem (no LCD backlight) must have been introduced between >>>> those. >>> >>> Well this looks like it might have someth

Re: Re: [Regression] 4.3.0rc4 through rc7: No LCD backlight on Thinkpad T60P

2015-10-29 Thread Simon Wood
On Thu, October 29, 2015 6:50 pm, Michel Dänzer wrote: >>> So problem (no LCD backlight) must have been introduced between >>> those. >> >> Well this looks like it might have something to do with it will >> attempt a build just before it. -- >> commit 4281f46ef839050d2ef60348f661eb463c21cc2e

Re: [Regression] 4.3.0rc4 through rc7: No LCD backlight on Thinkpad T60P

2015-10-29 Thread Simon Wood
On Thu, October 29, 2015 8:26 am, Simon Wood wrote: >> 4.3.0rc6 - bad >> 4.3.0rc7 - bad >> 4.3.0rc2 - good >> 4.3.0rc4 - bad (049e6dde7e57f0054fdc49102e7ef4830c698b46) >> 4.3.0rc3 - good (9ffecb10283508260936b96022d4ee43a7798b4c) > -- > commit 4281f46ef83

Re: [Regression] 4.3.0rc4 through rc7: No LCD backlight on Thinkpad T60P

2015-10-29 Thread Simon Wood
On Thu, October 29, 2015 8:07 am, Simon Wood wrote: > >> Well, I can confirm that the patch stopped the Oops - but unfortunatly >> the screen is still dark. >> >> Also, Oops _does_ happen with rc2 but the screens is OK with that... >> Back >> to looki

[Regression] 4.3.0rc4 through rc7: No LCD backlight on Thinkpad T60P

2015-10-29 Thread Simon Wood
> Well, I can confirm that the patch stopped the Oops - but unfortunatly > the screen is still dark. > > Also, Oops _does_ happen with rc2 but the screens is OK with that... Back > to looking through the logs. I couldn't see anything of note in the syslog, so attempted to bisect the problem some

Re: [Regression/Oops] nsc-ircc: 4.3.0rc6/rc7 No backlight on Thinkpad T60P

2015-10-27 Thread Simon Wood
Looks like Ville has tracked down a possible problem. Will patch/rebuild and confirm whether it solves my problem. https://lkml.org/lkml/2015/10/25/284 Simon. On Tue, October 27, 2015 9:07 am, Simon Wood wrote: > Tried the latest kernel and have the issue where the LCD backlight does &g

[Regression/Oops] nsc-ircc: 4.3.0rc6/rc7 No backlight on Thinkpad T60P

2015-10-27 Thread Simon Wood
Tried the latest kernel and have the issue where the LCD backlight does not light (ie dark screen) after the kernel has booted. It appears that there is a 'oops' with the nsc-ircc driver, and I assume that this is the root of the problem. 4.3.0rc6 and rc7 are bad, rc2 seems OK. -- Oct 23 07:35:08

[RFC 1/5] INPUT: xpad: Add minimal support for Logitech G920 Wheel

2015-10-23 Thread Simon Wood
When plugged in the Logitech G920 wheel starts with USBID 046d:c261 and behaviors as a vendor specific class. If a 'magic' byte sequence is sent the wheel will detach and reconnect as a HID device with the USBID 046d:c262. --- drivers/input/joystick/xpad.c | 16 1 file changed, 16

[RFC 4/5] HID: hid-logitech-hidpp: Add range sysfs for Logitech G920

2015-10-23 Thread Simon Wood
The G920 can adjust the amount of 'turn' it permits, this patch adds a sysfs file 'range' to control this. --- drivers/hid/hid-logitech-hidpp.c | 140 ++- 1 file changed, 139 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/h

[RFC 3/5] HID: hid-logitech-hidpp: Add basic support for Logitech G920

2015-10-23 Thread Simon Wood
This patch adds basic support for the Logitech G920 wheel when in HID mode. This wheel 'speaks' the HID++ protocol, and therefor is driven with hid-logitech-hidpp. At this stage the driver only shows that it can communicate with the wheel by outputting the name discovered over HID++. The normal H

[RFC 2/5] HID: hid-logitech-hidpp: Add support for very long packets

2015-10-23 Thread Simon Wood
Patch add support for the 'very long' HID++ packets, which are 64 bytes in length. --- drivers/hid/hid-logitech-hidpp.c | 59 1 file changed, 48 insertions(+), 11 deletions(-) diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c

[RFC 5/5] HID: Add vendor specific usage pages for Logitech G920

2015-10-23 Thread Simon Wood
The Logitech G920 uses a couple of vendor specific usage pages, which results in incorrect number of axis/buttons being detected. This patch adds these pages to the 'ignore' list. Reported-by: Elias Vanderstuyft --- drivers/hid/hid-input.c | 2 +- include/linux/hid.h | 2 ++ 2 files changed

Re: [PATCH] HID: hid-lg: Add USBID for Logitech G29 Wheel

2015-09-28 Thread Simon Wood
> I was able to get some more information, but as yet have not been able to > get time on the real hardware. Attached is a 2nd patch which should > improve the support, I'll formally submit it next week But if anyone > can test it first that would be great. Obviously the 'submit next week' ne

[PATCH] HID: hid-lg: Add USBID for Logitech G29 Wheel

2015-07-23 Thread Simon Wood
for adjust HID descriptor and handle switching between emulation and native modes. Signed-off-by: Simon Wood --- drivers/hid/hid-ids.h | 1 + drivers/hid/hid-lg.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index b04b082..653bfd4 100644

[PATCH] HID: hid-sony: Navigator Axis for L1 button

2015-07-09 Thread Simon Wood
Patch HID report descriptor to add joystick axis for the L1 button (previously missing). Signed-off-by: Simon Wood --- drivers/hid/hid-sony.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index ed2f008..69586b3

[PATCH 2/3] HID: hid-sony: Navigation controller only has 1 LED and no rumble

2015-06-16 Thread Simon Wood
Signed-off-by: Simon Wood --- drivers/hid/hid-sony.c | 41 + 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index 3fba2dca..af02139 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid

[PATCH 1/3] HID: hid-sony: Add BT support for Navigation Controller

2015-06-16 Thread Simon Wood
Signed-off-by: Simon Wood --- drivers/hid/hid-core.c | 1 + drivers/hid/hid-sony.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 044e96a..a64f862 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -1962,6 +1962,7

[PATCH 3/3] HID: hid-sony: Fix report descriptor for Navigation Controller

2015-06-16 Thread Simon Wood
1 02 c0 c0 00|.| 0095 Signed-off-by: Simon Wood --- drivers/hid/hid-sony.c | 91 +- 1 file changed, 90 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index af02139..ed2f008 100644 --- a/drivers/hid/hid

[PATCH 3/4] HID: hid-sony: PS3 Move enable LEDs and Rumble via BT

2015-06-09 Thread Simon Wood
The LED and Rumble control only function via BT if the full output report is sent. The large report still functions via USB. Signed-off-by: Simon Wood --- drivers/hid/hid-sony.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/hid/hid-sony.c b/drivers/hid

[PATCH 1/4] HID: hid-sony: Add quirk for MOTION_CONTROLLER_BT

2015-06-09 Thread Simon Wood
Split quirk for PS Move Controller as it has to be treated differently when connected via BT. Signed-off-by: Simon Wood --- drivers/hid/hid-sony.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index 6fcc2b4..28dba6c

[PATCH 4/4] HID: hid-sony: PS Move fix report descriptor

2015-06-09 Thread Simon Wood
'fixing' their byte order would break user-space drivers such as PSMoveAPI. It is hoped to resolve this at a future time. Signed-off-by: Simon Wood --- drivers/hid/hid-sony.c | 69 -- 1 file changed, 44 insertions(+), 25 deletions(-) di

[PATCH 2/4] HID_ hid-sony_ Add support PS3 Move Battery via BT

2015-06-09 Thread Simon Wood
Add support for the battery charge level and state to be read via BT. This is not support via USB as there is no know way to get the device sending 'input' reports over USB. Signed-off-by: Simon Wood --- drivers/hid/hid-sony.c | 15 +++ 1 file changed, 11 insertions(+), 4

[PATCH] HID: hid-sony: Support PS3 Move Controller when connected via Bluetooth

2015-06-03 Thread Simon Wood
Signed-off-by: Simon Wood --- drivers/hid/hid-core.c | 1 + drivers/hid/hid-sony.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index aefb248..044e96a 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -1960,6 +1960,7

[PATCH] HID: hid-sony: Prevent LED overrun

2015-02-17 Thread Simon Wood
27;s own interface. Patch limits the LEDs 'value' to the 'max brightness', thus preventing bug. Tested with SixAxis DS3, DS4 and Intec (3rd party) controllers, via USB connection. Signed-off-by: Simon Wood --- drivers/hid/hid-sony.c | 3 +++ 1 file changed, 3 insertions(+) diff --

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

2015-02-13 Thread Simon Wood
Hi all, I tested this with a DFP, G27 and WiiWheell was looking good, but then I found a small bug. It seems that the requested mode is case sensitive. 'G25' works, but 'g25' is seen as a request for a 'DF-GT' and causes and error. Sorry I didn't see this earlier. I'd be happy to apply and fix la

[RFC 3/4] HID:hid-logitech: Use new native switch method

2014-08-20 Thread Simon Wood
--- drivers/hid/hid-lg4ff.c | 126 +--- 1 file changed, 55 insertions(+), 71 deletions(-) diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c index eda07a2..0ba0838 100644 --- a/drivers/hid/hid-lg4ff.c +++ b/drivers/hid/hid-lg4ff.c @@ -32,21

[RFC 4/4] HID:hid-logitech: Add mode control via /sys interface

2014-08-20 Thread Simon Wood
--- drivers/hid/hid-lg4ff.c | 81 +++-- 1 file changed, 78 insertions(+), 3 deletions(-) diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c index 0ba0838..1be561e 100644 --- a/drivers/hid/hid-lg4ff.c +++ b/drivers/hid/hid-lg4ff.c @@ -41,11 +

[RFC 2/4] HID:hid-logitech: New detection of native capable devices

2014-08-20 Thread Simon Wood
es[i].product_id); - break; - } - } - - if (i == ARRAY_SIZE(lg4ff_devices)) { - hid_err(hid, "Device is not supported by lg4ff driver. If you think it should be, consider reporting a bug to" - "LKML,

[RFC 1/4] HID:hid-logitech: Add modparam to allow/disable switch to native mode

2014-08-20 Thread Simon Wood
--- drivers/hid/hid-lg.c| 17 - drivers/hid/hid-lg.h| 7 +-- drivers/hid/hid-lg4ff.c | 4 ++-- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c index a976f48..81ba24d 100644 --- a/drivers/hid/hid-lg.c +++ b/dr

[PATCHv2] HID:hid-logitech: Prevent possibility of infinite loop when using /sys interface

2014-08-14 Thread Simon Wood
If the device data is not accessible for some reason, returning 0 will cause the call to be continuously called again as none of the string has been 'consumed'. Signed-off-by: Simon Wood --- drivers/hid/hid-lg4ff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH] HID:hid-logitech: Prevent possibility of infinite loop when using /sys interface

2014-08-06 Thread Simon Wood
If the device data is not accessible for some reason, returning 0 will cause the call to be continuously called again as none of the string has been 'consumed'. --- drivers/hid/hid-lg4ff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hi

[PATCH] HID: hid-lg4ff: Support new version of G27

2014-03-13 Thread Simon Wood
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" Tested-by: "evilcow" Signed-off-by: Simon Wood ---

[PATCH] HID: hid-sony Report actual brightness value when reading LED

2014-02-05 Thread Simon Wood
that it returns the value (rather than just off=0, on=LED_FULL). Tested on the DS4 and SixAxis (for compatibility). Signed-off-by: Simon Wood --- drivers/hid/hid-sony.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.

[PATCH 1/5] HID:hid-lg4ff: Scale autocentering force properly on Logitech wheel

2013-11-06 Thread Simon Wood
Adjust the scaling and lineartity to match that of the Windows driver (from MOMO testing). Reported-by: Elias Vanderstuyft Signed-off-by: Simon Wood --- drivers/hid/hid-lg4ff.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/hid/hid-lg4ff.c b

[PATCH 3/5] HID:hid-lg4ff: ensure ConstantForce is disabled when set to 0

2013-11-06 Thread Simon Wood
When 'Constant Force' is set to 0 it is not turned off completely, the wheel feels 'heavy'. This patch issues the '13 00..' command to ensure that the force in slot 1 (the Constant Force) is deactivated. Reported-by: Elias Vanderstuyft Signed-off-by: Simon Wood ---

[PATCH 2/5] HID:hid-lg4ff: Switch autocentering off when strength is set to zero.

2013-11-06 Thread Simon Wood
When the autocenter is set to zero, this patch issues a command to totally disable the autocenter - this results in less resistance in the wheel. Reported-by: Elias Vanderstuyft Signed-off-by: Simon Wood --- drivers/hid/hid-lg4ff.c | 25 + 1 file changed, 25 insertions

[PATCH 4/5] HID:hid-lg4ff: Initialize device properties before we touch autocentering.

2013-11-06 Thread Simon Wood
Re-arrange code slightly to ensure that device properties are configured before calling auto-center command. Reported-by: Michal Malý Signed-off-by: Simon Wood --- drivers/hid/hid-lg4ff.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/hid

[PATCH 5/5] HID:hid-lg4ff: Correct Auto-center strength for wheels other than MOMO and MOMO2

2013-11-06 Thread Simon Wood
The MOMO and MOMO2 wheels have a slightly different autocenter command, and accept values in the range 0..F (rather than 0..7 for the other wheels). This patch uses the product ID to determine how to compute the strength. Signed-off-by: Simon Wood --- drivers/hid/hid-lg4ff.c | 24

[PATCHv2 3/3] HID:Kconfig: Correct MOMO description in wrong place (handled by LG4FF).

2013-10-10 Thread Simon Wood
Minor correction to the description in Kconfig. The Logitect MOMO wheel is actually handled by the LOGITECH_WHEELS (hid-lg4ff) section, not by the LOGITECH_FF (hid-lgff). Signed-off-by: Simon Wood --- drivers/hid/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/hid/Kconfig b

[PATCHv2 2/3] HID:hid-lg: Fixed Report Descriptor for Logitech MOMO Force (Black) to split Accel/Brake into seperate axis

2013-10-10 Thread Simon Wood
By default the Logitech MOMO Force (Black) presents a combined accel/brake axis ('Y'). This patch modifies the HID descriptor to present seperate accel/brake axes ('Y' and 'Z'). Signed-off-by: Simon Wood --- drivers/hid/hid-lg.c | 58 ++

[PATCHv2 1/3] HID:hid-lg: Fixed ReportDescriptor for Logitech Formula Vibration to split Accel/Brake into seperate axis

2013-10-10 Thread Simon Wood
Requires https://patchwork.kernel.org/patch/2998241/ By default the Logitech Formula Vibration presents a combined accel/brake axis ('Y'). This patch modifies the HID descriptor to present seperate accel/brake axes ('Y' and 'Z'). Signed-off-by: Simon Wood

[PATCH 2/3] HID:hid-lg: Fixed Report Descriptor for Logitech MOMO Force (Black) to split Accel/Brake into seperate axis

2013-10-09 Thread Simon Wood
Signed-off-by: Simon Wood --- drivers/hid/hid-lg.c | 58 1 file changed, 58 insertions(+) diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c index c6efdae..545da44 100644 --- a/drivers/hid/hid-lg.c +++ b/drivers/hid/hid-lg.c @@ -47,6

[PATCH 3/3] HID:Kconfig: Correct MOMO description in wrong place (handled by LG4FF).

2013-10-09 Thread Simon Wood
Signed-off-by: Simon Wood --- drivers/hid/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 46fd27f..aee7182 100644 --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig @@ -362,7 +362,6 @@ config LOGITECH_FF - Logitech WingMan

[PATCH 1/3] HID:hid-lg: Fixed ReportDescriptor for Logitech Formular Vibration to split Accel/Brake into seperate axis

2013-10-09 Thread Simon Wood
Requires https://patchwork.kernel.org/patch/2998241/ Signed-off-by: Simon Wood --- drivers/hid/hid-lg.c | 77 1 file changed, 77 insertions(+) diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c index c2c7dab..c6efdae 100644 --- a

[PATCH-V2] HID: hid-steelseries fix led class build issue

2013-05-02 Thread Simon Wood
7; -- Patch allows LED control when led-class is built in, or both hid-steelseries _and_ led-class are both modules. Reported-by: Randy Dunlap Signed-off-by: Simon Wood --- drivers/hid/hid-steelseries.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH] HID: hid-steelseries fix led class build issue

2013-05-01 Thread Simon Wood
7; -- Patch allows LED control when led-class is built in, or both hid-steelseries _and_ led-class are both modules. Signed-off-by: Simon Wood --- drivers/hid/hid-steelseries.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/hid/hid-steelseries.c b/drivers/hid/

[PATCH] HID: hid-steelseries fix led class build issue

2013-05-01 Thread Simon Wood
Fixes 'undefined reference' issue when hid-steelseries is built in, but led-class is a module. -- drivers/built-in.o: In function `steelseries_srws1_remove': hid-steelseries.c:(.text+0x3b97a1): undefined reference to `led_classdev_unregister' drivers/built-in.o: In function `steelseries_srws1_prob

[PATCH] HID: hid-lg4ff add support for new version of DFGT wheel

2013-04-26 Thread Simon Wood
It has been reported that there is a new version (different USB rev) of the Logitech DFGT in the 'wild'. This patch allows the kernel to recognise this wheel and send it the command to enter native mode. Reported-by: "Denis Jovic" Signed-off-by: Simon Wood --- drivers

[PATCH 5/5] HID: Correct Logitech order in hid-ids.h

2013-02-19 Thread Simon Wood
Reorders a couple of device IDs (Logitech controllers) to ensure that they are in hexidecimal order. Signed-off-by: Simon Wood --- drivers/hid/hid-ids.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 34e2547..865492c

[PATCH 2/5] HID: LG: Fix detection of Logitech Speed Force Wireless (WiiWheel)

2013-02-19 Thread Simon Wood
Previously 'LG4FF' was only used for the WiiWheel, however it is now used for all the Logitech Wheels. This patch corrects the detection mechanism for the patching the report descriptor to ensure only the WiiWheel will be patched. Signed-off-by: Simon Wood --- drivers/hid/hid-l

[PATCH 1/5] HID: LG: Add support for Logitech Momo Force (Red) Wheel

2013-02-19 Thread Simon Wood
Signed-off-by: Simon Wood --- drivers/hid/hid-lg.c | 58 +- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c index 6bb7f05..160c489 100644 --- a/drivers/hid/hid-lg.c +++ b/drivers/hid/hid-lg.

[PATCH 4/5] HID: LG4FF: Remove unnecessary deadzone code

2013-02-19 Thread Simon Wood
This patch removes code which is now unnecessary for setting the fuzz/flat characterics for the logitech DFP wheel. This is now done in the previous patch by marking the wheel as a multi-axis device. Signed-off-by: Simon Wood --- drivers/hid/hid-lg4ff.c | 17 - 1 file changed

[PATCH 3/5] HID: LG: Prevent the Logitech Gaming Wheels deadzone

2013-02-19 Thread Simon Wood
This patch ensures that the Logitech wheels are not initialised with default fuzz/flat values, by marking them as multiaxis devices (rather than joysticks). Signed-off-by: Simon Wood --- drivers/hid/hid-lg.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/hid

[PATCH 3/5] USB: HID: Steelseries SRW-S1 Add support for LEDs

2013-01-31 Thread Simon Wood
This patch to the SRW-S1 driver adds support for the LED RPM meter on the front of the device. The LEDs are controlled via /sys/class/leds interface, with an individual control for each of the 15 LEDs. Signed-off-by: Simon Wood Tested-by: John Murphy --- Documentation/ABI/testing/sysfs-driver

[PATCH 1/5] USB: HID: SRW-S1 Gaming Wheel Driver

2013-01-31 Thread Simon Wood
Add support the SRW-S1 by patching HID descriptor to read axis as Generic Desktop X, Y and Z (rather than Usage page being 'Simulation'). Signed-off-by: Simon Wood Tested-by: John Murphy --- drivers/hid/Kconfig |6 drivers/hid/Makefile|1

  1   2   >