Re: [PATCH v2 1/3] iio: adc: add support for mcp3911

2018-08-02 Thread Marcus Folkesson
Hi Jonathan, Sorry for the delay, I've been away from keyboard for a few days. On Sun, Jul 29, 2018 at 12:44:22PM +0100, Jonathan Cameron wrote: > On Tue, 24 Jul 2018 20:30:02 +0200 > Marcus Folkesson wrote: > > > MCP3911 is a dual channel Analog Front End (AFE) containing

[PATCH v3 1/3] iio: adc: add support for mcp3911

2018-08-02 Thread Marcus Folkesson
MCP3911 is a dual channel Analog Front End (AFE) containing two synchronous sampling delta-sigma Analog-to-Digital Converters (ADC). Signed-off-by: Marcus Folkesson Signed-off-by: Kent Gustavsson --- Notes: v3: - rename adc_clk to clki - add error handling/cleanup for clock

[PATCH v3 3/3] MAINTAINERS: Add entry for mcp3911 ADC driver

2018-08-02 Thread Marcus Folkesson
Add an entry for mcp3911 ADC driver and add myself and Kent Gustavsson as maintainers of this driver. Signed-off-by: Marcus Folkesson Signed-off-by: Kent Gustavsson --- Notes: v3: - no changes v2: - no changes MAINTAINERS | 8 1 file changed, 8 insertions

[PATCH v3 2/3] dt-bindings: iio: adc: add bindings for mcp3911

2018-08-02 Thread Marcus Folkesson
MCP3911 is a dual channel Analog Front End (AFE) containing two synchronous sampling delta-sigma Analog-to-Digital Converters (ADC). Signed-off-by: Marcus Folkesson Signed-off-by: Kent Gustavsson --- Notes: v3: - add bindings for interrupt - prefix device-addr with

Re: [PATCH v3 1/3] iio: adc: add support for mcp3911

2018-08-03 Thread Marcus Folkesson
Hi Andy and Jonathan, On Fri, Aug 03, 2018 at 11:09:22PM +0100, Jonathan Cameron wrote: > On Thu, 2 Aug 2018 22:52:00 +0300 > Andy Shevchenko wrote: > > > On Thu, Aug 2, 2018 at 10:15 PM, Marcus Folkesson > > wrote: > > > MCP3911 is a dual channel Analog

[RESEND PATCH v2] MAINTAINERS: add PhoenixRC Flight Controller Adapter

2018-06-22 Thread Marcus Folkesson
Add MAINTAINERS entry for PhoenixRC Flight Controller Adapter Signed-off-by: Marcus Folkesson --- Notes: v2: Add proper mailing list MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9ce5062dc028..d8b5d9f810e4 100644 --- a

[PATCH v4 1/3] iio: adc: add support for mcp3911

2018-08-08 Thread Marcus Folkesson
MCP3911 is a dual channel Analog Front End (AFE) containing two synchronous sampling delta-sigma Analog-to-Digital Converters (ADC). Co-Developed-by: Kent Gustavsson Signed-off-by: Kent Gustavsson Signed-off-by: Marcus Folkesson --- Notes: v4: - remove defined(CONFIG_OF) and

[PATCH v4 3/3] MAINTAINERS: Add entry for mcp3911 ADC driver

2018-08-08 Thread Marcus Folkesson
Add an entry for mcp3911 ADC driver and add myself and Kent Gustavsson as maintainers of this driver. Co-Developed-by: Kent Gustavsson Signed-off-by: Kent Gustavsson Signed-off-by: Marcus Folkesson --- Notes: v4: - add Kent as co-developer v3: - no changes v2

[PATCH v4 2/3] dt-bindings: iio: adc: add bindings for mcp3911

2018-08-08 Thread Marcus Folkesson
MCP3911 is a dual channel Analog Front End (AFE) containing two synchronous sampling delta-sigma Analog-to-Digital Converters (ADC). Co-Developed-by: Kent Gustavsson Signed-off-by: Kent Gustavsson Signed-off-by: Marcus Folkesson Reviewed-by: Rob Herring --- Notes: v4: - remove

Re: [PATCH v6 1/6] iio: adxl372: New driver for Analog Devices ADXL372 Accelerometer

2018-08-10 Thread Marcus Folkesson
ex 000..db9ecd2 > --- /dev/null > +++ b/drivers/iio/accel/adxl372.c > @@ -0,0 +1,525 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* The SPDX identifier "GPL-2.0+" is "GPL v2 or later", and the MODULE_LICENSE "GPL v2" is "GPL v2 only"

[PATCH] iio: dac: max517: avoid using CONFIG_PM_SLEEP

2018-08-10 Thread Marcus Folkesson
SIMPLE_DEV_PM_OPS() is already doing this. Signed-off-by: Marcus Folkesson --- drivers/iio/dac/max517.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/iio/dac/max517.c b/drivers/iio/dac/max517.c index 1d853247a205..451d10e323cf 100644 --- a/drivers/iio

[PATCH] iio: dac: mcp4725: avoid using CONFIG_PM_SLEEP

2018-08-10 Thread Marcus Folkesson
SIMPLE_DEV_PM_OPS() is already doing this. Signed-off-by: Marcus Folkesson --- drivers/iio/dac/mcp4725.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/iio/dac/mcp4725.c b/drivers/iio/dac/mcp4725.c index 8b5aad4c32d9..6d71fd905e29 100644 --- a/drivers

[PATCH] iio: dac: max5821: avoid using CONFIG_PM_SLEEP

2018-08-10 Thread Marcus Folkesson
SIMPLE_DEV_PM_OPS() is already doing this. Signed-off-by: Marcus Folkesson --- drivers/iio/dac/max5821.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/iio/dac/max5821.c b/drivers/iio/dac/max5821.c index d0ecc1fdd8fc..f0cf6903dcd2 100644 --- a/drivers

