[ebeam PATCH v2 1/2] hid: Blacklist eBeam devices

2015-08-22 Thread Yann Cantin
Add known eBeam devices usb ids. Prevent hid-generic to take over these devices. This breaks Luidia's proprietary application suite. Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/hid/hid-core.c | 6 ++ drivers/hid/hid-ids.h | 6 ++ drivers/input/misc/Kconfig

[ebeam PATCH v2 0/2] Add a new USB eBeam input driver

2015-08-22 Thread Yann Cantin
://lkml.org/lkml/2015/7/20/634 : Use DEVICE_ATTR_RW() RFC https://lkml.org/lkml/2015/7/21/107 : move usb id definitions out of ebeam.c RFC https://lkml.org/lkml/2015/7/20/657 : Fix ABI documentation Thanks for your help. Yann Cantin (2): hid: Blacklist eBeam devices input: misc: New USB eBeam input

[ebeam PATCH v2 2/2] input: misc: New USB eBeam input driver

2015-08-22 Thread Yann Cantin
and a calibration trigger. - need userspace gui tool for calibration (ebeam.tuxfamily.org) Signed-off-by: Yann Cantin yann.can...@laposte.net --- Documentation/ABI/testing/sysfs-driver-ebeam | 53 ++ drivers/input/misc/ebeam.c | 759 +++ 2 files changed

[RFC ebeam PATCH v2 1/2] hid: Blacklist eBeam devices

2015-07-25 Thread Yann Cantin
Add known eBeam devices usb ids. Prevent hid-generic to take over these devices. This breaks Luidia's proprietary application suite. Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/hid/hid-core.c | 6 ++ drivers/hid/hid-ids.h | 6 ++ 2 files changed, 12 insertions

[RFC ebeam PATCH v2 2/2] input: misc: New USB eBeam input driver

2015-07-25 Thread Yann Cantin
and a calibration trigger. - need userspace gui tool for calibration (ebeam.tuxfamily.org) Signed-off-by: Yann Cantin yann.can...@laposte.net --- Documentation/ABI/testing/sysfs-driver-ebeam | 53 ++ drivers/input/misc/Kconfig | 22 + drivers/input/misc/Makefile

[RFC ebeam PATCH v2 0/2] Add a new USB eBeam input driver

2015-07-25 Thread Yann Cantin
://lkml.org/lkml/2015/7/20/634 : Use DEVICE_ATTR_RW() RFC https://lkml.org/lkml/2015/7/21/107 : move usb id definitions out of ebeam.c RFC https://lkml.org/lkml/2015/7/20/657 : Fix ABI documentation Thanks for your help. Yann Cantin (2): hid: Blacklist eBeam devices input: misc: New USB eBeam input

Re: [RFC ebeam PATCH 2/2] input: misc: New USB eBeam input driver

2015-07-21 Thread Yann Cantin
Hi, Le 20/07/2015 23:59, Greg KH a écrit : On Mon, Jul 20, 2015 at 11:03:19PM +0200, Yann Cantin wrote: diff --git a/Documentation/ABI/testing/sysfs-driver-ebeam b/Documentation/ABI/testing/sysfs-driver-ebeam +++ b/Documentation/ABI/testing/sysfs-driver-ebeam @@ -0,0 +1,53 @@ +What

Re: [RFC ebeam PATCH 2/2] input: misc: New USB eBeam input driver

2015-07-21 Thread Yann Cantin
Hi, Le 21/07/2015 00:40, Greg KH a écrit : On Mon, Jul 20, 2015 at 03:26:40PM -0700, Dmitry Torokhov wrote: On Mon, Jul 20, 2015 at 02:59:56PM -0700, Greg KH wrote: On Mon, Jul 20, 2015 at 11:03:19PM +0200, Yann Cantin wrote: Signed-off-by: Yann Cantin yann.can...@laposte.net

Re: [RFC ebeam PATCH 2/2] input: misc: New USB eBeam input driver

