Re: [PATCH] gpio: gpio-dln2: Added a Blank line after declaration

2015-01-15 Thread Johan Hovold
On Thu, Jan 15, 2015 at 06:20:43PM +0100, Linus Walleij wrote: > On Tue, Jan 13, 2015 at 4:09 PM, Mohammad Jamal > wrote: > > > Fix the coding style issue by adding a blank line after declaration > > > > Signed-off-by: Mohammad Jamal > > Patch applied. This one looks bogus; it's adding a rando

Re: [PATCH v2 3/4] mfd: dln2: add start/stop RX URBs helpers

2015-01-07 Thread Johan Hovold
x_max_size, dln2_rx, dln2); > You should remove this stray newline as well. > - ret = usb_submit_urb(dln2->rx_urb[i], GFP_KERNEL); > + } > + > + return 0; > +} Otherwise, Reviewed-by: Johan Hovold Johan -- 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 the FAQ at http://www.tux.org/lkml/

Re: [PATCH v2 4/4] mfd: dln2: add suspend/resume functionality

2015-01-07 Thread Johan Hovold
On Tue, Dec 16, 2014 at 05:57:15PM +0200, Octavian Purdila wrote: > Without suspend/resume functionality in the USB driver the USB core > will disconnect and reconnect the DLN2 port and because the GPIO > framework does not yet support removal of an in-use controller a > suspend/resume operation wi

Re: [PATCH v2 4/4] mfd: dln2: add suspend/resume functionality

2015-01-07 Thread Johan Hovold
On Thu, Jan 08, 2015 at 02:16:15AM +1300, Octavian Purdila wrote: > On Wed, Jan 7, 2015 at 11:26 PM, Johan Hovold wrote: > > On Tue, Dec 16, 2014 at 05:57:15PM +0200, Octavian Purdila wrote: > >> Without suspend/resume functionality in the USB driver the USB core > &

Re: [RESEND PATCH v2 1/2] usb: serial: handle -EPROTO quietly in generic_read_bulk

2015-01-11 Thread Johan Hovold
On Sat, Jan 10, 2015 at 04:44:32PM -0800, Jeremiah Mahler wrote: > If a USB serial device is unplugged while there is an active program > using the device it will spam the logs with -EPROTO (71) messages as it > attempts to retry. Can you change this to "might spam", as which error message, and if

Re: [PATCH v3 0/2] usb: serial: silence non-critical unplug read errors

2015-01-12 Thread Johan Hovold
On Sun, Jan 11, 2015 at 05:42:05AM -0800, Jeremiah Mahler wrote: > If a USB serial device (e.g. /dev/ttyUSB0) with an active program is > unplugged, a bunch of -ENODEV and -EPROTO errors may be produced in the > logs. This patch set quiets these messages without changing the > original behavior.

[PATCH 2/6] gpio: fix gpio-chip list corruption

2015-01-12 Thread Johan Hovold
deallocated) we are just leaking the gpio range. Fixes: 14e85c0e69d5 ("gpio: remove gpio_descs global array") Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiol

[PATCH 1/6] gpio: fix memory and reference leaks in gpiochip_add error path

2015-01-12 Thread Johan Hovold
uot;gpio / ACPI: register to ACPI events automatically") Cc: stable Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 487afe6f22fc..89c59f5f1924 10064

[PATCH 5/6] gpio: fix sleep-while-atomic in gpiochip_remove

2015-01-12 Thread Johan Hovold
ot;) Fixes: f23f1516b675 ("gpiolib: provide provision to register pin ranges") Cc: stable Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 0f8173051edc..37f91

[PATCH 0/6] gpio: fix gpio_chip add and remove

2015-01-12 Thread Johan Hovold
3.19 meanwhile. Johan Johan Hovold (6): gpio: fix memory and reference leaks in gpiochip_add error path gpio: fix gpio-chip list corruption gpio: clean up gpiochip_add error handling gpio: fix memory leak and sleep-while-atomic gpio: fix sleep-while-atomic in gpiochip_remove gpio: unreg

[PATCH 3/6] gpio: clean up gpiochip_add error handling

2015-01-12 Thread Johan Hovold
Clean up gpiochip_add error handling. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib.c | 38 +- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index ac5944b4e4d8..4efb92ca3463 100644 --- a

[PATCH 6/6] gpio: unregister gpiochip device before removing it

2015-01-12 Thread Johan Hovold
Unregister gpiochip device (used to export information through sysfs) before removing it internally. This way removal will reverse addition. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpiolib.c b

[PATCH 4/6] gpio: fix memory leak and sleep-while-atomic

2015-01-12 Thread Johan Hovold
e holding a spinlock was added (a couple of irq-domain paths can end up grabbing mutexes). Fixes: afa82fab5e13 ("gpio / ACPI: Move event handling registration to gpiolib irqchip helpers") Fixes: 1425052097b5 ("gpio: add IRQ chip helpers in gpiolib") Cc: stable Signed-off-by: J

[PATCH] pinctrl: lantiq: remove bogus of_gpio_chip_add