Re: [PATCH v4 1/6] iio: adxl372: New driver for Analog Devices ADXL372 Accelerometer

2018-08-10 Thread Marcus Folkesson
> index 000..db9ecd2 > --- /dev/null > +++ b/drivers/iio/accel/adxl372.c > @@ -0,0 +1,525 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* > + * ADXL372 3-Axis Digital Accelerometer SPI driver > + * > + * Copyright 2018 Analog Devices Inc. > + */ Please make the SPDX-identifier and MODULE_LICENCE match here as well. Either SPDX-License-Identifier: GPL-2.0+ MODULE_LICENSE("GPL") or SPDX-License-Identifier: GPL-2.0 MODULE_LICENSE("GPL v2") Thanks! Marcus Folkesson signature.asc Description: PGP signature

Re: [PATCH v4 5/6] iio:adxl372: Add sampling frequency support

2018-08-10 Thread Marcus Folkesson
amp;iio_const_attr_sampling_frequency_available.dev_attr.attr, > + NULL, > +}; > + > +static const struct attribute_group adxl372_attrs_group = { > + .attrs = adxl372_attributes, > +}; > + > static const struct iio_info adxl372_info = { > + .attrs = &adxl372_attrs_group, > .read_raw = adxl372_read_raw, > + .write_raw = adxl372_write_raw, > .debugfs_reg_access = &adxl372_reg_access, > .hwfifo_set_watermark = adxl372_set_watermark, > }; > -- > 2.7.4 Best regards, Marcus Folkesson > signature.asc Description: PGP signature

[RESEND PATCH] iio: dac: mcp4725: avoid using CONFIG_PM_SLEEP

2018-08-11 Thread Marcus Folkesson
This is already handled by SIMPLE_DEV_PM_OPS(). Signed-off-by: Marcus Folkesson --- Somehow git-send-email messed up (?!) the format for (at least) gmail, so resend it. Mutt still read the mail correct though. drivers/iio/dac/mcp4725.c | 12 +++- 1 file changed, 3 insertions(+), 9

[RESEND PATCH] iio: dac: max5821: avoid using CONFIG_PM_SLEEP

2018-08-11 Thread Marcus Folkesson
This is already handled by SIMPLE_DEV_PM_OPS(). Signed-off-by: Marcus Folkesson --- Somehow git-send-email messed up (?!) the format for (at least) gmail, so resend it. Mutt still read the mail correct though. drivers/iio/dac/max5821.c | 11 +++ 1 file changed, 3 insertions(+), 8

[RESEND PATCH] iio: dac: max517: avoid using CONFIG_PM_SLEEP

2018-08-11 Thread Marcus Folkesson
This is already handled by SIMPLE_DEV_PM_OPS(). Signed-off-by: Marcus Folkesson --- Somehow git-send-email messed up (?!) the format for (at least) gmail, so resend it. Mutt still read the mail correct though. drivers/iio/dac/max517.c | 11 +++ 1 file changed, 3 insertions(+), 8

[PATCH 3/3] MAINTAINERS: add entry for ltc166x DAC driver

2018-08-11 Thread Marcus Folkesson
Add entry for ltc166x DAC driver and add myself as maintainer of this driver. Signed-off-by: Marcus Folkesson --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9276da915d9d..2dc4c773fb2e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH 1/3] iio: dac: add support for ltc166x

2018-08-11 Thread Marcus Folkesson
LTC1665/LTC1660 is a 8/10-bit Digital-to-Analog Converter (DAC) with eight individual channels. Signed-off-by: Marcus Folkesson --- drivers/iio/dac/Kconfig | 10 ++ drivers/iio/dac/Makefile | 1 + drivers/iio/dac/ltc166x.c | 244 ++ 3 files

[PATCH 2/3] dt-bindings: iio: dac: add bindings for ltc166x

2018-08-11 Thread Marcus Folkesson
LTC1665/LTC1660 is a 8/10-bit Digital-to-Analog Converter (DAC) with eight individual channels. Signed-off-by: Marcus Folkesson --- .../devicetree/bindings/iio/dac/ltc166x.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v2 2/3] dt-bindings: iio: dac: add bindings for ltc1660

2018-08-21 Thread Marcus Folkesson
LTC1665/LTC1660 is a 8/10-bit Digital-to-Analog Converter (DAC) with eight individual channels. Signed-off-by: Marcus Folkesson --- Notes: v2: - rename file, ltc166x -> ltc1660 .../devicetree/bindings/iio/dac/ltc1660.txt | 21 + 1 file changed,

[PATCH v2 1/3] iio: dac: add support for ltc1660

2018-08-21 Thread Marcus Folkesson
LTC1665/LTC1660 is a 8/10-bit Digital-to-Analog Converter (DAC) with eight individual channels. Signed-off-by: Marcus Folkesson --- Notes: v2: - rename all instances of ltc166x to ltc1660 - read regulator value "in-place" instead of cache voltage - fix erro

[PATCH v2 3/3] MAINTAINERS: add entry for ltc1660 DAC driver

2018-08-21 Thread Marcus Folkesson
Add entry for ltc1660 DAC driver and add myself as maintainer of this driver. Signed-off-by: Marcus Folkesson --- Notes: v2: - rename enumerated files, ltc166x* -> ltc1660* MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS in

Re: [PATCH v2 2/3] dt-bindings: iio: dac: add bindings for ltc1660

2018-08-22 Thread Marcus Folkesson
On Tue, Aug 21, 2018 at 09:31:25PM +0200, Marcus Folkesson wrote: > LTC1665/LTC1660 is a 8/10-bit Digital-to-Analog Converter (DAC) > with eight individual channels. > > Signed-off-by: Marcus Folkesson Rob, sorry I missed your tag. Reviewed-by: Rob Herring > --- >