2015-07-21 Thread Yann Cantin
Hi, Le 21/07/2015 10:19, Oliver Neukum a écrit : On Mon, 2015-07-20 at 23:03 +0200, Yann Cantin wrote: diff --git a/drivers/input/misc/ebeam.c b/drivers/input/misc/ebeam.c new file mode 100644 index 000..79cac51 --- /dev/null +++ b/drivers/input/misc/ebeam.c +/* Electronics

[RFC ebeam PATCH 2/2] input: misc: New USB eBeam input driver

2015-07-20 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- Documentation/ABI/testing/sysfs-driver-ebeam | 53 ++ drivers/input/misc/Kconfig | 22 + drivers/input/misc/Makefile | 1 + drivers/input/misc/ebeam.c | 777

[RFC ebeam PATCH 1/2] hid: Blacklist eBeam devices

2015-07-20 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/hid/hid-core.c | 6 ++ drivers/hid/hid-ids.h | 6 ++ 2 files changed, 12 insertions(+) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 157c627..db4c7ee 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid

[RFC ebeam PATCH 0/3] new USB eBeam input driver

2015-07-20 Thread Yann Cantin
Hi, New USB input driver for eBeam devices. Currently supported (tested) : - Luidia eBeam classic projection and edge projection models - Nec interactive solution NP01Wi1 NP01Wi2 accessories. Patch 1 to blacklist the devices for hid generic-usb. Patch 2 is the actual driver. Notable stuff :

[PATCH v2 1/2] hid: Blacklist eBeam devices

2013-08-30 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/hid/hid-core.c | 3 +++ drivers/hid/hid-ids.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 36668d1..da5dfa0 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid

[PATCH v2 0/2] new USB eBeam input driver

2013-08-30 Thread Yann Cantin
Hi, New USB input driver for eBeam devices. Currently supported (tested) : - Luidia eBeam classic projection and edge projection models - Nec interactive solution NP01Wi1 NP01Wi2 accessories. From basic usb point of view, all these devices are indistinguishable : they have the same usb ids

[PATCH v2 2/2] input: misc: New USB eBeam input driver

2013-08-30 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- Documentation/ABI/testing/sysfs-driver-ebeam | 53 ++ drivers/input/misc/Kconfig | 22 + drivers/input/misc/Makefile | 1 + drivers/input/misc/ebeam.c | 759

Re: [PATCH 2/2] input: misc: New USB eBeam input driver

2013-08-21 Thread Yann Cantin
, ebeam_attr_group); out_free_usb: usb_set_intfdata(intf, NULL); usb_free_urb(ebeam-irq); out_free_buffers: ebeam_free_buffers(udev, ebeam); out_free: input_free_device(input_dev); kfree(ebeam); return err; } Thanks, -- Yann Cantin A4FEB47F

[PATCH 1/2] hid: Blacklist eBeam devices

2013-08-16 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/hid/hid-core.c | 3 +++ drivers/hid/hid-ids.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 36668d1..da5dfa0 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid

[PATCH 2/2] input: misc: New USB eBeam input driver

2013-08-16 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- Documentation/ABI/testing/sysfs-driver-ebeam | 53 ++ drivers/input/misc/Kconfig | 22 + drivers/input/misc/Makefile | 1 + drivers/input/misc/ebeam.c | 763

[PATCH 0/2] new USB eBeam input driver

2013-08-16 Thread Yann Cantin
Hi, New USB input driver for eBeam devices. Currently supported (tested) : - Luidia eBeam classic projection and edge projection models - Nec interactive solution NP01Wi1 NP01Wi2 accessories. From basic usb point of view, all these devices are indistinguishable : they have the same usb ids and

[RFC ebeam PATCH 0/2] new USB eBeam input driver

2013-07-24 Thread Yann Cantin
Hi, New USB input driver for eBeam devices. Currently supported (tested) : - Luidia eBeam classic projection and edge projection models - Nec interactive solution NP01Wi1 NP01Wi2 accessories. From basic usb point of view, all these devices are indistinguishable : they have the same usb ids and

[RFC ebeam PATCH 2/2] input: misc: New USB eBeam input driver

2013-07-24 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- Documentation/ABI/testing/sysfs-driver-ebeam | 53 ++ drivers/input/misc/Kconfig | 22 + drivers/input/misc/Makefile | 1 + drivers/input/misc/ebeam.c | 763

[RFC ebeam PATCH 1/2] hid: Blacklist eBeam devices

2013-07-24 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/hid/hid-core.c | 3 +++ drivers/hid/hid-ids.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 36668d1..da5dfa0 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid

Re: [ebeam PATCH v2 1/2] hid: Blacklist eBeam devices

2012-10-10 Thread Yann Cantin
with the risk of breaking other hypothetical support, even proprietary. -- Yann Cantin A4FEB47F -- -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [eBeam PATCH 2/2] input: misc: New USB eBeam input driver.

2012-09-05 Thread Yann Cantin
for a marginal gain. -- Yann Cantin A4FEB47F -- -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[eBeam PATCH 0/2] new USB eBeam input driver

2012-09-01 Thread Yann Cantin
Hi, New USB input driver for eBeam devices. Currently supported (tested) : - Luidia eBeam classic projection and edge projection models - Nec interactive solution NP01Wi1 NP01Wi2 for video-projectors. There's others devices (includind re-branded ones) in the wild that should be supported out

[eBeam PATCH 1/2] hid: Blacklist eBeam devices

2012-09-01 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/hid/hid-core.c |3 +++ drivers/hid/hid-ids.h |3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 8bf8a64..b4b0baf 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid

[eBeam PATCH 2/2] input: misc: New USB eBeam input driver.

2012-09-01 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/input/misc/Kconfig | 22 ++ drivers/input/misc/Makefile |1 + drivers/input/misc/ebeam.c | 750 +++ 3 files changed, 773 insertions(+) create mode 100644 drivers/input/misc/ebeam.c

Re: [RFC ebeam PATCH v4 2/2] input: misc: New USB eBeam input driver.

2012-08-24 Thread Yann Cantin
Hi, Le 23/08/2012 09:23, Oliver Neukum a écrit : On Thursday 23 August 2012 00:11:54 Yann Cantin wrote: +static int ebeam_resume(struct usb_interface *intf) +{ + struct ebeam_device *ebeam = usb_get_intfdata(intf); + struct input_dev *input = ebeam-input; + int result = 0

Re: [RFC ebeam PATCH v4 2/2] input: misc: New USB eBeam input driver.

2012-08-24 Thread Yann Cantin
Hi, Le 24/08/2012 13:41, Oliver Neukum a écrit : On Friday 24 August 2012 11:37:45 Yann Cantin wrote: Hi, Le 23/08/2012 09:23, Oliver Neukum a écrit : On Thursday 23 August 2012 00:11:54 Yann Cantin wrote: These functions are identical. You should unify them. Removed reset_resume from

[RFC ebeam PATCH v4 0/2] new USB eBeam input driver

2012-08-22 Thread Yann Cantin
Hi, New USB input driver for eBeam devices. Currently supported (tested) : - Luidia eBeam classic projection and edge projection models - Nec interactive solution NP01Wi1 NP01Wi2 accessories. In fact, from basic usb point of view, all these devices are indistinguishable : they have the same

[RFC ebeam PATCH v4 1/2] hid: Blacklist eBeam devices

2012-08-22 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/hid/hid-core.c |3 +++ drivers/hid/hid-ids.h |3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 60ea284..efc68c8 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid

[RFC ebeam PATCH v4 2/2] input: misc: New USB eBeam input driver.

2012-08-22 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/input/misc/Kconfig | 22 ++ drivers/input/misc/Makefile |1 + drivers/input/misc/ebeam.c | 766 +++ 3 files changed, 789 insertions(+) create mode 100644 drivers/input/misc/ebeam.c

Re: [RFC ebeam PATCH v3 2/2] input: misc: New USB eBeam input driver.

2012-08-07 Thread Yann Cantin
Le 07/08/2012 03:43, Dmitry Torokhov a écrit : On Tue, Aug 07, 2012 at 02:56:40AM +0200, Yann Cantin wrote: Hi, Le 06/08/2012 23:43, Greg KH a écrit : On Mon, Aug 06, 2012 at 11:21:44PM +0200, Yann Cantin wrote: Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/input/misc

Re: [RFC ebeam PATCH v3 1/2] hid: Blacklist new eBeam classic device

2012-08-07 Thread Yann Cantin
Le 07/08/2012 03:45, Dmitry Torokhov a écrit : On Tue, Aug 07, 2012 at 03:21:45AM +0200, Yann Cantin wrote: Le 07/08/2012 00:07, Dmitry Torokhov a écrit : On Monday, August 06, 2012 02:43:40 PM Greg KH wrote: On Mon, Aug 06, 2012 at 11:21:43PM +0200, Yann Cantin wrote: Signed-off-by: Yann

[RFC ebeam PATCH v3 1/2] hid: Blacklist new eBeam classic device

2012-08-06 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/hid/hid-core.c |3 +++ drivers/hid/hid-ids.h |3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 60ea284..b1ed8ee 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid

[RFC ebeam PATCH v3 0/2]

2012-08-06 Thread Yann Cantin
Hi, New USB input driver for eBeam devices. Currently, only the Luidia eBeam classic projection model is supported. Edge model and a NEC interactive video-projector support planned for the end of the mounth. Patch 1 to blacklist the device for hid generic-usb. Patch 2 is the actual driver.

[RFC ebeam PATCH v3 2/2] input: misc: New USB eBeam input driver.

2012-08-06 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/input/misc/ebeam.c | 764 1 file changed, 764 insertions(+) create mode 100644 drivers/input/misc/ebeam.c diff --git a/drivers/input/misc/ebeam.c b/drivers/input/misc/ebeam.c new file

Re: [RFC ebeam PATCH v3 2/2] input: misc: New USB eBeam input driver.

2012-08-06 Thread Yann Cantin
Hi, Le 06/08/2012 23:43, Greg KH a écrit : On Mon, Aug 06, 2012 at 11:21:44PM +0200, Yann Cantin wrote: Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/input/misc/ebeam.c | 764 1 file changed, 764 insertions(+) create mode

Re: [RFC ebeam PATCH v3 1/2] hid: Blacklist new eBeam classic device

2012-08-06 Thread Yann Cantin
Le 07/08/2012 00:07, Dmitry Torokhov a écrit : On Monday, August 06, 2012 02:43:40 PM Greg KH wrote: On Mon, Aug 06, 2012 at 11:21:43PM +0200, Yann Cantin wrote: Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/hid/hid-core.c |3 +++ drivers/hid/hid-ids.h |3 +++ 2

Re: [RFC ebeam PATCH v3 0/2]

2012-08-06 Thread Yann Cantin
Le 07/08/2012 00:09, Dmitry Torokhov a écrit : On Monday, August 06, 2012 02:44:23 PM Greg KH wrote: On Mon, Aug 06, 2012 at 11:21:42PM +0200, Yann Cantin wrote: Hi, New USB input driver for eBeam devices. Currently, only the Luidia eBeam classic projection model is supported. Edge model

Re: [RFC ebeam PATCH v2 0/3] new USB eBeam input driver

2012-08-03 Thread Yann Cantin
iteration of the patchset (i don't think i need to resubmit now with this change only, no?) Thanks. -- Yann Cantin A4FEB47F -- -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [RFC ebeam PATCH v2 3/3] input: misc: New USB eBeam input driver.

2012-08-03 Thread Yann Cantin
suggest checking the length, making sure that you don't overflow the -name buffer. Something like this ? : if (strlcat(ebeam-name, ), sizeof(ebeam-name))=sizeof(ebeam-name)) { // overflowed, closing ) anyway ebeam-name[sizeof(ebeam-name)-2] = ')'; Thanks. -- Yann Cantin A4FEB47F

[RFC ebeam PATCH v2 0/3] new USB eBeam input driver

2012-08-02 Thread Yann Cantin
Hi, Second test-drive for a new USB input driver for eBeam devices. Following Dmitry's advice, i've remove device specific infrastructure. Currently, only the Luidia eBeam classic projection model is supported. Patch 1 and 2 are here to let the ebeam driver be choose to handle the device

[RFC ebeam PATCH v2 1/3] hid: hid-ids.h: Add vendor and device ID for eBeam classic device.

2012-08-02 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/hid/hid-ids.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 1dcb76f..b985059 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -271,6 +271,9 @@ #define

[RFC ebeam PATCH v2 3/3] input: misc: New USB eBeam input driver.

2012-08-02 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/input/misc/Kconfig | 16 + drivers/input/misc/Makefile |1 + drivers/input/misc/ebeam.c | 760 +++ 3 files changed, 777 insertions(+) create mode 100644 drivers/input/misc/ebeam.c

Re: [RFC ebeam PATCH 3/3] input: misc: New USB eBeam input driver.

2012-07-30 Thread Yann Cantin
. Actually I am hesitant to add infrastructure if it is unclear if we need it at all. Understand. I've thrown some hook to see if i can get my hands on other devices. In the meantime, i'll bet on uniform support and strip down the driver. Wish me luck. Thanks. -- Yann Cantin A4FEB47F

Re: [RFC ebeam PATCH 3/3] input: misc: New USB eBeam input driver.

2012-07-28 Thread Yann Cantin
or are they going to follow roughly the same protocol? ditto. -- Yann Cantin A4FEB47F -- -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[RFC ebeam PATCH 0/3] new USB eBeam input driver

2012-07-27 Thread Yann Cantin
Hi, This patchset is a test-drive for a new USB input driver for eBeam devices. Currently, only the Luidia eBeam classic projection model is supported (usb id known). Patch 1 and 2 are here to let the ebeam driver be choose to handle the device instead of the generic-usb hid one (totally

[RFC ebeam PATCH 1/3] hid: hid-ids.h: Add vendor and device ID for eBeam classic device.

2012-07-27 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/hid/hid-ids.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 41c34f2..8cd4b8e 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -271,6 +271,9 @@ #define

[RFC ebeam PATCH 3/3] input: misc: New USB eBeam input driver.

2012-07-27 Thread Yann Cantin
Signed-off-by: Yann Cantin yann.can...@laposte.net --- drivers/input/misc/Kconfig | 21 + drivers/input/misc/Makefile |1 + drivers/input/misc/ebeam.c | 895 +++ 3 files changed, 917 insertions(+) create mode 100644 drivers/input/misc/ebeam.c

Re: New input driver for eBeam device (ask for review)

2012-07-26 Thread Yann Cantin
into that subsystem. Will do so, but for now, this is mainly the usb and irq parts that freaks me :) thanks, -- Yann Cantin A4FEB47F -- -- To unsubscribe from this list: send the line unsubscribe linux-usb in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

New input driver for eBeam device (ask for review)

2012-07-22 Thread Yann Cantin
(C) 2012 Yann Cantin (yann.can...@laposte.net) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your