2015-01-12 Thread Johan Hovold
Remove bogus call to of_gpiochip_add (and of_gpio_chip remove in error path) which is also called when adding the gpio chip. This prevents adding the same pinctrl range twice. Fixes: 3f8c50c9b110 ("OF: pinctrl: MIPS: lantiq: implement lantiq/xway pinctrl support") Signed-off-by: Jo

[PATCH 0/3] gpio: sysfs: fix attribute leaks and races

2015-01-13 Thread Johan Hovold
gpio: lib-sysfs: Add 'wakeup' attribute") in gpio/devel, which adds yet another device attribute without ever removing it. Unless the commit in question can be reverted, that leak could be fixed as part of the merge resolution, I guess. Johan Johan Hovold (3): gpio: sysfs: fix gpi

[PATCH 3/3] gpio: sysfs: fix gpio attribute-creation race

2015-01-13 Thread Johan Hovold
Fix attribute-creation race with userspace by using the default group to create also the contingent gpio device attributes. Fixes: d8f388d8dc8d ("gpio: sysfs interface") Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 61 dr

[PATCH 1/3] gpio: sysfs: fix gpio-chip device-attribute leak

2015-01-13 Thread Johan Hovold
rface") Cc: stable # v2.6.27+ Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers/gpio/gpiolib-sysfs.c b/drivers/gpio/gpiolib-sysfs.c index 2ac1800b58bb..33cf4bd0ed2d 100644 --- a/dr

[PATCH 2/3] gpio: sysfs: fix gpio device-attribute leak

2015-01-13 Thread Johan Hovold
. Remove contingent attributes in export error path and on unexport. Fixes: d8f388d8dc8d ("gpio: sysfs interface") Cc: stable # v2.6.27+ Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 28 +--- 1 file changed, 13 insertions(+), 15 deletions(-) di

Re: [PATCH] gpio: gpio-dln2: Added a Blank line after declaration

2015-01-16 Thread Johan Hovold
[ Please do not top-post. ] On Fri, Jan 16, 2015 at 10:22:56AM +0530, Jamal Mohammad wrote: > I think you are write ... checkpatch.pl was giving the error at the > line so i added a blank line... i will send an updated patch.. You should not trust checkpatch.pl blindly, and not run it on in-kerne

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-16 Thread Johan Hovold
On Thu, Jan 15, 2015 at 11:49:49AM -0800, Soren Brinkmann wrote: > Add an attribute 'wakeup' to the GPIO sysfs interface which allows > marking/unmarking a GPIO as wake IRQ. > The file 'wakeup' is created in each exported GPIOs directory, if an IRQ > is associated with that GPIO and the irqchip imp

Re: [PATCH v4] gpio: lib-sysfs: Add 'wakeup' attribute

2015-01-19 Thread Johan Hovold
On Fri, Jan 16, 2015 at 08:49:17AM -0800, Sören Brinkmann wrote: > On Fri, 2015-01-16 at 12:11PM +0100, Johan Hovold wrote: > > On Thu, Jan 15, 2015 at 11:49:49AM -0800, Soren Brinkmann wrote: > > > Add an attribute 'wakeup' to the GPIO sysfs interface which allows &g

Re: [PATCH] drivers/usb/serial/mos7840.c: remove unused code

2015-01-19 Thread Johan Hovold
On Tue, Jan 13, 2015 at 05:41:45PM +, Colin King wrote: > From: Colin Ian King > > There is old, unused code that is #defined out by the > use of NOTMOS7840 - this is not defined anywhere. If > NOTMOS7840 is defined then the code will break on null > pointer dereferences on mos7840_port. So

Re: [PATCH 1/1] usb: serial: Fintek F81232 driver improvement

2015-01-19 Thread Johan Hovold
On Mon, Jan 19, 2015 at 09:54:55AM +0800, Peter Hung wrote: > The original driver completed with TX function, but RX/MSR/MCR/LSR is not > workable with this driver. So we rewrite it to make this device workable. > > This patch is tested with PassMark BurnInTest with Cycle-to-115200 + > MCR/MSR che

Re: [PATCH][V2] drivers/usb/serial/mos7840.c: remove unused code

2015-01-19 Thread Johan Hovold
On Mon, Jan 19, 2015 at 01:32:58PM +, Colin King wrote: > From: Colin Ian King > > There is old, unused code that is #defined out by the > use of NOTMOS7840 and NOTMCS7840 - these are not > defined anywhere. > > If NOTMOS7840 is defined then the code will break on null > pointer dereferences

Re: [PATCH] Added PIDs for Actisense USB Devices

2015-01-19 Thread Johan Hovold
On Thu, Jan 15, 2015 at 08:34:34AM +, Mark Glover wrote: > From: Mark Glover > > Signed-off-by: Mark Glover Thanks for the patch and for addressing Peter's comments. A couple of minor nits: Please use a subsystem prefix for your patch summary, for example: "USB: ftdi_sio: add PIDs

Re: [PATCH v3 0/2] DLN2 fixes related to suspend/resume

2015-01-19 Thread Johan Hovold
On Mon, Jan 19, 2015 at 01:51:34PM +0200, Octavian Purdila wrote: > Hi Lee, > > Here is the 3rd version of the patch-set against for-mfd-next branch > with the Reviewed-by tags from Johan. Note that I dropped the two GPIO > patches as they were already merged by Linus W in the GPIO tree. > > Than