[PATCH] iio: dac: ti-dac5571: make vref regulator optional

2018-08-24 Thread Marcus Folkesson
The `vref` regulator is declared as optional in the device-tree binding, but the driver does require it. Go for the device-tree binding and make the `vref` regulator optional. Signed-off-by: Marcus Folkesson --- drivers/iio/dac/ti-dac5571.c | 30 ++ 1 file changed

[PATCH] iio: dac: ti-dac5571: provide of_match_table to driver

2018-08-24 Thread Marcus Folkesson
Use the created list of of_device_id's as a match table. Signed-off-by: Marcus Folkesson --- drivers/iio/dac/ti-dac5571.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/dac/ti-dac5571.c b/drivers/iio/dac/ti-dac5571.c index e39d1e901353..f6dcd8bce2b0 100644 --- a/drivers/ii

[PATCH] iio: dac: mcp4922: fix error handling in mcp4922_write_raw

2018-08-24 Thread Marcus Folkesson
Do not try to write negative values and make sure that the write goes well. Signed-off-by: Marcus Folkesson --- drivers/iio/dac/mcp4922.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/iio/dac/mcp4922.c b/drivers/iio/dac/mcp4922.c index bf9aa3fc0534

[PATCH 1/3] iio: adc: add support for mcp3911

2018-07-21 Thread Marcus Folkesson
MCP3911 is a dual channel Analog Front End (AFE) containing two synchronous sampling delta-sigma Analog-to-Digital Converters (ADC). Signed-off-by: Marcus Folkesson Signed-off-by: Kent Gustavsson --- drivers/iio/adc/Kconfig | 10 ++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/mcp3911

[PATCH 3/3] MAINTAINERS: Add entry for mcp3911 ADC driver

2018-07-21 Thread Marcus Folkesson
Add an entry for mcp3911 ADC driver and add myself and Kent Gustavsson as maintainers of this driver. Signed-off-by: Marcus Folkesson Signed-off-by: Kent Gustavsson --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 79bb02ff812f

[PATCH 2/3] dt-bindings: iio: adc: add bindings for mcp3911

2018-07-21 Thread Marcus Folkesson
MCP3911 is a dual channel Analog Front End (AFE) containing two synchronous sampling delta-sigma Analog-to-Digital Converters (ADC). Signed-off-by: Marcus Folkesson Signed-off-by: Kent Gustavsson --- .../devicetree/bindings/iio/adc/mcp3911.txt| 33 ++ 1 file changed

Re: [PATCH 1/3] iio: adc: add support for mcp3911

2018-07-22 Thread Marcus Folkesson
> some comments below... > > > Signed-off-by: Marcus Folkesson > > Signed-off-by: Kent Gustavsson > > --- > > drivers/iio/adc/Kconfig | 10 ++ > > drivers/iio/adc/Makefile | 1 + > > drivers/iio/adc/mcp3911.c | 444 > > +

Re: [PATCH 1/3] iio: adc: add support for mcp3911

2018-07-22 Thread Marcus Folkesson
irely sure that the SPI framework can handle multiple clients on the same CS. The reason why we created device-addr is that the chip supports that and may have hardcoded chip address from factory. The chip address is also part of the protocol so we have to specify it. > >

Re: [PATCH 2/3] dt-bindings: iio: adc: add bindings for mcp3911

2018-07-23 Thread Marcus Folkesson
Hi Jonathan, On Sun, Jul 22, 2018 at 09:11:11AM +0100, Jonathan Cameron wrote: > On Sat, 21 Jul 2018 21:59:22 +0200 > Marcus Folkesson wrote: > [snip] > > +Optional properties: > > + - device-addr: Device address when multiple MCP3911 chips are present on > > the

Re: [PATCH] input: pxrc - do not store USB device in private struct

2018-07-24 Thread Marcus Folkesson
Hello Dmitry, On Tue, Jul 24, 2018 at 02:38:04AM +, Dmitry Torokhov wrote: > Hi Marcus, > > On Mon, Jul 16, 2018 at 04:40:14PM +0200, Marcus Folkesson wrote: > > The USB device is only needed during setup, so put it back after > > initialization and do not store it

[PATCH v2 2/3] dt-bindings: iio: adc: add bindings for mcp3911

2018-07-24 Thread Marcus Folkesson
MCP3911 is a dual channel Analog Front End (AFE) containing two synchronous sampling delta-sigma Analog-to-Digital Converters (ADC). Signed-off-by: Marcus Folkesson Signed-off-by: Kent Gustavsson --- Notes: v2: - drop channel width - drop `external_vref` - replace

[PATCH v2 3/3] MAINTAINERS: Add entry for mcp3911 ADC driver

2018-07-24 Thread Marcus Folkesson
Add an entry for mcp3911 ADC driver and add myself and Kent Gustavsson as maintainers of this driver. Signed-off-by: Marcus Folkesson Signed-off-by: Kent Gustavsson --- Notes: v2: - no changes MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b

[PATCH v2 1/3] iio: adc: add support for mcp3911

2018-07-24 Thread Marcus Folkesson
MCP3911 is a dual channel Analog Front End (AFE) containing two synchronous sampling delta-sigma Analog-to-Digital Converters (ADC). Signed-off-by: Marcus Folkesson Signed-off-by: Kent Gustavsson --- Notes: v2: - cleanups and bugfixes (thanks Peter Meerwald-Stadler) - drop

Re: [PATCH v2 2/3] dt-bindings: iio: adc: add bindings for mcp3911

2018-07-25 Thread Marcus Folkesson
Hello Rob, Thank you for the review. On Wed, Jul 25, 2018 at 11:51:17AM -0600, Rob Herring wrote: > On Tue, Jul 24, 2018 at 08:30:03PM +0200, Marcus Folkesson wrote: > > MCP3911 is a dual channel Analog Front End (AFE) containing two > > synchronous sampling delta-sigma An

