[PATCH v4 2/3] bfin_rotary: Move peripheral pinmux definition into platform data of bf527

2015-02-04 Thread Sonic Zhang
From: Sonic Zhang v3-changes: - Pinctrl API is used to set up counter pinmux on bf548 and bf609. Pinmux list is use less on bf548 and bf609. v4-changes: - Forgot to replace per_cnt with pdata->pin_list in bfin_rotary_probe(). Signed-off-by: Sonic Zhang --- arch/blackfin/mach-bf527/boards/ad7

[PATCH v4 3/3] bfin_rotary: replace bfin specific MMR function with generic IO function

2015-02-04 Thread Sonic Zhang
From: Sonic Zhang - use readw and writew to access rotary MMRs - remap rotary register physical address into kernel space in probe v2-changes: - replace kzalloc with devm_kzalloc - replace request_irq with devm_request_irq - remove memory free and irq free from the device remove function v3-cha

Re: [PATCH v3 2/3] bfin_rotary: Move peripheral pinmux definition into platform data of bf527

2015-02-04 Thread Sonic Zhang
Hi Dmitry, On Thu, Feb 5, 2015 at 3:44 AM, Dmitry Torokhov wrote: > Hi Sonic, > > On Wed, Feb 04, 2015 at 03:58:04PM +0800, Sonic Zhang wrote: >> @@ -102,7 +95,7 @@ static int bfin_rotary_probe(struct platform_device *pdev) >> return -EINVAL; >> } >> >> - error = periphera

Re: [PATCH v6 3/6] mfd: ti_am335x_tscadc: Remove unwanted reg_se_cache save

2015-02-04 Thread Vignesh R
On Wednesday 21 January 2015 03:44 PM, Vignesh R wrote: > On Tuesday 20 January 2015 09:34 PM, Lee Jones wrote: >> On Tue, 20 Jan 2015, R, Vignesh wrote: >>> On 1/20/2015 5:23 PM, Lee Jones wrote: On Wed, 07 Jan 2015, Vignesh R wrote: > In one shot mode, sequencer automatically disa

[PATCH] bfin: check if an empty array pointer is passed to pinmux request API

2015-02-04 Thread Sonic Zhang
From: Sonic Zhang to avoid possible indigestion Signed-off-by: Sonic Zhang --- arch/blackfin/kernel/bfin_gpio.c |4 1 file changed, 4 insertions(+) diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c index a017359..153841f 100644 --- a/arch/blackfin/kerne

Re: [PATCH v3 2/3] bfin_rotary: Move peripheral pinmux definition into platform data of bf527

2015-02-04 Thread Sonic Zhang
Hi Dmitry, On Thu, Feb 5, 2015 at 3:44 AM, Dmitry Torokhov wrote: > Hi Sonic, > > On Wed, Feb 04, 2015 at 03:58:04PM +0800, Sonic Zhang wrote: >> @@ -102,7 +95,7 @@ static int bfin_rotary_probe(struct platform_device *pdev) >> return -EINVAL; >> } >> >> - error = periphera

Re: Mayflash / Dragonrise GameCube controller adapter recognized as tablet, not joystick