[PATCH 0/2] gpio: sysfs: backports of memleak fixes to 3.12

2015-01-26 Thread Johan Hovold
Hi Greg, Here are backports of two fixes for memory leaks in the gpio sysfs interface that are needed in the stable trees. Tested on 3.12, but will not compile on 3.10 or earlier which lacks device_create_with_groups. I'll send a second version for these kernels. Johan Johan Hovo

[PATCH 1/2] gpio: sysfs: fix gpio-chip device-attribute leak

2015-01-26 Thread Johan Hovold
with userspace. Fixes: d8f388d8dc8d ("gpio: sysfs interface") Cc: stable # v2.6.27+ Signed-off-by: Johan Hovold Signed-off-by: Linus Walleij Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git

[PATCH 2/2] gpio: sysfs: fix gpio device-attribute leak

2015-01-26 Thread Johan Hovold
attribute-creation race with userspace for these attributes. Remove contingent attributes in export error path and on unexport. Fixes: d8f388d8dc8d ("gpio: sysfs interface") Cc: stable # v2.6.27+ Signed-off-by: Johan Hovold Signed-off-by: Linus Walleij Signed-off-by: Johan Hovold --- dr

[PATCH 2/2] gpio: sysfs: fix gpio device-attribute leak

2015-01-26 Thread Johan Hovold
attribute-creation race with userspace for these attributes. Remove contingent attributes in export error path and on unexport. Fixes: d8f388d8dc8d ("gpio: sysfs interface") Cc: stable # v2.6.27+ Signed-off-by: Johan Hovold Signed-off-by: Linus Walleij [johan: fix lea

[PATCH 1/2] gpio: sysfs: fix gpio-chip device-attribute leak

2015-01-26 Thread Johan Hovold
with userspace. Fixes: d8f388d8dc8d ("gpio: sysfs interface") Cc: stable # v2.6.27+ Signed-off-by: Johan Hovold Signed-off-by: Linus Walleij [johan: fix leak without device_create_with_groups, which wasn't introduced until 3.11 ] Signed-off-by: Johan Hovold --- drivers/gpi

[PATCH 0/2] gpio: sysfs: backports of memleak fixes to 3.10

2015-01-26 Thread Johan Hovold
And here are the backports of the two fixes for memory leaks in the gpio sysfs interface for 3.10 and earlier. Tested on 3.12 and compile-tested on 3.10. Johan Johan Hovold (2): gpio: sysfs: fix gpio-chip device-attribute leak gpio: sysfs: fix gpio device-attribute leak drivers/gpio

Re: [PATCH 3.12 140/176] gpio: sysfs: fix gpio device-attribute leak

2015-01-28 Thread Johan Hovold
On Wed, Jan 28, 2015 at 06:46:26PM +0100, Jiri Slaby wrote: > On 01/28/2015, 05:10 PM, Johan Hovold wrote: > > On Wed, Jan 28, 2015 at 03:29:30PM +0100, Jiri Slaby wrote: > >> From: Johan Hovold > >> > >> 3.12-stable review patch. If anyone has any

Re: [PATCH 3.14 02/77] gpio: sysfs: fix gpio device-attribute leak