Re: [PATCH] Input: pxrc - fix leak of usb_device

2018-07-14 Thread Marcus Folkesson
river Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov Reviewed-by: Marcus Folkesson > --- > drivers/input/joystick/pxrc.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/input/joystick/pxrc.c b/drivers/input/joystick/px

Re: [PATCH] Input: pxrc - fix leak of usb_device

2018-07-15 Thread Marcus Folkesson
On Sat, Jul 14, 2018 at 08:51:09AM +, Dmitry Torokhov wrote: > On Sat, Jul 14, 2018 at 10:09:20AM +0200, Marcus Folkesson wrote: > > Hi Alexey, > > > > Good catch! > > > > On Fri, Jul 13, 2018 at 11:07:57PM +0300, Alexey Khoroshilov wrote: > > > pxrc

[PATCH 1/2] input: pagasus_notetaker: fix deadlock in autosuspend

2018-01-24 Thread Marcus Folkesson
usb_autopm_get_interface() that is called in pegasus_open() does an autoresume if the device is suspended. input_dev->mutex used in pegasus_resume() is in this case already taken by the input subsystem and will cause a deadlock. Signed-off-by: Marcus Folkesson --- drivers/input/tab

[PATCH 2/2] input: pegasus_notetaker: do not rely on input_dev->users

2018-01-24 Thread Marcus Folkesson
>users && usb_submit_urb(pegasus->irq, GFP_NOIO) < 0) retval = -EIO; The same URB will then be fail when resubmitted in pegasus_open(). Introduce pegasus->is_open to keep track of the state instead. Signed-off-by: Marcus Folkesson --- drivers/input/tabl

[PATCH 1/2] input: usbtouchscreen: fix deadlock in autosuspend

2018-01-24 Thread Marcus Folkesson
usb_autopm_get_interface() that is called in usbtouch_open() does an autoresume if the device is suspended. input_dev->mutex used in usbtouch_resume() is in this case already taken by the input subsystem and will cause a deadlock. Signed-off-by: Marcus Folkesson --- drivers/input/touchscr

[PATCH 2/2] input: usbtouchscreen: do not rely on input_dev->users

2018-01-24 Thread Marcus Folkesson
;users || usbtouch->type->irq_always) result = usb_submit_urb(usbtouch->irq, GFP_NOIO); The same URB will then be fail when resubmitted in usbtouch_open(). Introduce usbtouch->is_open to keep track of the state instead. Signed-off-by: Marcus Folkesson --- drivers

Re: [PATCH 4/4] Input: mms114 - add support for mms152

2018-01-24 Thread Marcus Folkesson
P Rev: 0x%x, HW Rev: 0x%x, Firmware Ver: 0x%x\n", > - buf[0], buf[1], buf[3]); > + dev_info(dev, "TSP Rev: 0x%x, HW Rev: 0x%x, Firmware Ver: > 0x%x\n", > + buf[0], buf[1], buf[3]); > + break; > + } > > return 0; > } Best regards Marcus Folkesson signature.asc Description: PGP signature

Re: [RESEND PATCH v2] input: pxrc: new driver for PhoenixRC Flight Controller Adapter

2018-01-11 Thread Marcus Folkesson
Hi Dmitry, Thank you for your review! On Wed, Jan 10, 2018 at 04:37:14PM -0800, Dmitry Torokhov wrote: > Hi Marcus, > > On Wed, Jan 10, 2018 at 02:11:39PM +0100, Marcus Folkesson wrote: > > This driver let you plug in your RC controller to the adapter and > > use it as in

Re: [PATCH v5] input: pxrc: new driver for PhoenixRC Flight Controller Adapter

2018-01-30 Thread Marcus Folkesson
Hello Dmitry, Do you mind have a look at v5? Thanks! On Sat, Jan 20, 2018 at 09:58:40PM +0100, Marcus Folkesson wrote: > This driver let you plug in your RC controller to the adapter and > use it as input device in various RC simulators. > > Signed-off-by: Marcus Folkesson &

Re: [PATCH 7/8] Input: mms114 - add SPDX identifier

2018-01-30 Thread Marcus Folkesson
to MODULE_LICENSE("GPL v2"); To match the former license text and SPDX-identifier. See include/linux/module.h: * "GPL" [GNU Public License v2 or later] * "GPL v2"[GNU Public License v2] Thanks, > > Sorry, > Andi Best regards Marcus Folkesson signature.asc Description: PGP signature

Re: [PATCH 2/2] gpio: Add GPIO driver for Spreadtrum SC9860 platform

2018-02-01 Thread Marcus Folkesson
unsigned int offset) > +{ > + sprd_gpio_update(chip, offset, SPRD_GPIO_DIR, 0); > + sprd_gpio_update(chip, offset, SPRD_GPIO_INEN, 1); > + return 0; > +} Same here > + > +static int sprd_gpio_direction_output(struct gpio_chip *chip, > + unsigned int offset, int value) > +{ > + sprd_gpio_update(chip, offset, SPRD_GPIO_DIR, 1); > + sprd_gpio_update(chip, offset, SPRD_GPIO_INEN, 0); > + sprd_gpio_update(chip, offset, SPRD_GPIO_DATA, value); > + return 0; > +} and here. Thanks, Marcus Folkesson signature.asc Description: PGP signature

Re: [PATCH 2/2] gpio: Add GPIO driver for Spreadtrum SC9860 platform

2018-02-01 Thread Marcus Folkesson
er); +} +subsys_initcall(sprd_gpio_init); + +static void __exit sprd_gpio_exit(void) +{ + platform_driver_unregister(&sprd_gpio_driver); +} +module_exit(sprd_gpio_exit); with module_platform_driver(sprd_gpio_driver); > > -- > Baolin.wang > Best Regards Best regards Marcus Folkesson signature.asc Description: PGP signature