2015-02-04 Thread Andrew Rodland
On Wed, Feb 4, 2015 at 7:48 PM, Dmitry Torokhov wrote: > Hi Andrew, > > > From the list of events you posted below it seems the device needs > HID_QUIRK_MULTI_INPUT to split it into 4 individual input devices. > That did the trick neatly. Everything works, although no force feedback (and sadly hac

Re: [PATCH 2/4] Input - synaptics: do not release extra buttons once they are pressed

2015-02-04 Thread Andrew Duggan
On 02/04/2015 01:29 PM, Benjamin Tissoires wrote: On Feb 02 2015 or thereabouts, Benjamin Tissoires wrote: On Mon, Feb 2, 2015 at 4:46 PM, Dmitry Torokhov wrote: On Wed, Jan 28, 2015 at 03:10:05PM -0500, Benjamin Tissoires wrote: The current code releases the extra buttons right after they ar

Re: Mayflash / Dragonrise GameCube controller adapter recognized as tablet, not joystick

2015-02-04 Thread Dmitry Torokhov
Hi Andrew, On Wed, Feb 4, 2015 at 4:34 PM, Andrew Rodland wrote: > Hi all, > > I recently bought a "Mayflash GameCube Controller Adapter for Wii U & > PC USB". It has 4 GameCube controller ports, and a switch to tell it > whether you're plugging it into a Wii or a PC. The docs say that in PC > mo

Mayflash / Dragonrise GameCube controller adapter recognized as tablet, not joystick

2015-02-04 Thread Andrew Rodland
Hi all, I recently bought a "Mayflash GameCube Controller Adapter for Wii U & PC USB". It has 4 GameCube controller ports, and a switch to tell it whether you're plugging it into a Wii or a PC. The docs say that in PC mode it works out of the box on Windows & Mac, with their driver being required

[PATCH v2] Add missing ABS_MISC event and feature declaration for 27QHD

2015-02-04 Thread Ping Cheng
27QHD has the same x_min/y_min (WACOM_CINTIQ_OFFSET) as other Cintiqs. ABS_MISC event is required for PAD packet to work properly with xf86-input-wacom. Signed-off-by: Ping Cheng --- v2: v1 updated the wrong line for features_0x32A. --- drivers/hid/wacom_wac.c | 11 --- 1 file changed,

[PATCH] Add missing ABS_MISC event and feature declaration for 27QHD

2015-02-04 Thread Ping Cheng
27QHD has the same x_min/y_min (WACOM_CINTIQ_OFFSET) as other Cintiqs. ABS_MISC event is required for PAD packet to work properly with xf86-input-wacom. Signed-off-by: Ping Cheng --- drivers/hid/wacom_wac.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/hid/w

Re: [PATCH 2/4] Input - synaptics: do not release extra buttons once they are pressed

2015-02-04 Thread Benjamin Tissoires
On Feb 02 2015 or thereabouts, Benjamin Tissoires wrote: > On Mon, Feb 2, 2015 at 4:46 PM, Dmitry Torokhov > wrote: > > On Wed, Jan 28, 2015 at 03:10:05PM -0500, Benjamin Tissoires wrote: > >> The current code releases the extra buttons right after they are pressed. > >> As soon as a new serio rep

Re: input: elantech.c: adding more Fujtisu notebooks to force crc_enabled

2015-02-04 Thread Vincent Jaubert
Log sent to Sam. On Wed, Feb 4, 2015 at 1:02 PM, 洪一竹 wrote: > Dear Vincent: > > Without! > > BR, > Sam > -Original Message- > From: Vincent Jaubert [mailto:vjaub...@gmail.com] > Sent: Wednesday, February 04, 2015 7:56 PM > To: 洪一竹 > Cc: Rainer Koenig; duson; Dmitry Torokhov; linux-input@v

Re: [PATCH 1/4] Input - synaptics: fix middle button on Lenovo 2015 products

2015-02-04 Thread Dmitry Torokhov
On Wed, Feb 04, 2015 at 02:43:32PM -0500, Benjamin Tissoires wrote: > On Feb 02 2015 or thereabouts, Dmitry Torokhov wrote: > > On Wed, Jan 28, 2015 at 03:10:04PM -0500, Benjamin Tissoires wrote: > > > On the X1 Carbon 3rd gen (with a 2015 broadwell cpu), the physical middle > > > button of the tra

Re: [PATCH] bfin_rotary: convert to use managed resources

2015-02-04 Thread Dmitry Torokhov
On Wed, Feb 04, 2015 at 03:58:06PM +0800, Sonic Zhang wrote: > From: Sonic Zhang > > - remap rotary register physical address into kernel space in probe > - replace kzalloc with devm_kzalloc > - replace request_irq with devm_request_irq > - remove memory free and irq free from the device remove f

Re: [PATCH v3 3/3] bfin_rotary: replace bfin specific MMR function with generic IO function

2015-02-04 Thread Dmitry Torokhov
On Wed, Feb 04, 2015 at 03:58:05PM +0800, Sonic Zhang wrote: > From: Sonic Zhang > > - use readw and writew to access rotary MMRs > - remap rotary register physical address into kernel space in probe > > v2-changes: > - replace kzalloc with devm_kzalloc > - replace request_irq with devm_request_

Re: [PATCH v3 2/3] bfin_rotary: Move peripheral pinmux definition into platform data of bf527

2015-02-04 Thread Dmitry Torokhov
Hi Sonic, On Wed, Feb 04, 2015 at 03:58:04PM +0800, Sonic Zhang wrote: > @@ -102,7 +95,7 @@ static int bfin_rotary_probe(struct platform_device *pdev) > return -EINVAL; > } > > - error = peripheral_request_list(per_cnt, dev_name(&pdev->dev)); > + error = peripheral_re