2015-01-28 Thread Johan Hovold
On Wed, Jan 28, 2015 at 02:30:08PM +, Luis Henriques wrote: > On Tue, Jan 27, 2015 at 05:26:40PM -0800, Greg Kroah-Hartman wrote: > > @@ -994,6 +991,8 @@ void gpiod_unexport(struct gpio_desc *de > > > > dev = class_find_device(&gpio_class, NULL, desc, match_export); > >

Re: [PATCH v3 1/5] usb: serial: add register map for F81232

2015-01-28 Thread Johan Hovold
On Wed, Jan 28, 2015 at 01:57:56PM +0800, Peter Hung wrote: > Add register map for F81232. and add some function to operating this device. > etc. f81232_get_register()/f81232_set_register() to work with USB control > point. and worker f81232_int_work_wq() to read MSR when IIR acquired. > > Signed-

[PATCH v2] gpio: sysfs: fix gpio device-attribute leak

2015-01-28 Thread Johan Hovold
attribute-creation race with userspace for these attributes. Remove contingent attributes in export error path and on unexport. Fixes: d8f388d8dc8d ("gpio: sysfs interface") Cc: stable # v2.6.27+ Signed-off-by: Johan Hovold Signed-off-by: Linus Walleij --- Backport to v3.10 (and earlier) w

Re: [PATCH v2 0/5] mfd: Fix platform device ids to avoid probe failure

2015-03-23 Thread Johan Hovold
On Fri, Mar 20, 2015 at 08:23:18PM +0100, Bartlomiej Zolnierkiewicz wrote: > Commit 6e3f62f0793e ("mfd: core: Fix platform-device id generation") > changed the way platform device ids are generated from mfd id base and > cell ids in mfd_add_device(). Unfortunately the change in question > breaks

Re: [PATCH] Documentation: usb: serial: fixed how to provide vendor and product id

2015-04-02 Thread Johan Hovold
On Thu, Apr 02, 2015 at 12:12:37PM +0200, Jonathan Corbet wrote: > On Sat, 28 Mar 2015 14:37:57 +0100 > Marek Belisko wrote: > > > This patch changes the documentation file as needed. > > Applied to the docs tree (with the changelog typo fixed). This patch was incorrect and needed to be updated

Re: [PATCH] Documentation: usb: serial: fixed how to provide vendor and product id

2015-04-02 Thread Johan Hovold
On Thu, Apr 02, 2015 at 04:25:50PM +0200, Dr. H. Nikolaus Schaller wrote: > But it is outdated. The parameters vendor= and product= are no longer > available since ca. 3.12 which means that documentation is lagging behind > quite some time. > >>> > >>> This is simply not true. The

Re: [PATCH v2] USB: serial: add nt124 usb to serial driver

2015-04-06 Thread Johan Hovold
On Tue, Mar 03, 2015 at 11:57:04AM -0600, George McCollister wrote: > This driver is for the NovaTech 124 4x serial expansion board for the > NovaTech OrionLXm. > > Firmware source code can be found here: > https://github.com/novatechweb/nt124 > > Signed-off-by: George McCollister > --- > Change

[PATCH 1/2] USB: musb: fix inefficient copy of unaligned buffers

2015-04-07 Thread Johan Hovold
ement (un)map_urb_for_dma hooks") Cc: stable # v3.10 Signed-off-by: Johan Hovold --- drivers/usb/musb/musb_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index c3d5fc9dfb5b..d8327ec19a1f 100644 --- a/d

[PATCH 0/2] USB: fix lockup on disconnect

2015-04-07 Thread Johan Hovold
unaligned transfers, appears to already get this right. Johan Johan Hovold (2): USB: musb: fix inefficient copy of unaligned buffers USB: ehci-tegra: fix inefficient copy of unaligned buffers drivers/usb/host/ehci-tegra.c | 2 +- drivers/usb/musb/musb_host.c | 2 +- 2 files changed, 2

[PATCH 2/2] USB: ehci-tegra: fix inefficient copy of unaligned buffers

2015-04-07 Thread Johan Hovold
# v2.6.39 Signed-off-by: Johan Hovold --- drivers/usb/host/ehci-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index ff9af29b4e9f..dfe2a7abc36d 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb

Re: [PATCH] pl2303, visor: Match I330 phone more precisely

2015-04-22 Thread Johan Hovold
On Wed, Apr 22, 2015 at 12:14:05PM +0200, Jason A. Donenfeld wrote: > Samsung has just released a portable USB3 SSD, coming in a very small > and nice form factor. It's USB ID is 04e8:8001, which unfortunately is > already used by the pl2303 USB serial driver and the Palm Visor driver > for the Sam

Re: [PATCH] pl2303, visor: Match I330 phone more precisely

2015-04-22 Thread Johan Hovold
On Wed, Apr 22, 2015 at 02:38:00PM +0200, Greg Kroah-Hartman wrote: > On Wed, Apr 22, 2015 at 01:20:38PM +0200, Johan Hovold wrote: > > On Wed, Apr 22, 2015 at 12:14:05PM +0200, Jason A. Donenfeld wrote: > > > Samsung has just released a portable USB3 SSD, coming in a very sm

Re: [PATCH 2/2] visor: Match I330 phone more precisely

2015-04-22 Thread Johan Hovold
On Wed, Apr 22, 2015 at 02:35:09PM +0200, Jason A. Donenfeld wrote: > Samsung has just released a portable USB3 SSD, coming in a very small > and nice form factor. It's USB ID is 04e8:8001, which unfortunately is > already used by the Palm Visor driver for the Samsung I330 phone cradle. > Having pl

Re: [PATCH] pl2303, visor: Match I330 phone more precisely

2015-04-22 Thread Johan Hovold
On Wed, Apr 22, 2015 at 04:58:44PM +0200, Greg Kroah-Hartman wrote: > On Wed, Apr 22, 2015 at 04:20:39PM +0200, Johan Hovold wrote: > > On Wed, Apr 22, 2015 at 02:38:00PM +0200, Greg Kroah-Hartman wrote: > > > On Wed, Apr 22, 2015 at 01:20:38PM +0200, Johan Hovold wrote: >

[PATCH v2 2/3] USB: ehci-tegra: fix inefficient copy of unaligned buffers

2015-04-23 Thread Johan Hovold
Make sure only to copy any actual data rather than the whole buffer, when releasing the temporary buffer used for unaligned non-isochronous transfers. Compile-tested only. Signed-off-by: Johan Hovold --- drivers/usb/host/ehci-tegra.c | 12 +--- 1 file changed, 9 insertions(+), 3

[PATCH v2 1/3] USB: musb: fix inefficient copy of unaligned buffers

2015-04-23 Thread Johan Hovold
Make sure only to copy any actual data rather than the whole buffer, when releasing the temporary buffer used for unaligned non-isochronous transfers. Signed-off-by: Johan Hovold --- drivers/usb/musb/musb_host.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a

[PATCH v2 3/3] staging: octeon-usb: fix unaligned isochronous transfers

2015-04-23 Thread Johan Hovold
Make sure to copy the whole transfer buffer when releasing the temporary buffer used for unaligned isochronous transfers as the data is not necessarily contiguous in that case. Signed-off-by: Johan Hovold --- drivers/staging/octeon-usb/octeon-hcd.c | 12 +--- 1 file changed, 9

[PATCH v2 0/3] USB: fix inefficient copy of unaligned buffers

2015-04-23 Thread Johan Hovold
). - Drop stable tags as this is really just an optimisation. Johan Hovold (3): USB: musb: fix inefficient copy of unaligned buffers USB: ehci-tegra: fix inefficient copy of unaligned buffers staging: octeon-usb: fix unaligned isochronous transfers drivers/staging/octeon-usb/octeon-hcd.c | 12