[PATCH v5] input: pxrc: new driver for PhoenixRC Flight Controller Adapter

2018-01-20 Thread Marcus Folkesson
This driver let you plug in your RC controller to the adapter and use it as input device in various RC simulators. Signed-off-by: Marcus Folkesson --- v5: - Drop autosuspend support - Use pm_mutex instead of input_dev->mutex - Use pxrc->is_open instead of inp

Re: [PATCH v3] input: pxrc: new driver for PhoenixRC Flight Controller Adapter

2018-01-20 Thread Marcus Folkesson
Hello Dmitry, On Fri, Jan 19, 2018 at 03:24:32PM -0800, Dmitry Torokhov wrote: > On Wed, Jan 17, 2018 at 02:58:40PM +0100, Marcus Folkesson wrote: > > Hello Dmitry, > > > > On Tue, Jan 16, 2018 at 03:16:25PM -0800, Dmitry Torokhov wrote: > > > Hi Marcus, > >

[PATCH 1/2] input: synaptics_usb: fix deadlock in autosuspend

2018-01-20 Thread Marcus Folkesson
usb_autopm_get_interface() that is called in synusb_open() does an autoresume if the device is suspended. input_dev->mutex used in synusb_resume() is in this case already taken by the input subsystem and will cause a deadlock. Signed-off-by: Marcus Folkesson --- drivers/input/mo

[PATCH 2/2] input: synaptics_usb: do not rely on input_dev->users

2018-01-20 Thread Marcus Folkesson
;users || (synusb->flags & SYNUSB_IO_ALWAYS)) && usb_submit_urb(synusb->urb, GFP_NOIO) < 0) { retval = -EIO; } The same URB will then be fail when resubmitted in synusb_open(). Introduce synusb->is_open to keep track of the state instead. S

[PATCH] input: da9052_tsi: remove unused mutex

2018-01-22 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson --- drivers/input/touchscreen/da9052_tsi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/touchscreen/da9052_tsi.c b/drivers/input/touchscreen/da9052_tsi.c index 5a013bb7bcad..b5dfd5944cc3 100644 --- a/drivers/input/touchscreen/da9052_tsi.c

Re: [PATCH v4 1/2] Input: Add driver for Cypress Generation 5 touchscreen