Re: [PATCH 1/4] Input - synaptics: fix middle button on Lenovo 2015 products

2015-02-04 Thread Benjamin Tissoires
On Feb 02 2015 or thereabouts, Dmitry Torokhov wrote: > On Wed, Jan 28, 2015 at 03:10:04PM -0500, Benjamin Tissoires wrote: > > On the X1 Carbon 3rd gen (with a 2015 broadwell cpu), the physical middle > > button of the trackstick (attached to the touchpad serio device, of course) > > seems to get

Re: [PATCH 1/3] fixp-arith: replace sin/cos table by a better precision one

2015-02-04 Thread Dmitry Torokhov
On Wed, Feb 04, 2015 at 10:07:30AM +0100, Hans Verkuil wrote: > From: Mauro Carvalho Chehab > > The cos table used at fixp-arith.h has only 8 bits of precision. > That causes problems if it is reused on other drivers. > > As some media drivers require a higher precision sin/cos > implementation,

Re: [PATCH] input: driver for microcontroller keys on the iPaq h3xxx

2015-02-04 Thread Dmitry Torokhov
Hi Linus, On Wed, Feb 04, 2015 at 11:12:44AM +0100, Linus Walleij wrote: > From: Dmitry Artamonow > > This adds a key input driver for the keys found on the h3xxx > iPAQ series. > > Based on a driver from handhelds.org 2.6.21 kernel, written > by Alessandro GARDICH. > > Signed-off-by: Alessand

Re: [PATCH] MODULE_DEVICE_TABLE: fix gscps2

2015-02-04 Thread Dmitry Torokhov
On Wed, Feb 04, 2015 at 04:15:35PM +0100, Geert Uytterhoeven wrote: > The patch "module: fix types of device tables aliases" newly requires > that invocations of > > MODULE_DEVICE_TABLE(type, name); > > come *after* the definition of `name'. That is reasonable, but gscps2 > wasn't doing this. F

Re: [PATCH v6 5/8] iio: adc: fsl,imx25-gcq driver

2015-02-04 Thread Jonathan Cameron
On 29/01/15 14:09, Markus Pargmann wrote: > This is a conversion queue driver for the mx25 SoC. It uses the central > ADC which is used by two seperate independent queues. This driver > prepares different conversion configurations for each possible input. > For a conversion it creates a conversionq

Re: [PATCH v6 5/8] iio: adc: fsl,imx25-gcq driver

2015-02-04 Thread Jonathan Cameron
On 29/01/15 14:30, Varka Bhadram wrote: > Hi, > > On Thursday 29 January 2015 07:39 PM, Markus Pargmann wrote: >> This is a conversion queue driver for the mx25 SoC. It uses the central >> ADC which is used by two seperate independent queues. This driver >> prepares different conversion configurat

Re: [PATCH v6 2/8] ARM: dt: Binding documentation for imx25 GCQ

2015-02-04 Thread Jonathan Cameron
On 29/01/15 14:09, Markus Pargmann wrote: > The documentation describes the bindings for the imx25 GCQ unit which is > essentially a generic conversion queue using the imx25 ADC. > > Signed-off-by: Markus Pargmann > --- > > Notes: > Changes in v6: > - Moved the raw_read code out to a di

[PATCH v3][RFC] add raw video stream support for Samsung SUR40

2015-02-04 Thread Florian Echtler
This patch adds raw video support for the Samsung SUR40, now finally using videobuf2-dma-sg and the usb_sg_init/_wait helper functions. Further comments regarding buffer handling are invited, as v4l2-compliance -s still fails the USERPTR test. Signed-off-by: Florian Echtler --- drivers/input/tou

[PATCH] MODULE_DEVICE_TABLE: fix gscps2

2015-02-04 Thread Geert Uytterhoeven
The patch "module: fix types of device tables aliases" newly requires that invocations of MODULE_DEVICE_TABLE(type, name); come *after* the definition of `name'. That is reasonable, but gscps2 wasn't doing this. Fix it. Signed-off-by: Geert Uytterhoeven --- One more fix for your collection...