Re: [PATCH v2 2/3] USB: ehci-tegra: fix inefficient copy of unaligned buffers

2015-04-23 Thread Johan Hovold
On Thu, Apr 23, 2015 at 04:31:51PM +0200, Frans Klaver wrote: > On Thu, Apr 23, 2015 at 4:06 PM, Johan Hovold wrote: > > static void free_dma_aligned_buffer(struct urb *urb) > > { > > struct dma_aligned_buffer *temp; > > + size_t length; > > >

Re: [PATCH v2 2/3] USB: ehci-tegra: fix inefficient copy of unaligned buffers

2015-04-23 Thread Johan Hovold
On Thu, Apr 23, 2015 at 02:32:26PM -0600, Stephen Warren wrote: > On 04/23/2015 08:06 AM, Johan Hovold wrote: > > Make sure only to copy any actual data rather than the whole buffer, > > when releasing the temporary buffer used for unaligned non-isochronous > > transfers. &

Re: [PATCH v2] Documentation usb serial: fixed how to provide vendor and product id

2015-04-14 Thread Johan Hovold
On Mon, Apr 13, 2015 at 10:09:27PM +0200, Marek Belisko wrote: > From: "H. Nikolaus Schaller" > > While trying to test a Cinterion GSM/GPS/3G module I had reconfigured > the USB interface by mistake and therefore needed to run a different > USB driver than CDC-ACM. It turned out that I need the "

Re: [PATCH 1/2] mfd: da9052: fix broken regulator probe

2015-04-14 Thread Johan Hovold
Hi Mark and Lee, On Thu, Mar 26, 2015 at 08:32:09AM +, Lee Jones wrote: > On Wed, 25 Mar 2015, Johan Hovold wrote: > > > Fix broken probe of da9052 regulators, which since commit b3f6c73db732 > > ("mfd: da9052-core: Fix platform-device id collision") use a &g

Re: [PATCH] Documentation: usb: serial: fixed how to provide vendor and product id

2015-03-30 Thread Johan Hovold
On Mon, Mar 30, 2015 at 11:32:39AM +0200, Dr. H. Nikolaus Schaller wrote: > Hi Johan, > > Am 30.03.2015 um 09:45 schrieb Johan Hovold : > > > On Sat, Mar 28, 2015 at 02:37:57PM +0100, Marek Belisko wrote: > >> From: "H. Nikolaus Schaller" > >>

Re: [Gta04-owner] [PATCH] Documentation: usb: serial: fixed how to provide vendor and product id

2015-03-30 Thread Johan Hovold
On Mon, Mar 30, 2015 at 11:40:20AM +0200, Dr. H. Nikolaus Schaller wrote: > >>> diff --git a/Documentation/usb/usb-serial.txt > >>> b/Documentation/usb/usb-serial.txt > >>> index 947fa62..9f184d8 100644 > >>> --- a/Documentation/usb/usb-serial.txt > >>> +++ b/Documentation/usb/usb-serial.txt > >>

Re: [PATCH 08/23] gpio: remove gpiod_sysfs_set_active_low

2015-04-27 Thread Johan Hovold
On Mon, Apr 27, 2015 at 12:54:15PM +0900, Alexandre Courbot wrote: > On Wed, Apr 22, 2015 at 12:42 AM, Johan Hovold wrote: > > Remove gpiod_sysfs_set_active_low (and gpio_sysfs_set_active_low) which > > allowed code to change the polarity of a gpio line even after it had > >

Re: [PATCH 07/23] gpio: sysfs: rename gpiochip registration functions

2015-04-27 Thread Johan Hovold
On Mon, Apr 27, 2015 at 12:54:36PM +0900, Alexandre Courbot wrote: > On Wed, Apr 22, 2015 at 12:42 AM, Johan Hovold wrote: > > Rename the gpio-chip export/unexport functions to the more descriptive > > names gpiochip_register and gpiochip_unregister. > > Since these fun

Re: [PATCH 06/23] gpio: sysfs: clean up chip class-device handling

2015-04-27 Thread Johan Hovold
On Mon, Apr 27, 2015 at 12:54:41PM +0900, Alexandre Courbot wrote: > On Wed, Apr 22, 2015 at 12:42 AM, Johan Hovold wrote: > > Clean gpio-chip class device registration and deregistration. > > > > The class device is registered when a gpio-chip is added (or from > > g

Re: [PATCH 07/23] gpio: sysfs: rename gpiochip registration functions

2015-04-27 Thread Johan Hovold
On Mon, Apr 27, 2015 at 05:50:54PM +0900, Alexandre Courbot wrote: > On Mon, Apr 27, 2015 at 5:27 PM, Johan Hovold wrote: > > On Mon, Apr 27, 2015 at 12:54:36PM +0900, Alexandre Courbot wrote: > >> On Wed, Apr 22, 2015 at 12:42 AM, Johan Hovold wrote: > >> > Rename

Re: [PATCH] net: phy: micrel: support !CONFIG_HAVE_CLK

2015-04-27 Thread Johan Hovold
On Mon, Apr 27, 2015 at 01:00:50PM +0200, Niklas Cassel wrote: > Since NULL is a valid clock, we shouldn't use > IS_ERR_OR_NULL. > > Implemented as Russell King suggested in: > > http://lkml.kernel.org/r/20150207172949.ge8...@n2100.arm.linux.org.uk > > Signed-off-by: Niklas Cassel > --- > driv

Re: [PATCH] net: phy: micrel: support !CONFIG_HAVE_CLK

2015-04-27 Thread Johan Hovold
On Mon, Apr 27, 2015 at 01:05:17PM +0200, Johan Hovold wrote: > On Mon, Apr 27, 2015 at 01:00:50PM +0200, Niklas Cassel wrote: > > Since NULL is a valid clock, we shouldn't use > > IS_ERR_OR_NULL. > > > > Implemented as Russell King suggested in: > > >

Re: [PATCH 07/23] gpio: sysfs: rename gpiochip registration functions

2015-04-28 Thread Johan Hovold
On Tue, Apr 28, 2015 at 12:27:16PM +0900, Alexandre Courbot wrote: > On Mon, Apr 27, 2015 at 6:05 PM, Johan Hovold wrote: > > On Mon, Apr 27, 2015 at 05:50:54PM +0900, Alexandre Courbot wrote: > >> On Mon, Apr 27, 2015 at 5:27 PM, Johan Hovold wrote: > >> > On M

Re: [PATCH 2/2] USB: ehci-tegra: fix inefficient copy of unaligned buffers

2015-04-07 Thread Johan Hovold
On Tue, Apr 07, 2015 at 11:30:15AM -0400, Alan Stern wrote: > On Tue, 7 Apr 2015, Johan Hovold wrote: > > > Make sure only to copy any actual data rather than the whole buffer, > > when releasing the temporary buffer used for unaligned transfer buffers. > > > > Note

Re: [PATCH 1/2] mfd: da9052: fix broken regulator probe

2015-04-29 Thread Johan Hovold
On Tue, Apr 14, 2015 at 03:04:06PM +0200, Johan Hovold wrote: > Hi Mark and Lee, > > On Thu, Mar 26, 2015 at 08:32:09AM +, Lee Jones wrote: > > On Wed, 25 Mar 2015, Johan Hovold wrote: > > > > > Fix broken probe of da9052 regulators, which since commit b3f6c73

Re: [PATCH 2/2] visor: Match I330 phone more precisely

2015-04-29 Thread Johan Hovold
On Wed, Apr 22, 2015 at 04:30:12PM +0200, Johan Hovold wrote: > On Wed, Apr 22, 2015 at 02:35:09PM +0200, Jason A. Donenfeld wrote: > > Samsung has just released a portable USB3 SSD, coming in a very small > > and nice form factor. It's USB ID is 04e8:8001, which unfortunately

Re: [PATCH 01/23] gpio: sysfs: fix memory leaks and device hotplug

2015-04-30 Thread Johan Hovold
On Wed, Apr 29, 2015 at 11:44:18PM +0200, Linus Walleij wrote: > On Tue, Apr 21, 2015 at 5:42 PM, Johan Hovold wrote: > > > Unregister GPIOs requested through sysfs at chip remove to avoid leaking > > the associated memory and sysfs entries. > > > > The stale sy

Re: [PATCH 03/23] gpio: sysfs: drop redundant lock-as-irq

2015-04-30 Thread Johan Hovold
On Wed, Apr 29, 2015 at 11:48:57PM +0200, Linus Walleij wrote: > On Tue, Apr 21, 2015 at 5:42 PM, Johan Hovold wrote: > > > Drop redundant lock-as-irq in gpio_setup_irq, which has already been > > handled when requesting and releasing the irq (i.e. in the irq chip > > i

Re: [PATCH v2] Documentation usb serial: fixed how to provide vendor and product id

2015-04-21 Thread Johan Hovold
/sys/bus/usb-serial/drivers/generic/new_id > > This patch changes the documentation file to describe the modern variant. > Please note that the old one still works (if compiled as module). > > Signed-off-by: H. Nikolaus Schaller > Signed-off-by: Marek Belisko > --- >

Re: [PATCH v2] Documentation usb serial: fixed how to provide vendor and product id

2015-04-21 Thread Johan Hovold
On Tue, Apr 21, 2015 at 01:57:05PM +0200, Bjørn Mork wrote: > Johan Hovold writes: > > On Mon, Apr 20, 2015 at 10:15:20PM +0200, Marek Belisko wrote: > >> From: "H. Nikolaus Schaller" > >> > >> The parameters vendor= and product= are only

[PATCH 10/23] gpio: sysfs: release irq after class-device deregistration

2015-04-21 Thread Johan Hovold
no need to hold the sysfs lock when releasing the irq after the class device is gone as kernfs will prevent further attribute operations. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpiolib

[PATCH 00/23] gpio: sysfs: fixes and clean ups

2015-04-21 Thread Johan Hovold
le at least) without losing our sanity. Note that there is still a race between chip remove and gpiod_request (and therefore sysfs export), which needs to be fixed separately (for instance as part of a generic solution to chip hotplugging). Johan Johan Hovold (23): gpio: sysfs: fix memory leak

[PATCH 22/23] gpio: sysfs: remove FLAG_SYSFS_DIR

2015-04-21 Thread Johan Hovold
Remove FLAG_SYSFS_DIR, which is sysfs-interface specific, and store it in the class-device data instead. Note that the flag is only used during export. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 15 +++ drivers/gpio/gpiolib.h | 1 - 2 files changed, 7

[PATCH 15/23] gpio: sysfs: only call irq helper if needed

2015-04-21 Thread Johan Hovold
Only call irq helper if actually reconfiguring interrupt state. This is a preparatory step in introducing separate gpio-irq request and free functions. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff

[PATCH 14/23] gpio: sysfs: clean up interrupt-interface implementation

2015-04-21 Thread Johan Hovold
Store the value sysfs entry in the gpiod data rather than in a global table accessed through an index stored in the overloaded gpio-descriptor flag field. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 54 +++- drivers/gpio/gpiolib.h

[PATCH 16/23] gpio: sysfs: split irq allocation and deallocation

2015-04-21 Thread Johan Hovold
Add separate helper functions for irq request and free. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 72 ++-- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/drivers/gpio/gpiolib-sysfs.c b/drivers/gpio/gpiolib-sysfs.c

[PATCH 13/23] gpio: sysfs: remove redundant gpio-descriptor parameters

2015-04-21 Thread Johan Hovold
Remove redundant gpio-descriptor parameters from sysfs_set_active_low and gpio_setup_irq. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 24 +++- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/drivers/gpio/gpiolib-sysfs.c b/drivers/gpio

[PATCH 23/23] gpio: sysfs: move irq trigger flags to class-device data

2015-04-21 Thread Johan Hovold
Move irq trigger flags, which as sysfs-interface specific, to the class device data. This avoids accessing the gpio-descriptor flags field using non-atomic operations without any locking, and allows for a more clear separation of the sysfs interface from gpiolib core. Signed-off-by: Johan Hovold

[PATCH 09/23] gpio: sysfs: use DEVICE_ATTR macros

2015-04-21 Thread Johan Hovold
Use DEVICE_ATTR_RO and DEVICE_ATTR_RW rather than specifying masks and callbacks directly. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 43 ++- 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/drivers/gpio/gpiolib-sysfs.c

[PATCH 19/23] gpio: sysfs: use per-gpio locking

2015-04-21 Thread Johan Hovold
. Note that this is also needed to fix a race between gpiod_export and gpiod_unexport. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 52 +--- 1 file changed, 34 insertions(+), 18 deletions(-) diff --git a/drivers/gpio/gpiolib-sysfs.c b

[PATCH 06/23] gpio: sysfs: clean up chip class-device handling

2015-04-21 Thread Johan Hovold
lookup on deregistration. This also removes the need for the exported flag. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 39 +-- include/linux/gpio/driver.h | 4 ++-- 2 files changed, 15 insertions(+), 28 deletions(-) diff --git a/drivers

[PATCH 05/23] gpio: sysfs: reduce gpiochip-export locking scope

2015-04-21 Thread Johan Hovold
Reduce scope of sysfs_lock protection during chip export and unexport, which is only needed to prevent gpiod (re-)exports during chip removal. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpio

[PATCH 08/23] gpio: remove gpiod_sysfs_set_active_low

2015-04-21 Thread Johan Hovold
exporting the gpio. There are no in-kernel users of this interface. Cc: Jonathan Corbet Cc: Harry Wei Cc: Arnd Bergmann Cc: linux-...@vger.kernel.org Cc: linux-ker...@zh-kernel.org Cc: linux-a...@vger.kernel.org Signed-off-by: Johan Hovold --- Documentation/gpio/gpio-legacy.txt | 9

[PATCH 04/23] gpio: sysfs: preparatory clean ups

2015-04-21 Thread Johan Hovold
Put the recently introduced gpio-chip pointer to some more use in gpiod_export. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpiolib-sysfs.c b/drivers/gpio/gpiolib-sysfs.c index d87f595a02ce

[PATCH 12/23] gpio: sysfs: add gpiod class-device data

2015-04-21 Thread Johan Hovold
Add gpiod class-device data. This is a first step in getting rid of the insane gpio-descriptor flag overloading, backward irq-interface implementation, and course grained sysfs-interface locking (a single static mutex for every operation on all exported gpios in a system). Signed-off-by: Johan

[PATCH 21/23] gpio: sysfs: rename active-low helper

2015-04-21 Thread Johan Hovold
Rename active-low helper using common prefix. Also remove unnecessary manipulation of value argument. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpiolib-sysfs.c b/drivers/gpio/gpiolib-sysfs.c

[PATCH 07/23] gpio: sysfs: rename gpiochip registration functions

2015-04-21 Thread Johan Hovold
Rename the gpio-chip export/unexport functions to the more descriptive names gpiochip_register and gpiochip_unregister. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 13 +++-- drivers/gpio/gpiolib.c | 4 ++-- drivers/gpio/gpiolib.h | 8 3 files

[PATCH 17/23] gpio: sysfs: clean up edge_store

2015-04-21 Thread Johan Hovold
Remove goto from success path. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpiolib-sysfs.c b/drivers/gpio/gpiolib-sysfs.c index 323272569292..761e1644cff1 100644 --- a/drivers/gpio

[PATCH 20/23] gpio: sysfs: fix race between gpiod export and unexport

2015-04-21 Thread Johan Hovold
operations to drain during deregistration. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 51 ++-- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/drivers/gpio/gpiolib-sysfs.c b/drivers/gpio/gpiolib-sysfs.c index 19c4351021d9

[PATCH 11/23] gpio: sysfs: remove redundant export tests

2015-04-21 Thread Johan Hovold
The attribute operations will never be called for an unregistered device so remove redundant checks for FLAG_EXPORT. Note that kernfs will also guarantee that any active sysfs operation has finished before the attribute is removed during deregistration. Signed-off-by: Johan Hovold --- drivers

[PATCH 18/23] gpio: sysfs: clean up gpiod_export_link locking

2015-04-21 Thread Johan Hovold
Drop unnecessary locking from gpiod_export_link. If the class device has not already been unregistered, class_find_device returns the ref-counted class device so there's no need for locking. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 28 1

[PATCH 03/23] gpio: sysfs: drop redundant lock-as-irq

2015-04-21 Thread Johan Hovold
) explicit call ever failed. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpio/gpiolib-sysfs.c b/drivers/gpio/gpiolib-sysfs.c index af3bc7a8033b..d87f595a02ce 100644 --- a/drivers/gpio/gpiolib-sysfs.c +++ b/drivers/gpio

[PATCH 02/23] gpio: clean up gpiochip_remove

2015-04-21 Thread Johan Hovold
Clean up gpiochip_remove somewhat and only output warning about removing chip with GPIOs requested once. Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c

[PATCH 01/23] gpio: sysfs: fix memory leaks and device hotplug

2015-04-21 Thread Johan Hovold
on pre-3.14 kernels (prior to kernfs). Fixes: d8f388d8dc8d ("gpio: sysfs interface") Cc: stable # v2.6.27: 01cca93a9491 Signed-off-by: Johan Hovold --- drivers/gpio/gpiolib-sysfs.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/gpio/gpiolib-sysfs.c

Re: [PATCH v2] USB SERIAL: option.c: add 2020:4000 IDs

2015-06-17 Thread Johan Hovold
On Fri, Jun 12, 2015 at 09:32:31AM +0200, Claudio Cappelli wrote: > On Wednesday 10 June 2015 20:38:30 Claudio Cappelli wrote: > > From: Claudio Cappelli > > > > Add device Olivetti Olicard 300 (Network Connect: MT6225) - IDs 2020:4000. > > > > Signed-off-by: Claudio Cappelli > > Suggested-by:

Re: [PATCH 3.14 36/44] ARM: dts: am335x-boneblack: disable RTC-only sleep to avoid hardware damage

2015-06-22 Thread Johan Hovold
[ Responding to the review request with lkml on CC as well. ] On Fri, Jun 19, 2015 at 01:36:35PM -0700, Greg Kroah-Hartman wrote: > 3.14-stable review patch. If anyone has any objections, please let me know. This one can be dropped from 3.14-stable as it is only needed in 3.19 and later kernels

Re: [PATCH 0/2] FTDI CBUS GPIO support

2015-06-22 Thread Johan Hovold
On Sun, Jun 21, 2015 at 12:12:55AM +0200, Stefan Agner wrote: > Yet another FTDI GPIO patchset. Yet somewhat different to previous > implementations... > > There are three GPIO modes supported by FTDI devices: > 1. Asynchronous Bit Bang Mode (used in Sacha's patch) > 2. Synchronous Bit Bang Mode (

Re: [PATCH 0/2] FTDI CBUS GPIO support

2015-06-23 Thread Johan Hovold
On Mon, Jun 22, 2015 at 10:11:35PM +0200, Stefan Agner wrote: > On 2015-06-22 19:26, Johan Hovold wrote: > > Instead, hang the gpio chip directly off the usb interface (not the > > port), add a new config option, and keep the gpio implementation under > > drivers/usb/serial

Re: [PATCH v2 4/7] USB: mos7720: rename DCR

2015-06-23 Thread Johan Hovold
On Thu, Jun 18, 2015 at 05:47:50PM +0530, Sudip Mukherjee wrote: > While building with mn10300 it failed with: > error: expected identifier before '(' token > #define __SYSREG(ADDR, TYPE) (*(volatile TYPE *)(ADDR)) > note: in expansion of macro '__SYSREG' > #define DCR __SYSREG(0xc030, u16)

<    1   2   3   4   5   6   7   8   9   10   >