2018-01-22 Thread Marcus Folkesson
; > + return rc; > + } > + gpiod_set_value(ts->reset_gpio, 1); > + [snip] > +static struct i2c_driver cyttsp5_i2c_driver = { > + .driver = { > + .name = CYTTSP5_NAME, > + .owner = THIS_MODULE, > + .of_match_table = of_match_ptr(cyttsp5_of_match), > + }, > + .probe = cyttsp5_i2c_probe, > + .remove = cyttsp5_i2c_remove, > + .id_table = cyttsp5_i2c_id, > +}; > + > +module_i2c_driver(cyttsp5_i2c_driver); > + > +MODULE_LICENSE("GPL"); From linux/module.h: /* * The following license idents are currently accepted as indicating free * software modules * * "GPL" [GNU Public License v2 or later] * "GPL v2"[GNU Public License v2] > +MODULE_DESCRIPTION("Touchscreen driver for Cypress TrueTouch Gen 5 Product"); > +MODULE_AUTHOR("Mylène Josserand "); > -- > 2.11.0 > Best regards Marcus Folkesson signature.asc Description: PGP signature

Re: [PATCH v3] input: pxrc: new driver for PhoenixRC Flight Controller Adapter

2018-01-17 Thread Marcus Folkesson
Hello Dmitry, On Tue, Jan 16, 2018 at 03:16:25PM -0800, Dmitry Torokhov wrote: > Hi Marcus, > > On Sat, Jan 13, 2018 at 09:15:32PM +0100, Marcus Folkesson wrote: > > This driver let you plug in your RC controller to the adapter and > > use it as input device in

[PATCH v4] input: pxrc: new driver for PhoenixRC Flight Controller Adapter

2018-01-17 Thread Marcus Folkesson
This driver let you plug in your RC controller to the adapter and use it as input device in various RC simulators. Signed-off-by: Marcus Folkesson --- v4: - Add call to usb_mark_last_busy() in irq - Move code from pxrc_resume() to pxrc_reset_resume() v3: - Use RUDDER and

Re: [PATCH v4] input: pxrc: new driver for PhoenixRC Flight Controller Adapter

2018-01-17 Thread Marcus Folkesson
Hi Randy! On Wed, Jan 17, 2018 at 11:13:43AM -0800, Randy Dunlap wrote: > On 01/17/2018 11:07 AM, Marcus Folkesson wrote: > > This driver let you plug in your RC controller to the adapter and > > use it as input device in various RC simulators. > > > > Sign

[PATCH] input: joystick: make USB drivers depend on USB

2018-01-17 Thread Marcus Folkesson
A driver should not enable an entire subsystem. Signed-off-by: Marcus Folkesson --- drivers/input/joystick/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/input/joystick/Kconfig b/drivers/input/joystick/Kconfig index 332c0cc1b2ab..4a199cff8c68 100644 --- a

[PATCH] input: misc: make USB drivers depend on USB

2018-01-17 Thread Marcus Folkesson
A driver should not enable an entire subsystem. Signed-off-by: Marcus Folkesson --- drivers/input/misc/Kconfig | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig index 9f082a388388..dd04da910bc9 100644

[PATCH] input: mouse: make USB drivers depend on USB

2018-01-17 Thread Marcus Folkesson
A driver should not enable an entire subsystem. Signed-off-by: Marcus Folkesson --- drivers/input/mouse/Kconfig | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/input/mouse/Kconfig b/drivers/input/mouse/Kconfig index 89ebb8f39fee..38aed9b0bcb8 100644 --- a

[PATCH] input: tablet: make USB drivers depend on USB

2018-01-17 Thread Marcus Folkesson
A driver should not enable an entire subsystem. Signed-off-by: Marcus Folkesson --- drivers/input/tablet/Kconfig | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/input/tablet/Kconfig b/drivers/input/tablet/Kconfig index a2b9f97422ce..379f40858709

[PATCH] input: touchscreen: make USB drivers depend on USB

2018-01-17 Thread Marcus Folkesson
A driver should not enable an entire subsystem. Signed-off-by: Marcus Folkesson --- drivers/input/touchscreen/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig index 38a226f9fcbd..08d2c1434493

[RESEND PATCH v2] input: pxrc: new driver for PhoenixRC Flight Controller Adapter

2018-01-10 Thread Marcus Folkesson
This driver let you plug in your RC controller to the adapter and use it as input device in various RC simulators. Signed-off-by: Marcus Folkesson --- v2: - Change module license to GPLv2 to match SPDX tag Documentation/input/devices/pxrc.rst | 57 drivers/input/joystick

[PATCH v3] input: pxrc: new driver for PhoenixRC Flight Controller Adapter

2018-01-13 Thread Marcus Folkesson
This driver let you plug in your RC controller to the adapter and use it as input device in various RC simulators. Signed-off-by: Marcus Folkesson --- v3: - Use RUDDER and MISC instead of TILT_X and TILT_Y - Drop kref and anchor - Rework URB handling - Add PM

[PATCH v4 3/3] MAINTAINERS: add USB CCID Gadget Device

2018-06-26 Thread Marcus Folkesson
Add MAINTAINERS entry for USB CCID Gadget Device Signed-off-by: Marcus Folkesson --- Notes: v4: - No changes v3: - No changes v2: - No changes MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH v4 2/3] Documentation: usb: add documentation for USB CCID Gadget Device

2018-06-26 Thread Marcus Folkesson
Add documentation to give a brief description on how to use the CCID Gadget Device. This includes a description for all attributes followed by an example on how to setup the device with ConfigFS. Reviewed-by: Randy Dunlap Signed-off-by: Marcus Folkesson --- Notes: v4: - clarify how

[PATCH] MAINTAINERS: add PhoenixRC Flight Controller Adapter

2018-05-24 Thread Marcus Folkesson
Add MAINTAINERS entry for PhoenixRC Flight Controller Adapter Signed-off-by: Marcus Folkesson --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9051a9ca24a2..feb02e9568e6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7,6 +7,12

[PATCH v2] MAINTAINERS: add PhoenixRC Flight Controller Adapter

2018-05-24 Thread Marcus Folkesson
Add MAINTAINERS entry for PhoenixRC Flight Controller Adapter Signed-off-by: Marcus Folkesson --- Notes: v2: Add proper mailing list MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9ce5062dc028..d8b5d9f810e4 100644 --- a

[PATCH 3/3] MAINTAINERS: add USB CCID Gadget Device

2018-05-26 Thread Marcus Folkesson
Add MAINTAINERS entry for USB CCID Gadget Device Signed-off-by: Marcus Folkesson --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 078fd80f664f..e77c3d2bec89 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14541,6 +14541,14 @@ L

[PATCH 1/3] usb: gadget: ccid: add support for USB CCID Gadget Device

2018-05-26 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson --- drivers/usb/gadget/Kconfig | 17 + drivers/usb/gadget/function/Makefile | 1 + drivers/usb/gadget/function/f_ccid.c | 988 +++ drivers/usb/gadget/function/f_ccid.h | 91 include/uapi/linux/usb/ccid.h

[PATCH 2/3] Documentation: usb: add documentation for USB CCID Gadget Device

2018-05-26 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson --- Documentation/usb/gadget_ccid.rst | 267 ++ 1 file changed, 267 insertions(+) create mode 100644 Documentation/usb/gadget_ccid.rst diff --git a/Documentation/usb/gadget_ccid.rst b/Documentation/usb/gadget_ccid.rst new

[PATCH v2 3/3] MAINTAINERS: add USB CCID Gadget Device

2018-05-26 Thread Marcus Folkesson
Add MAINTAINERS entry for USB CCID Gadget Device Signed-off-by: Marcus Folkesson --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 078fd80f664f..e77c3d2bec89 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14541,6 +14541,14 @@ L

[PATCH v2 2/3] Documentation: usb: add documentation for USB CCID Gadget Device

2018-05-26 Thread Marcus Folkesson
Add documentation to give a brief description on how to use the CCID Gadget Device. This includes a description for all attributes followed by an example on how to setup the device with ConfigFS. Signed-off-by: Marcus Folkesson --- Documentation/usb/gadget_ccid.rst | 267

[PATCH v2 1/3] usb: gadget: ccid: add support for USB CCID Gadget Device

2018-05-26 Thread Marcus Folkesson
show up as a CCID device to the host and let a userspace daemon act as the smartcard. This is useful when the Linux gadget itself should act as a cryptographic device or forward APDUs to an embedded smartcard device. Signed-off-by: Marcus Folkesson --- drivers/usb/gadget/Kconfig | 17

Re: [PATCH 1/3] usb: gadget: ccid: add support for USB CCID Gadget Device

2018-05-26 Thread Marcus Folkesson
On Sat, May 26, 2018 at 10:56:52PM +0200, Greg Kroah-Hartman wrote: > On Sat, May 26, 2018 at 10:33:59PM +0200, Marcus Folkesson wrote: > > Signed-off-by: Marcus Folkesson > > I can't take patches without any changelog text. And why would you > submit a patch over 1000

Re: [PATCH v2 2/3] Documentation: usb: add documentation for USB CCID Gadget Device

2018-05-28 Thread Marcus Folkesson
Hi Randy, On Sun, May 27, 2018 at 04:36:24PM -0700, Randy Dunlap wrote: > Hi, > > I have a few documentation comments below... > > On 05/26/2018 02:19 PM, Marcus Folkesson wrote: > > Add documentation to give a brief description on how to use the > > CCID Gadget

Re: [PATCH v2 1/3] usb: gadget: ccid: add support for USB CCID Gadget Device

2018-05-28 Thread Marcus Folkesson
Hi Andrzej, On Mon, May 28, 2018 at 09:04:51AM +0200, Andrzej Pietrasiewicz wrote: > Mi Marcus, > > W dniu 26.05.2018 o 23:19, Marcus Folkesson pisze: > > Chip Card Interface Device (CCID) protocol is a USB protocol that > > allows a smartcard device to be connected to

Re: [PATCH] iio: accel: cros_ec_accel_legacy: Mark expected switch fall-throughs

2018-08-15 Thread Marcus Folkesson
n_index = Z; for (i = X ; i < MAX_AXIS; i++) { if (state->sensor_num == MOTIONSENSE_LOC_LID && i != Y) state->sign[i] = -1; else state->sign[i] = 1; } Best regards, Marcus Folkesson > -- > 2.7.4 > signature.asc Description: PGP signature

Re: [PATCH] iio: accel: cros_ec_accel_legacy: Mark expected switch fall-throughs

2018-08-18 Thread Marcus Folkesson
Hi Gutavo, Sorry for the delay. On Wed, Aug 15, 2018 at 12:50:10PM -0500, Gustavo A. R. Silva wrote: > Hi Marcus, > > On 8/15/18 12:27 PM, Marcus Folkesson wrote: > > Hi, > > > > On Wed, Aug 15, 2018 at 11:38:52AM -0500, Gustavo A. R. Silva wrote: > >> I

Re: [PATCH 1/3] iio: dac: add support for ltc166x

2018-08-19 Thread Marcus Folkesson
Hi Jonathan, Thanks for your comments! On Sun, Aug 19, 2018 at 05:38:50PM +0100, Jonathan Cameron wrote: > On Sat, 11 Aug 2018 22:02:24 +0200 > Marcus Folkesson wrote: > > > LTC1665/LTC1660 is a 8/10-bit Digital-to-Analog Converter > > (DAC) with eight individual channels

Re: [PATCH v4 1/3] iio: adc: add support for mcp3911

2018-08-19 Thread Marcus Folkesson
On Sun, Aug 19, 2018 at 08:02:57PM +0100, Jonathan Cameron wrote: > On Wed, 8 Aug 2018 10:09:15 +0200 > Marcus Folkesson wrote: > > > MCP3911 is a dual channel Analog Front End (AFE) containing two > > synchronous sampling delta-sigma Analog-to-Digital Converters (ADC). >

Re: [PATCH v4 1/3] iio: adc: add support for mcp3911

2018-08-19 Thread Marcus Folkesson
On Sun, Aug 19, 2018 at 08:29:43PM +0100, Jonathan Cameron wrote: > On Sun, 19 Aug 2018 21:17:51 +0200 > Marcus Folkesson wrote: > > > On Sun, Aug 19, 2018 at 08:02:57PM +0100, Jonathan Cameron wrote: > > > On Wed, 8 Aug 2018 10:09:15 +0200 >

Re: [PATCH v6 1/2] iio: light: Add support for vishay vcnl4035

2018-08-19 Thread Marcus Folkesson
lient *client) > +{ > + struct iio_dev *indio_dev = i2c_get_clientdata(client); > + > + iio_device_unregister(indio_dev); > + > + pm_runtime_dont_use_autosuspend(&client->dev); > + pm_runtime_disable(&client->dev); > + pm_runtime_set_suspended(&client->dev); > + pm_runtime_put_noidle(&client->dev); > + > + return vcnl4035_set_als_power_state(iio_priv(indio_dev), > + VCNL4035_MODE_ALS_DISABLE); > +} > + > +#ifdef CONFIG_PM > +static int __maybe_unused vcnl4035_runtime_suspend(struct device *dev) > +{ > + struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev)); > + struct vcnl4035_data *data = iio_priv(indio_dev); > + int ret; > + > + ret = vcnl4035_set_als_power_state(data, VCNL4035_MODE_ALS_DISABLE); > + regcache_mark_dirty(data->regmap); > + > + return ret; > +} > + > +static int __maybe_unused vcnl4035_runtime_resume(struct device *dev) > +{ > + struct iio_dev *indio_dev = i2c_get_clientdata(to_i2c_client(dev)); > + struct vcnl4035_data *data = iio_priv(indio_dev); > + int ret; > + > + regcache_sync(data->regmap); > + ret = vcnl4035_set_als_power_state(data, VCNL4035_MODE_ALS_ENABLE); > + if (ret < 0) > + return ret; > + > + /* wait for 1 ALS integration cycle */ > + msleep(data->als_it_val * 100); > + > + return 0; > +} > +#endif > + > +static const struct dev_pm_ops vcnl4035_pm_ops = { > + SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, > + pm_runtime_force_resume) > + SET_RUNTIME_PM_OPS(vcnl4035_runtime_suspend, > +vcnl4035_runtime_resume, NULL) > +}; > + > +static const struct of_device_id vcnl4035_of_match[] = { > + { .compatible = "vishay,vcnl4035", }, > + { } > +}; > +MODULE_DEVICE_TABLE(of, vcnl4035_of_match); > + > +static struct i2c_driver vcnl4035_driver = { > + .driver = { > + .name = VCNL4035_DRV_NAME, > + .pm = &vcnl4035_pm_ops, > + .of_match_table = of_match_ptr(vcnl4035_of_match), Please correct me if I'm wrong here. Use of_match_ptr() and not provide an ACPI match table will not make this driver work on ACPI systems. The reason is that the ACPI match function will fall back on of_match_table if no acpi_match_table is provided, and the of_match_ptr() macro will simple evaluate to NULL if not CONFIG_OF is set. In other words, I think we should change this to just .of_match_table = &vcnl4035_of_match, > + }, > + .probe = vcnl4035_probe, > + .remove = vcnl4035_remove, > +}; > + > +module_i2c_driver(vcnl4035_driver); > + > +MODULE_AUTHOR("Parthiban Nallathambi "); > +MODULE_DESCRIPTION("VCNL4035 Ambient Light Sensor driver"); > +MODULE_LICENSE("GPL v2"); > -- > 2.14.4 > Best regards Marcus Folkesson signature.asc Description: PGP signature