Re: [PATCH] Input - mt: Fix input_mt_get_slot_by_key

2015-02-04 Thread Benjamin Tissoires
On Feb 03 2015 or thereabouts, Henrik Rydberg wrote: > Hi Benjamin, > > > Slot 0 is released correclty, but when we look for Contact ID 2, the slot > > 0 is then picked up again because it is marked as inactive (trackingID < 0). > > > > This is wrong, and we should not reuse a slot in the same fr

Re: [PATCH] Input: evdev - add EVIOCREVOKE ioctl

2015-02-04 Thread Bruno Prémont
Hi David, On Wed, 04 February 2015 David Herrmann wrote: > On Wed, Feb 4, 2015 at 2:12 PM, Bruno Prémont wrote: > > Hi David, > > > > Sorry for reviving this old thread (I didn't find more recent patch series > > at first glance or have not been using the proper keyword while searching). > > > > A

Re: Input: atmel_mxt_ts - status of the for-dtor branch and sscanf issue

2015-02-04 Thread Dirk Behme
On 27.01.2015 18:31, Nick Dyer wrote: On 19/01/15 13:08, Dirk Behme wrote: we have two questions regarding the atmel_mxt_ts driver: First, what's the status of your github 'for-dtor' branch [1]? Is this subject to change? Or how stable is it? Will it go into mainline, soon? We've tested the pa

Re: [PATCH] add raw video support for Samsung SUR40 touchscreen

2015-02-04 Thread Laurent Pinchart
Hi Florian, On Wednesday 04 February 2015 14:21:47 Florian Echtler wrote: > On 04.02.2015 12:39, Hans Verkuil wrote: > > On 02/04/15 12:34, Laurent Pinchart wrote: > >> On Wednesday 04 February 2015 11:56:58 Florian Echtler wrote: > >>> That's what I assumed, however, I'm running into the same pro

Re: [PATCH] add raw video support for Samsung SUR40 touchscreen

2015-02-04 Thread Laurent Pinchart
Hi Hans, On Wednesday 04 February 2015 12:39:30 Hans Verkuil wrote: > On 02/04/15 12:34, Laurent Pinchart wrote: > > On Wednesday 04 February 2015 11:56:58 Florian Echtler wrote: > >> On 04.02.2015 11:22, Hans Verkuil wrote: > >>> On 02/04/15 11:08, Florian Echtler wrote: > On 04.02.2015 09:0

Re: [PATCH v3 03/20] power_supply: Add API for safe access of power supply function attrs

2015-02-04 Thread Pavel Machek
On Fri 2015-01-30 15:47:41, Krzysztof Kozlowski wrote: > Add simple wrappers for accessing power supply's function attributes: > - get_property -> power_supply_get_property > - set_property -> power_supply_set_property > - property_is_writeable -> power_supply_property_is_writeable > - external

Re: [PATCH] add raw video support for Samsung SUR40 touchscreen

2015-02-04 Thread Florian Echtler
Hello everyone, On 04.02.2015 12:39, Hans Verkuil wrote: > On 02/04/15 12:34, Laurent Pinchart wrote: >> On Wednesday 04 February 2015 11:56:58 Florian Echtler wrote: >>> That's what I assumed, however, I'm running into the same problem as >>> with dma-sg when I switch to vmalloc...? >> >> I don't

Re: [PATCH] Input: evdev - add EVIOCREVOKE ioctl

2015-02-04 Thread David Herrmann
Hi On Wed, Feb 4, 2015 at 2:12 PM, Bruno Prémont wrote: > Hi David, > > Sorry for reviving this old thread (I didn't find more recent patch series > at first glance or have not been using the proper keyword while searching). > > At FOSDEM 2015 last Sunday Hans presented libinput X input driver an

Re: [PATCH] Input: evdev - add EVIOCREVOKE ioctl

2015-02-04 Thread Bruno Prémont
Hi David, Sorry for reviving this old thread (I didn't find more recent patch series at first glance or have not been using the proper keyword while searching). At FOSDEM 2015 last Sunday Hans presented libinput X input driver and mentioned evdev FD revoking. A question I raise was how are input

RE: input: elantech.c: adding more Fujtisu notebooks to force crc_enabled

2015-02-04 Thread 洪一竹
Dear Vincent: Without! BR, Sam -Original Message- From: Vincent Jaubert [mailto:vjaub...@gmail.com] Sent: Wednesday, February 04, 2015 7:56 PM To: 洪一竹 Cc: Rainer Koenig; duson; Dmitry Torokhov; linux-input@vger.kernel.org; jeff.chuang7...@gmail.com; James Chen; herman lin Subject: Re: i

Re: input: elantech.c: adding more Fujtisu notebooks to force crc_enabled

2015-02-04 Thread Vincent Jaubert
With or without the patch ? On Wed, Feb 4, 2015 at 11:46 AM, 洪一竹 wrote: > Dear Vincent: > > No,boot dmesg is not needed. > But I need cursor move log! > > Please follow below steps and get log file: > > Step1.find device node > $cat /proc/bus/input/device > > Example: > Name: "ETPS/2 Elantech Tou

Re: [PATCH] add raw video support for Samsung SUR40 touchscreen

2015-02-04 Thread Hans Verkuil
On 02/04/15 12:34, Laurent Pinchart wrote: > Hi Florian, > > On Wednesday 04 February 2015 11:56:58 Florian Echtler wrote: >> On 04.02.2015 11:22, Hans Verkuil wrote: >>> On 02/04/15 11:08, Florian Echtler wrote: On 04.02.2015 09:08, Hans Verkuil wrote: > You can also make a version with

Re: [PATCH] add raw video support for Samsung SUR40 touchscreen

2015-02-04 Thread Laurent Pinchart
Hi Florian, On Wednesday 04 February 2015 11:56:58 Florian Echtler wrote: > On 04.02.2015 11:22, Hans Verkuil wrote: > > On 02/04/15 11:08, Florian Echtler wrote: > >> On 04.02.2015 09:08, Hans Verkuil wrote: > >>> You can also make a version with vmalloc and I'll merge that, and then > >>> you ca

[PATCH v2][RFC] add raw video support for Samsung SUR40 touchscreen

2015-02-04 Thread Florian Echtler
Here's my updated version of the previous patch to add raw video streaming support to the SUR40. So far, for reasons opaque to me, dma-contig is the only allocator that works properly. Hoping for some feedback where the issue might be hidden; perhaps it's related to the following test failure from

Re: [PATCH] add raw video support for Samsung SUR40 touchscreen

2015-02-04 Thread Florian Echtler
On 04.02.2015 11:22, Hans Verkuil wrote: > On 02/04/15 11:08, Florian Echtler wrote: >> On 04.02.2015 09:08, Hans Verkuil wrote: >>> You can also make a version with vmalloc and I'll merge that, and then >>> you can look more into the DMA issues. That way the driver is merged, >>> even if it is per

RE: input: elantech.c: adding more Fujtisu notebooks to force crc_enabled

2015-02-04 Thread 洪一竹
Dear Vincent: No,boot dmesg is not needed. But I need cursor move log! Please follow below steps and get log file: Step1.find device node $cat /proc/bus/input/device Example: Name: "ETPS/2 Elantech Touchpad" /devices/platform/i8042/serio1/input/ Step2. Open debug function. $sud

Re: [PATCH] add raw video support for Samsung SUR40 touchscreen

2015-02-04 Thread Hans Verkuil
On 02/04/15 11:08, Florian Echtler wrote: > Hello Hans, > > On 04.02.2015 09:08, Hans Verkuil wrote: >> I remain very skeptical about the use of dma-contig (or dma-sg for that >> matter). Have you tried using vmalloc and check if the USB core isn't >> automatically using DMA transfers for that? >>

[PATCH] input: driver for microcontroller keys on the iPaq h3xxx

2015-02-04 Thread Linus Walleij
From: Dmitry Artamonow This adds a key input driver for the keys found on the h3xxx iPAQ series. Based on a driver from handhelds.org 2.6.21 kernel, written by Alessandro GARDICH. Signed-off-by: Alessandro GARDICH Signed-off-by: Dmitry Artamonow Signed-off-by: Linus Walleij --- Hi Dmitry (To

Re: [PATCH] add raw video support for Samsung SUR40 touchscreen

2015-02-04 Thread Florian Echtler
Hello Hans, On 04.02.2015 09:08, Hans Verkuil wrote: > I remain very skeptical about the use of dma-contig (or dma-sg for that > matter). Have you tried using vmalloc and check if the USB core isn't > automatically using DMA transfers for that? > > Basically I would like to see proof that vmalloc

Re: [PATCH 4/5] i8042: Prepare i8042 driver for DT support

2015-02-04 Thread Roman Volkov
В Tue, 3 Feb 2015 11:38:35 -0800 Dmitry Torokhov пишет: > On Tue, Feb 03, 2015 at 12:48:49AM +0300, Roman Volkov wrote: > > Use platform_device_probe() instead of platform_create_bundle() when > > compiled with DT support, since the latter function is not suitable > > for handling the OF device t

[PATCH 3/3] vivid sdr: fix broken sine tone generated for sdr FM

2015-02-04 Thread Hans Verkuil
From: Prashant Laddha FM (frequency modulated) signal for SDR is generated by varying the phase, where phase variation is proportional to input signal. It is seen that, the larger phase increments leads to discontinuities in the signal recovered after demodulation. Reducing the extent of phase va

[PATCH 1/3] fixp-arith: replace sin/cos table by a better precision one

2015-02-04 Thread Hans Verkuil
From: Mauro Carvalho Chehab The cos table used at fixp-arith.h has only 8 bits of precision. That causes problems if it is reused on other drivers. As some media drivers require a higher precision sin/cos implementation, replace the current implementation by one that will provide 32 bits precisi

[PATCH 2/3] vivid sdr: Use LUT based implementation for sin/cos()

2015-02-04 Thread Hans Verkuil
From: Prashant Laddha The common implementation for sin/cos in include/linux/fixp-arith.h has been improved recently to provide higher precision. Replacing native implementation of sin/cos in vivid sdr with common implementation. This serves two purposes: 1. Improved accuracy: the native implem

[PATCH 0/3] fixp-arith/vivid: update sin/cos implementation

2015-02-04 Thread Hans Verkuil
These patches improve the sine tone generation in the vivid SDR driver (Software Defined Radio). The main problem in that driver was the poor sin/cos function implementation. This started with improvements in vivid sine tone generation. It turned out that to improve sine tone, we needed to improve

Re: [PATCH] add raw video support for Samsung SUR40 touchscreen

2015-02-04 Thread Hans Verkuil
Hi Florian, On 02/03/2015 09:45 PM, Florian Echtler wrote: > Sorry to bring this up again, but would it be acceptable to simply use > dma-contig after all? Since the GFP_DMA flag is gone, this shouldn't be > too big of an issue IMHO, and I was kind of hoping the patch could still > be part of 3.20

[PATCH] bfin_rotary: convert to use managed resources

2015-02-04 Thread Sonic Zhang
From: Sonic Zhang - remap rotary register physical address into kernel space in probe - replace kzalloc with devm_kzalloc - replace request_irq with devm_request_irq - remove memory free and irq free from the device remove function - use devm_input_allocate_device Signed-off-by: Sonic Zhang ---

[PATCH v3 3/3] bfin_rotary: replace bfin specific MMR function with generic IO function

2015-02-04 Thread Sonic Zhang
From: Sonic Zhang - use readw and writew to access rotary MMRs - remap rotary register physical address into kernel space in probe v2-changes: - replace kzalloc with devm_kzalloc - replace request_irq with devm_request_irq - remove memory free and irq free from the device remove function v3-cha

[PATCH v3 2/3] bfin_rotary: Move peripheral pinmux definition into platform data of bf527

2015-02-04 Thread Sonic Zhang
From: Sonic Zhang v3-changes: - Pinctrl API is used to set up counter pinmux on bf548 and bf609. Pinmux list is use less on bf548 and bf609. Signed-off-by: Sonic Zhang --- arch/blackfin/mach-bf527/boards/ad7160eval.c |8 arch/blackfin/mach-bf527/boards/ezkit.c |8 +++