Re: [PATCH 1/2] watchdog: sama5d4: fix timeout-sec usage

2018-09-15 Thread Marcus Folkesson
to the device. > > Fixes: 976932e40036 ("watchdog: sama5d4: make use of timeout-secs provided in > devicetree") > Signed-off-by: Romain Izard Reviewed-by: Marcus Folkesson

[PATCH] input: pxrc - do not store USB device in private struct

2018-07-16 Thread Marcus Folkesson
refcount on the device is safe. Reported-by: Alexey Khoroshilov Signed-off-by: Marcus Folkesson --- drivers/input/joystick/pxrc.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/drivers/input/joystick/pxrc.c b/drivers/input/joystick/pxrc.c index

[PATCH] staging: fbtft: fix all print warnings reported by sparse

2015-04-07 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson --- drivers/staging/fbtft/fbtft-core.c | 2 +- drivers/staging/fbtft/fbtft-io.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c index 37dcf7e..b82870b 100644 --- a

[PATCH] staging: lustre: silence sparse warnings

2015-05-27 Thread Marcus Folkesson
taging/lustre/lustre/ptlrpc/pinger.c:551:1: warning: symbol 'pet_list' was not declared. Should it be static? Signed-off-by: Marcus Folkesson --- drivers/staging/lustre/lustre/ptlrpc/pinger.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/stagin

[PATCH v2] staging: lustre: fix non-static symbol warnings reported by sparse

2015-05-27 Thread Marcus Folkesson
taging/lustre/lustre/ptlrpc/pinger.c:551:1: warning: symbol 'pet_list' was not declared. Should it be static? Signed-off-by: Marcus Folkesson --- drivers/staging/lustre/lustre/ptlrpc/pinger.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/stagin

changelog v2

2015-05-27 Thread Marcus Folkesson
Changes since v2: Change commit message to be more descriptive (thanks to Julia for input) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

[PATCH v3] staging: lustre: fix non-static symbol warnings reported by sparse

2015-05-28 Thread Marcus Folkesson
taging/lustre/lustre/ptlrpc/pinger.c:551:1: warning: symbol 'pet_list' was not declared. Should it be static? Signed-off-by: Marcus Folkesson --- Changelog: v3: put the changelog into the patch itself v2: change commit message to be more descriptive drivers/staging/lustre/lustre/pt

[RESEND PATCH 1/6] input: synaptics_usb: fix deadlock in autosuspend

2018-02-28 Thread Marcus Folkesson
usb_autopm_get_interface() that is called in synusb_open() does an autoresume if the device is suspended. input_dev->mutex used in synusb_resume() is in this case already taken by the input subsystem and will cause a deadlock. Signed-off-by: Marcus Folkesson --- drivers/input/mo

[RESEND PATCH 5/6] input: usbtouchscreen: fix deadlock in autosuspend

2018-02-28 Thread Marcus Folkesson
usb_autopm_get_interface() that is called in usbtouch_open() does an autoresume if the device is suspended. input_dev->mutex used in usbtouch_resume() is in this case already taken by the input subsystem and will cause a deadlock. Signed-off-by: Marcus Folkesson --- drivers/input/touchscr

[RESEND PATCH 6/6] input: usbtouchscreen: do not rely on input_dev->users

2018-02-28 Thread Marcus Folkesson
;users || usbtouch->type->irq_always) result = usb_submit_urb(usbtouch->irq, GFP_NOIO); The same URB will then be fail when resubmitted in usbtouch_open(). Introduce usbtouch->is_open to keep track of the state instead. Signed-off-by: Marcus Folkesson --- drivers

[RESEND PATCH 3/6] input: pagasus_notetaker: fix deadlock in autosuspend

2018-02-28 Thread Marcus Folkesson
usb_autopm_get_interface() that is called in pegasus_open() does an autoresume if the device is suspended. input_dev->mutex used in pegasus_resume() is in this case already taken by the input subsystem and will cause a deadlock. Signed-off-by: Marcus Folkesson --- drivers/input/tab

[RESEND PATCH 4/6] input: pegasus_notetaker: do not rely on input_dev->users

2018-02-28 Thread Marcus Folkesson
>users && usb_submit_urb(pegasus->irq, GFP_NOIO) < 0) retval = -EIO; The same URB will then be fail when resubmitted in pegasus_open(). Introduce pegasus->is_open to keep track of the state instead. Signed-off-by: Marcus Folkesson --- drivers/input/tabl

Fix deadlocks in autosuspend

2018-02-28 Thread Marcus Folkesson
in open()). I will create a separate "pm_mutex" to use instead of input_dev->mutex to get rid of the lockups in those drivers ---8<-- [1] https://lkml.org/lkml/2018/1/20/191 Thanks, Best regards Marcus Folkesson

[RESEND PATCH 2/6] input: synaptics_usb: do not rely on input_dev->users

2018-02-28 Thread Marcus Folkesson
;users || (synusb->flags & SYNUSB_IO_ALWAYS)) && usb_submit_urb(synusb->urb, GFP_NOIO) < 0) { retval = -EIO; } The same URB will then be fail when resubmitted in synusb_open(). Introduce synusb->is_open to keep track of the state instead. S

  1   2   >