Re: [PATCH v1] Input: elants_i2c: Add Elan touchscreen support

2014-11-20 Thread Oliver Neukum
e. > + for (retry_cnt = 0; retry_cnt < MAX_RETRIES; retry_cnt++) { > + error = elants_i2c_sw_reset(client); > + if (error) { > + /* Continue initializing if it's the last try > */ > + if (retry_cnt < MAX_RETRIES - 1) &

Re: [PATCH v1] Input: elants_i2c: Add Elan touchscreen support

2014-11-20 Thread Oliver Neukum
); + if (error) { + /* Continue initializing if it's the last try */ + if (retry_cnt MAX_RETRIES - 1) + continue; + } Regards Oliver -- Oliver Neukum oneu...@suse.de

Re: [PATCH v1] Input: elants_i2c: Add Elan touchscreen support

2014-11-20 Thread Oliver Neukum
On Thu, 2014-11-20 at 09:47 -0800, Dmitry Torokhov wrote: Hi Oliver, On Thu, Nov 20, 2014 at 11:31:30AM +0100, Oliver Neukum wrote: +static int elants_i2c_initialize(struct elants_data *ts) +{ + struct i2c_client *client = ts-client; + int error, retry_cnt

Re: Add quirks for another ELAN Touchscreen

2014-11-17 Thread Oliver Neukum
On Mon, 2014-11-17 at 09:32 -0600, Bryan Poling wrote: > I tried making patch files but was not successful (I may try again). I > hope somebody can add this though. Thanks, and best regards. I made and submitted a patch. What step did you fail at? Regards Oliver -- To

Re: Add quirks for another ELAN Touchscreen

2014-11-17 Thread Oliver Neukum
On Mon, 2014-11-17 at 09:32 -0600, Bryan Poling wrote: I tried making patch files but was not successful (I may try again). I hope somebody can add this though. Thanks, and best regards. I made and submitted a patch. What step did you fail at? Regards Oliver -- To

Re: [PATCH] HID: usbhid: get/put around clearing needs_remote_wakeup

2014-11-14 Thread Oliver Neukum
me > protection isn't there when clearing needs_remote_wakeup. This will > add that to usbhid_close as well as usbhid_stop. Interesting, but this has the side effect of waking devices that are asleep just to remove the flag. Regards Oliver -- Oliver Neukum -

Re: [PATCH] HID: usbhid: get/put around clearing needs_remote_wakeup

2014-11-14 Thread Oliver Neukum
there when clearing needs_remote_wakeup. This will add that to usbhid_close as well as usbhid_stop. Interesting, but this has the side effect of waking devices that are asleep just to remove the flag. Regards Oliver -- Oliver Neukum oneu...@suse.de -- To unsubscribe from

Re: [V2 PATCH 04/10] added media agnostic (MA) USB packet handling

2014-11-12 Thread Oliver Neukum
total_length += current_kvec->iov_len; > + } > + > + return total_length; > +} > + Regards Oliver -- Oliver Neukum -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord

Re: Erich Schubert you cannot Diminish me. (systemd fanboi /male feminist bans further discussion)

2014-11-12 Thread Oliver Neukum
On Wed, 2014-11-12 at 10:51 +0100, Castle OfWhite wrote: > "We are unable to post your comment because you have been blocked by > Vitavonni. Find out more." We don't care. This is the kernel list. Take that elsewhere. Oliver -- To unsubscribe from this list: send the line "unsubscribe

Re: [V2 PATCH 02/10] added media agnostic (MA) USB HCD roothubs

2014-11-12 Thread Oliver Neukum
. One instance > + * exists per root hub. > + */ > +struct __attribute__((__packed__)) mausb_root_hub { Why __packed__ ? > + > + /* hub parameters */ > + struct usb_hub_descriptor descriptor; > + struct usb_hub_status status; > + > + /* port parameters*/ > + struct usb_port_statusport_status[MAUSB_ROOTHUB_NUM_PORTS]; > + > + /* root hub state */ > + enum mausb_rh_state rh_state; > + > +}; HTH Oliver -- Oliver Neukum -- 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: [V2 PATCH 02/10] added media agnostic (MA) USB HCD roothubs

2014-11-12 Thread Oliver Neukum
parameters*/ + struct usb_port_statusport_status[MAUSB_ROOTHUB_NUM_PORTS]; + + /* root hub state */ + enum mausb_rh_state rh_state; + +}; HTH Oliver -- Oliver Neukum oneu...@suse.de -- To unsubscribe from this list: send the line unsubscribe

Re: Erich Schubert you cannot Diminish me. (systemd fanboi /male feminist bans further discussion)

2014-11-12 Thread Oliver Neukum
On Wed, 2014-11-12 at 10:51 +0100, Castle OfWhite wrote: We are unable to post your comment because you have been blocked by Vitavonni. Find out more. We don't care. This is the kernel list. Take that elsewhere. Oliver -- To unsubscribe from this list: send the line unsubscribe

Re: [V2 PATCH 04/10] added media agnostic (MA) USB packet handling

2014-11-12 Thread Oliver Neukum
; +} + Regards Oliver -- Oliver Neukum oneu...@suse.de -- 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

Re: [PATCH] brcmfmac: unlink URB when request timed out

2014-11-11 Thread Oliver Neukum
On Tue, 2014-11-11 at 20:02 -0500, Mathy Vanhoef wrote: > On 11/10/2014 04:08 AM, Oliver Neukum wrote: > > Which means that you are freeing memory that may still be used by DMA > > at this time. > > In addition you have no guarantee that the unlink is indeed finished &g

Re: [PATCH] brcmfmac: unlink URB when request timed out

2014-11-11 Thread Oliver Neukum
On Tue, 2014-11-11 at 20:02 -0500, Mathy Vanhoef wrote: On 11/10/2014 04:08 AM, Oliver Neukum wrote: Which means that you are freeing memory that may still be used by DMA at this time. In addition you have no guarantee that the unlink is indeed finished by the time the URB is reused

Re: [PATCH] brcmfmac: unlink URB when request timed out

2014-11-10 Thread Oliver Neukum
kfree(tmpbuf); Which means that you are freeing memory that may still be used by DMA at this time. In addition you have no guarantee that the unlink is indeed finished by the time the URB is reused. If you wish to take this approach you better forget about this URB and allocate a new one and free the

Re: [PATCH] brcmfmac: unlink URB when request timed out

2014-11-10 Thread Oliver Neukum
at this time. In addition you have no guarantee that the unlink is indeed finished by the time the URB is reused. If you wish to take this approach you better forget about this URB and allocate a new one and free the buffer from the callback. Regards Oliver -- Oliver Neukum

Re: [PATCH] USB: cdc-acm: add quirk for control-line state requests

2014-11-07 Thread Oliver Neukum
On Fri, 2014-11-07 at 10:16 +0100, Johan Hovold wrote: > On Fri, Nov 07, 2014 at 10:05:12AM +0100, Oliver Neukum wrote: > > On Thu, 2014-11-06 at 18:08 +0100, Johan Hovold wrote: > > > Add new quirk for devices that cannot handle control-line state > > > requests

Re: [PATCH] USB: cdc-acm: add quirk for control-line state requests

2014-11-07 Thread Oliver Neukum
On Thu, 2014-11-06 at 18:08 +0100, Johan Hovold wrote: > Add new quirk for devices that cannot handle control-line state > requests. > > Note that we currently send these requests to all devices, regardless > of > whether they claim to support it, but that errors are only logged if > support is

Re: [PATCH] USB: cdc-acm: add quirk for control-line state requests

2014-11-07 Thread Oliver Neukum
On Thu, 2014-11-06 at 18:08 +0100, Johan Hovold wrote: Add new quirk for devices that cannot handle control-line state requests. Note that we currently send these requests to all devices, regardless of whether they claim to support it, but that errors are only logged if support is claimed.

Re: [PATCH] USB: cdc-acm: add quirk for control-line state requests

2014-11-07 Thread Oliver Neukum
On Fri, 2014-11-07 at 10:16 +0100, Johan Hovold wrote: On Fri, Nov 07, 2014 at 10:05:12AM +0100, Oliver Neukum wrote: On Thu, 2014-11-06 at 18:08 +0100, Johan Hovold wrote: Add new quirk for devices that cannot handle control-line state requests. Note that we currently send

Re: [PATCH v4-real] cdc-acm: ensure that termios get set when the port is activated

2014-10-31 Thread Oliver Neukum
device when the port is activated. > > > > Signed-off-by: Jim Paris > > Reviewed-by: Johan Hovold Acked-by: Oliver Neukum -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo in

Re: [PATCH v4-real] cdc-acm: ensure that termios get set when the port is activated

2014-10-31 Thread Oliver Neukum
is activated. Signed-off-by: Jim Paris j...@jtan.com Reviewed-by: Johan Hovold jo...@kernel.org Acked-by: Oliver Neukum oneu...@suse.de -- 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

numerous kernel warnings from XFS with rc2

2014-10-30 Thread Oliver Neukum
Hi, I am running XFS on top of bcache. Apparmor is enabled on my system. I am seeing tons of warnings like this: 2014-10-30T11:39:38.774440+01:00 linux-0dmf kernel: [ 650.901837] WARNING: CPU: 2 PID: 2378 at mm/truncate.c:758 pagecache_isize_extended +0xfd/0x110()

Re: [PATCH] USB: cdc-acm: only raise DTR on transitions from B0

2014-10-30 Thread Oliver Neukum
On Wed, 2014-10-29 at 16:58 +0100, Johan Hovold wrote: > On Wed, Oct 29, 2014 at 11:56:02PM +0800, Greg Kroah-Hartman wrote: > > This should go to older kernels as well, right? > > Yes, if you want. > > It's fixing handling of B0, but I doubt many people care (hence the > missing stable tag).

Re: [PATCH] USB: cdc-acm: only raise DTR on transitions from B0

2014-10-30 Thread Oliver Neukum
On Wed, 2014-10-29 at 16:58 +0100, Johan Hovold wrote: On Wed, Oct 29, 2014 at 11:56:02PM +0800, Greg Kroah-Hartman wrote: This should go to older kernels as well, right? Yes, if you want. It's fixing handling of B0, but I doubt many people care (hence the missing stable tag). Note that

numerous kernel warnings from XFS with rc2

2014-10-30 Thread Oliver Neukum
Hi, I am running XFS on top of bcache. Apparmor is enabled on my system. I am seeing tons of warnings like this: 2014-10-30T11:39:38.774440+01:00 linux-0dmf kernel: [ 650.901837] WARNING: CPU: 2 PID: 2378 at mm/truncate.c:758 pagecache_isize_extended +0xfd/0x110()

Re: [PATCH] usb: serial: Perform verification for FTDI FT232R devices

2014-10-27 Thread Oliver Neukum
On Thu, 2014-10-23 at 01:52 -0700, russ.d...@gmail.com wrote: > From: Russ Dill > > This patch provides the FTDI genuine product verification steps > as contained within the new 2.12.00 official release. It ensures > that counterfeiters don't exploit engineering investment made > by FTDI.

Re: [PATCH] usb: serial: Perform verification for FTDI FT232R devices

2014-10-27 Thread Oliver Neukum
On Thu, 2014-10-23 at 01:52 -0700, russ.d...@gmail.com wrote: > From: Russ Dill > > This patch provides the FTDI genuine product verification steps > as contained within the new 2.12.00 official release. It ensures > that counterfeiters don't exploit engineering investment made > by FTDI.

Re: [PATCH] usb: serial: Perform verification for FTDI FT232R devices

2014-10-27 Thread Oliver Neukum
On Thu, 2014-10-23 at 01:52 -0700, russ.d...@gmail.com wrote: From: Russ Dill russ.d...@gmail.com This patch provides the FTDI genuine product verification steps as contained within the new 2.12.00 official release. It ensures that counterfeiters don't exploit engineering investment made by

Re: [PATCH] usb: serial: Perform verification for FTDI FT232R devices

2014-10-27 Thread Oliver Neukum
On Thu, 2014-10-23 at 01:52 -0700, russ.d...@gmail.com wrote: From: Russ Dill russ.d...@gmail.com This patch provides the FTDI genuine product verification steps as contained within the new 2.12.00 official release. It ensures that counterfeiters don't exploit engineering investment made by

Re: [PATCH net] r8152: use cancel_delayed_work for runtime suspend

2014-10-18 Thread Oliver Neukum
On Fri, 2014-10-17 at 13:55 +0800, Hayes Wang wrote: > It would cause dead lock for runtime suspend, when the workqueue > is running and runtime suspend occurs before the workqueue wakes > up the device. The rtl8152_suspend() waits the workqueue to finish > because of calling

Re: [PATCH net] r8152: use cancel_delayed_work for runtime suspend

2014-10-18 Thread Oliver Neukum
On Fri, 2014-10-17 at 13:55 +0800, Hayes Wang wrote: It would cause dead lock for runtime suspend, when the workqueue is running and runtime suspend occurs before the workqueue wakes up the device. The rtl8152_suspend() waits the workqueue to finish because of calling

Re: Displaylink Attached Display Adapater and Monitor Not Recognized

2014-10-06 Thread Oliver Neukum
On Fri, 2014-10-03 at 16:36 -0600, Dennis Gesker wrote: > Displaylink USB 3.0 Attached Display Adapater and Monitor Not Recognized > DisplayLink Plug and Play Universal docking Station > DELL > Model: D3000 > MFG: ACP075US > SN: 1309017059 > > > Apologies in advance if I'm posting to the wrong

Re: Displaylink Attached Display Adapater and Monitor Not Recognized

2014-10-06 Thread Oliver Neukum
On Fri, 2014-10-03 at 16:36 -0600, Dennis Gesker wrote: Displaylink USB 3.0 Attached Display Adapater and Monitor Not Recognized DisplayLink Plug and Play Universal docking Station DELL Model: D3000 MFG: ACP075US SN: 1309017059 Apologies in advance if I'm posting to the wrong list.

Re: [PATCH net] r8152: autoresume before setting MAC address

2014-10-02 Thread Oliver Neukum
On Thu, 2014-10-02 at 16:26 +0800, Hayes Wang wrote: > Resume the device before setting the MAC address. > > Signed-off-by: Hayes Wang > --- > drivers/net/usb/r8152.c | 16 +--- > 1 file changed, 13 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/usb/r8152.c

Re: [PATCH net] r8152: autoresume before setting MAC address

2014-10-02 Thread Oliver Neukum
On Thu, 2014-10-02 at 16:26 +0800, Hayes Wang wrote: Resume the device before setting the MAC address. Signed-off-by: Hayes Wang hayesw...@realtek.com --- drivers/net/usb/r8152.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/net/usb/r8152.c

Re: [3.16.1 REGRESSION]: Simtec Entropy Key (cdc-acm) broken in 3.16

2014-09-08 Thread Oliver Neukum
On Fri, 2014-09-05 at 16:17 +0100, Nix wrote: > On 5 Sep 2014, Oliver Neukum verbalised: > > > On Fri, 2014-09-05 at 00:40 +0100, Nix wrote: > >> I'm working around this confusing morass by rebooting into each test > >> kernel, unplugging and replugging the

Re: [3.16.1 REGRESSION]: Simtec Entropy Key (cdc-acm) broken in 3.16

2014-09-08 Thread Oliver Neukum
On Fri, 2014-09-05 at 16:17 +0100, Nix wrote: On 5 Sep 2014, Oliver Neukum verbalised: On Fri, 2014-09-05 at 00:40 +0100, Nix wrote: I'm working around this confusing morass by rebooting into each test kernel, unplugging and replugging the entropy key if it was fubared, then rebooting

Re: [3.16.1 REGRESSION]: Simtec Entropy Key (cdc-acm) broken in 3.16

2014-09-05 Thread Oliver Neukum
On Fri, 2014-09-05 at 00:40 +0100, Nix wrote: > I'm working around this confusing morass by rebooting into each test > kernel, unplugging and replugging the entropy key if it was fubared, > then rebooting into the same kernel again and seeing if it was still > fubared. But this is not terribly

Re: [3.16.1 REGRESSION]: Simtec Entropy Key (cdc-acm) broken in 3.16

2014-09-05 Thread Oliver Neukum
On Fri, 2014-09-05 at 00:40 +0100, Nix wrote: I'm working around this confusing morass by rebooting into each test kernel, unplugging and replugging the entropy key if it was fubared, then rebooting into the same kernel again and seeing if it was still fubared. But this is not terribly fast,

Re: [3.16.1 REGRESSION]: Simtec Entropy Key (cdc-acm) broken in 3.16

2014-09-01 Thread Oliver Neukum
> I'll do a bisection of the cdc-acm changes since 3.15 tomorrow night and > see if I can find the commit at fault. Thank you for the report. Please let me know the results of your bisection. Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe

Re: [3.16.1 REGRESSION]: Simtec Entropy Key (cdc-acm) broken in 3.16

2014-09-01 Thread Oliver Neukum
I'll do a bisection of the cdc-acm changes since 3.15 tomorrow night and see if I can find the commit at fault. Thank you for the report. Please let me know the results of your bisection. Regards Oliver -- To unsubscribe from this list: send the line unsubscribe

Re: Trolling Issues

2014-08-06 Thread Oliver Neukum
On Tue, 2014-08-05 at 16:30 -0400, Nick Krause wrote: > I understand if you don't want to give me a second change , but if you want to > help me learn, I would love to be cced into anything I can learn from. In > terms of subsystems support I would like to help out in a few. My list is > below. >

Re: Trolling Issues

2014-08-06 Thread Oliver Neukum
On Tue, 2014-08-05 at 16:30 -0400, Nick Krause wrote: I understand if you don't want to give me a second change , but if you want to help me learn, I would love to be cced into anything I can learn from. In terms of subsystems support I would like to help out in a few. My list is below. 1.

Re: [PATCH 0/3] platform/chrome: chromeos_laptop - Add Haswell Chromebooks

2014-08-01 Thread Oliver Neukum
On Thu, 2014-07-10 at 14:11 +0100, Scot Doyle wrote: > Hi Olof, > > Have these been applied? If not, where should I watch for them? Hi, could you tell me from which tree I could get these patches? Regards Oliver -- To unsubscribe from this list: send the line

Re: [PATCH 0/3] platform/chrome: chromeos_laptop - Add Haswell Chromebooks

2014-08-01 Thread Oliver Neukum
On Thu, 2014-07-10 at 14:11 +0100, Scot Doyle wrote: Hi Olof, Have these been applied? If not, where should I watch for them? Hi, could you tell me from which tree I could get these patches? Regards Oliver -- To unsubscribe from this list: send the line

Re: linux-next: build failure after merge of the net tree

2014-07-30 Thread Oliver Neukum
On Wed, 2014-07-30 at 10:36 +1000, Stephen Rothwell wrote: > Caused by commit 20fbe3ae990f ("cdc_subset: deal with a device that > needs reset for timeout"). > > I have used the net tree from next-20140729 for today (i.e. up to > commit fe26566d8a0515 ("bnx2x: fix crash during TSO tunneling")).

Re: linux-next: build failure after merge of the net tree

2014-07-30 Thread Oliver Neukum
On Wed, 2014-07-30 at 10:36 +1000, Stephen Rothwell wrote: Caused by commit 20fbe3ae990f (cdc_subset: deal with a device that needs reset for timeout). I have used the net tree from next-20140729 for today (i.e. up to commit fe26566d8a0515 (bnx2x: fix crash during TSO tunneling)). Thank

Re: Race condition between userland and USB device attachment

2014-07-28 Thread Oliver Neukum
On Fri, 2014-07-25 at 17:43 +0400, Sergey Klyaus wrote: > Hello. > > I am currently working on a project with Thin clients with Citrix > Receiver 13 for Linux and encountered interesting problem with USB > device redirection. > ctxusb/ctxusbd process from Citrix Receiver are using inotify

Re: Race condition between userland and USB device attachment

2014-07-28 Thread Oliver Neukum
On Fri, 2014-07-25 at 17:43 +0400, Sergey Klyaus wrote: Hello. I am currently working on a project with Thin clients with Citrix Receiver 13 for Linux and encountered interesting problem with USB device redirection. ctxusb/ctxusbd process from Citrix Receiver are using inotify mechanism

Re: [PATCH 00/10 linux-next] drivers/usb: remove unnecessary break after goto/return

2014-07-24 Thread Oliver Neukum
On Thu, 2014-07-24 at 10:18 +0200, Fabian Frederick wrote: > Small patchset addressing break redundancy on drivers/usb branch > (suggested by Joe Perches). Frankly, that is not a good idea. Somebody will remove a "goto" and forget to readd the "break" Regards Oliver --

Re: [PATCH 00/10 linux-next] drivers/usb: remove unnecessary break after goto/return

2014-07-24 Thread Oliver Neukum
On Thu, 2014-07-24 at 10:18 +0200, Fabian Frederick wrote: Small patchset addressing break redundancy on drivers/usb branch (suggested by Joe Perches). Frankly, that is not a good idea. Somebody will remove a goto and forget to readd the break Regards Oliver -- To

Re: Power-managing devices that are not of interest at some point in time

2014-07-17 Thread Oliver Neukum
On Thu, 2014-07-17 at 01:33 +0200, Rafael J. Wysocki wrote: > On Thursday, July 17, 2014 01:13:42 AM Bastien Nocera wrote: > > Applications can already check the lid status (through UPower), and with > > the additional metadata from the kernel, know that the webcam won't be > > usable when the

Re: Power-managing devices that are not of interest at some point in time

2014-07-17 Thread Oliver Neukum
On Thu, 2014-07-17 at 01:33 +0200, Rafael J. Wysocki wrote: On Thursday, July 17, 2014 01:13:42 AM Bastien Nocera wrote: Applications can already check the lid status (through UPower), and with the additional metadata from the kernel, know that the webcam won't be usable when the lid is

Re: Power-managing devices that are not of interest at some point in time

2014-07-16 Thread Oliver Neukum
On Wed, 2014-07-16 at 14:08 -0400, Alan Stern wrote: > > I am not so much concerned about userspace, but about reusing of as > > much of existing PM framework in the drivers. Right now it is very > > hard to correctly track dependencies between general open/close, > > system suspend/resume, and

Re: Power-managing devices that are not of interest at some point in time

2014-07-16 Thread Oliver Neukum
On Wed, 2014-07-16 at 14:08 -0400, Alan Stern wrote: I am not so much concerned about userspace, but about reusing of as much of existing PM framework in the drivers. Right now it is very hard to correctly track dependencies between general open/close, system suspend/resume, and various

Re: [PATCH][RFC] USB: zerocopy support for usbfs

2014-07-04 Thread Oliver Neukum
On Wed, 2014-07-02 at 17:53 +0200, Stefan Klug wrote: > @@ -1471,6 +1526,57 @@ static int proc_do_submiturb(struct > usb_dev_state > *ps, struct usbdevfs_urb *uurb > } > totlen -= u; > } > +} else if(num_pages) { > +pages =

Re: [PATCH][RFC] USB: zerocopy support for usbfs

2014-07-04 Thread Oliver Neukum
On Wed, 2014-07-02 at 17:53 +0200, Stefan Klug wrote: @@ -1471,6 +1526,57 @@ static int proc_do_submiturb(struct usb_dev_state *ps, struct usbdevfs_urb *uurb } totlen -= u; } +} else if(num_pages) { +pages =

Re: [PATCH][RFC] USB: zerocopy support for usbfs

2014-07-02 Thread Oliver Neukum
On Wed, 2014-07-02 at 17:53 +0200, Stefan Klug wrote: > Implementation details: > The patch only touches drivers/usb/core/devio.c. > In procy_do_submiturb(), it is checked if zerocopy is allowed. This is > currently a rough > check which compares the number of required pages to >

Re: [PATCH][RFC] USB: zerocopy support for usbfs

2014-07-02 Thread Oliver Neukum
On Wed, 2014-07-02 at 17:53 +0200, Stefan Klug wrote: Implementation details: The patch only touches drivers/usb/core/devio.c. In procy_do_submiturb(), it is checked if zerocopy is allowed. This is currently a rough check which compares the number of required pages to

Re: ext4: total breakdown on USB hdd, 3.0 kernel

2014-06-27 Thread Oliver Neukum
On Thu, 2014-06-26 at 22:20 +0200, Pavel Machek wrote: > Hi! > > Ok, this ext4 filesystem does _not_ have easy life: it is in usb > envelope, I wanted > to use it as a root filesystem, and it is connected to OLPC-1.75, > running some kind > of linux-3.0 kernels. > > So power disconnects are

Re: ext4: total breakdown on USB hdd, 3.0 kernel

2014-06-27 Thread Oliver Neukum
On Thu, 2014-06-26 at 22:20 +0200, Pavel Machek wrote: Hi! Ok, this ext4 filesystem does _not_ have easy life: it is in usb envelope, I wanted to use it as a root filesystem, and it is connected to OLPC-1.75, running some kind of linux-3.0 kernels. So power disconnects are common, and

Re: [PATCH v9] leds: USB: HID: Add support for MSI GT683R led panels

2014-06-23 Thread Oliver Neukum
On Wed, 2014-06-18 at 19:05 +0300, Janne Kanniainen wrote: > This driver adds support for USB controlled led panels that exists in > MSI GT683R laptop > > +static int gt683r_led_probe(struct hid_device *hdev, > + const struct hid_device_id *id) > +{ > + int i; > + int

Re: [PATCH 2/2] drivers/net/usb/asix_devices.c: inline ax88772_unbind

2014-06-23 Thread Oliver Neukum
On Fri, 2014-06-20 at 22:40 +0200, Fabian Frederick wrote: > inline this one line function used in driver_info structure That precisely is this the reason not to inline this. It is used as a function pointer. gcc must generate a non-inlined version of the function. Your patch has zero effect and

Re: [PATCH v9] leds: USB: HID: Add support for MSI GT683R led panels

2014-06-23 Thread Oliver Neukum
On Wed, 2014-06-18 at 19:05 +0300, Janne Kanniainen wrote: This driver adds support for USB controlled led panels that exists in MSI GT683R laptop +static int gt683r_led_probe(struct hid_device *hdev, + const struct hid_device_id *id) +{ + int i; + int ret; +

Re: [PATCH 2/2] drivers/net/usb/asix_devices.c: inline ax88772_unbind

2014-06-23 Thread Oliver Neukum
On Fri, 2014-06-20 at 22:40 +0200, Fabian Frederick wrote: inline this one line function used in driver_info structure That precisely is this the reason not to inline this. It is used as a function pointer. gcc must generate a non-inlined version of the function. Your patch has zero effect and

Re: your patches to support the touchpad of Haswell ChromeBooks

2014-06-16 Thread Oliver Neukum
On Mon, 2014-06-16 at 11:25 +0300, Mika Westerberg wrote: > On Thu, Jun 12, 2014 at 03:27:01PM +0200, Oliver Neukum wrote: > > I am looking at the patch set you posted for making > > the touchpad of those laptops work. Has anything happened > > regarding i2c so that the pa

Re: your patches to support the touchpad of Haswell ChromeBooks

2014-06-16 Thread Oliver Neukum
On Mon, 2014-06-16 at 11:25 +0300, Mika Westerberg wrote: On Thu, Jun 12, 2014 at 03:27:01PM +0200, Oliver Neukum wrote: I am looking at the patch set you posted for making the touchpad of those laptops work. Has anything happened regarding i2c so that the patches can go upstream? Benson

your patches to support the touchpad of Haswell ChromeBooks

2014-06-12 Thread Oliver Neukum
Hi Benson, I am looking at the patch set you posted for making the touchpad of those laptops work. Has anything happened regarding i2c so that the patches can go upstream? Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

your patches to support the touchpad of Haswell ChromeBooks

2014-06-12 Thread Oliver Neukum
Hi Benson, I am looking at the patch set you posted for making the touchpad of those laptops work. Has anything happened regarding i2c so that the patches can go upstream? Regards Oliver -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the

Re: [PATCH] MAINTAINERS: drop two usb-serial subdriver entries

2014-06-03 Thread Oliver Neukum
ing boilerplate) since I converted it to use the generic > implementation a few years ago. > > Oliver and Mathias, what do you think of this? Would you be willing to > sign off on this patch? Signed-off-by: Oliver Neukum Regards Oliver -- To unsubscribe fr

Re: [PATCH] MAINTAINERS: drop two usb-serial subdriver entries

2014-06-03 Thread Oliver Neukum
I converted it to use the generic implementation a few years ago. Oliver and Mathias, what do you think of this? Would you be willing to sign off on this patch? Signed-off-by: Oliver Neukum oli...@neukum.org Regards Oliver -- To unsubscribe from this list: send

Re: [PATCH] scsi: dc395x.c: Fix for possible null pointer dereference

2014-05-19 Thread Oliver Neukum
On Sun, 2014-05-18 at 21:50 +0200, Guennadi Liakhovetski wrote: > On Sun, 18 May 2014, Rickard Strandqvist wrote: > > > There is otherwise a risk of a possible null pointer dereference. > > > > Was largely found by using a static code analysis program called cppcheck. > > > > Signed-off-by:

Re: [PATCH] scsi: dc395x.c: Fix for possible null pointer dereference

2014-05-19 Thread Oliver Neukum
On Sun, 2014-05-18 at 21:50 +0200, Guennadi Liakhovetski wrote: On Sun, 18 May 2014, Rickard Strandqvist wrote: There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard

Re: [PATCH v2 09/24] input: Port hid-dr to ff-memless-next

2014-04-27 Thread Oliver Neukum
On Thu, 2014-04-24 at 12:32 +0200, Michal Malý wrote: > On Wednesday 23 of April 2014 15:41:03 Oliver Neukum wrote: > > On Tue, 2014-04-22 at 15:59 +0200, Michal Malý wrote: > > > static int drff_play(struct input_dev *dev, void *data, > > > > > > -

Re: [PATCH v2 09/24] input: Port hid-dr to ff-memless-next

2014-04-27 Thread Oliver Neukum
On Thu, 2014-04-24 at 12:32 +0200, Michal Malý wrote: On Wednesday 23 of April 2014 15:41:03 Oliver Neukum wrote: On Tue, 2014-04-22 at 15:59 +0200, Michal Malý wrote: static int drff_play(struct input_dev *dev, void *data, -struct ff_effect *effect

Re: [PATCH v2 01/24] input: Add ff-memless-next module

2014-04-23 Thread Oliver Neukum
On Wed, 2014-04-23 at 08:59 -0700, Dmitry Torokhov wrote: > On Wed, Apr 23, 2014 at 02:12:59PM +0200, Oliver Neukum wrote: > > On Tue, 2014-04-22 at 15:59 +0200, Michal Malý wrote: > > > +/* Some devices might have a limit on how many uncombinable effects > > >

Re: [PATCH v2 09/24] input: Port hid-dr to ff-memless-next

2014-04-23 Thread Oliver Neukum
On Tue, 2014-04-22 at 15:59 +0200, Michal Malý wrote: > static int drff_play(struct input_dev *dev, void *data, > -struct ff_effect *effect) > + const struct mlnx_effect_command *command) > { > struct hid_device *hid =

Re: [PATCH v2 01/24] input: Add ff-memless-next module

2014-04-23 Thread Oliver Neukum
On Wed, 2014-04-23 at 14:30 +0200, Michal Malý wrote: > > 2. That is needlessly inefficient > Are you suggesting I drop the 'consts' and keep the memory preallocated? Yes. Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [PATCH v2 11/24] input: Port hid-holtekff to ff-memless-next

2014-04-23 Thread Oliver Neukum
On Tue, 2014-04-22 at 15:59 +0200, Michal Malý wrote: > static int holtekff_play(struct input_dev *dev, void *data, > -struct ff_effect *effect) > +const struct mlnx_effect_command *command) > { > struct hid_device *hid =

Re: [PATCH v2 01/24] input: Add ff-memless-next module

2014-04-23 Thread Oliver Neukum
On Tue, 2014-04-22 at 15:59 +0200, Michal Malý wrote: > +/* Some devices might have a limit on how many uncombinable effects > + * can be played at once */ > +static int mlnx_upload_conditional(struct mlnx_device *mlnxdev, > + const struct ff_effect *effect) > +{ >

Re: [PATCH v2 01/24] input: Add ff-memless-next module

2014-04-23 Thread Oliver Neukum
On Wed, 2014-04-23 at 08:59 -0700, Dmitry Torokhov wrote: On Wed, Apr 23, 2014 at 02:12:59PM +0200, Oliver Neukum wrote: On Tue, 2014-04-22 at 15:59 +0200, Michal Malý wrote: +/* Some devices might have a limit on how many uncombinable effects + * can be played at once */ +static int

Re: [PATCH v2 01/24] input: Add ff-memless-next module

2014-04-23 Thread Oliver Neukum
On Tue, 2014-04-22 at 15:59 +0200, Michal Malý wrote: +/* Some devices might have a limit on how many uncombinable effects + * can be played at once */ +static int mlnx_upload_conditional(struct mlnx_device *mlnxdev, + const struct ff_effect *effect) +{ +

Re: [PATCH v2 11/24] input: Port hid-holtekff to ff-memless-next

2014-04-23 Thread Oliver Neukum
On Tue, 2014-04-22 at 15:59 +0200, Michal Malý wrote: static int holtekff_play(struct input_dev *dev, void *data, -struct ff_effect *effect) +const struct mlnx_effect_command *command) { struct hid_device *hid = input_get_drvdata(dev);

Re: [PATCH v2 01/24] input: Add ff-memless-next module

2014-04-23 Thread Oliver Neukum
On Wed, 2014-04-23 at 14:30 +0200, Michal Malý wrote: 2. That is needlessly inefficient Are you suggesting I drop the 'consts' and keep the memory preallocated? Yes. Regards Oliver -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH v2 09/24] input: Port hid-dr to ff-memless-next

2014-04-23 Thread Oliver Neukum
On Tue, 2014-04-22 at 15:59 +0200, Michal Malý wrote: static int drff_play(struct input_dev *dev, void *data, -struct ff_effect *effect) + const struct mlnx_effect_command *command) { struct hid_device *hid =

Re: question on read_barrier_depends

2014-04-21 Thread Oliver Neukum
On Wed, 2014-04-16 at 11:26 -0400, Alan Stern wrote: > On Wed, 16 Apr 2014, Oliver Neukum wrote: > > > Hi, > > > > I am looking at memory ordering and a question hit me. > > I was looking at the kfifo code. kfifo_put() has a barrier: > > > >

Re: question on read_barrier_depends

2014-04-21 Thread Oliver Neukum
On Wed, 2014-04-16 at 11:26 -0400, Alan Stern wrote: On Wed, 16 Apr 2014, Oliver Neukum wrote: Hi, I am looking at memory ordering and a question hit me. I was looking at the kfifo code. kfifo_put() has a barrier: )[__kfifo-in __tmp-kfifo.mask

Re: question on read_barrier_depends

2014-04-18 Thread Oliver Neukum
On Thu, 2014-04-17 at 11:50 -0400, Alan Stern wrote: > On Thu, 17 Apr 2014, Oliver Neukum wrote: > > > On Wed, 2014-04-16 at 11:26 -0400, Alan Stern wrote: > > > > > In addition, the following code in kfifo_get() does this: > > > > > >

Re: question on read_barrier_depends

2014-04-18 Thread Oliver Neukum
On Thu, 2014-04-17 at 11:50 -0400, Alan Stern wrote: > On Thu, 17 Apr 2014, Oliver Neukum wrote: > > > On Wed, 2014-04-16 at 11:26 -0400, Alan Stern wrote: > > > > > In addition, the following code in kfifo_get() does this: > > > > > >

Re: question on read_barrier_depends

2014-04-18 Thread Oliver Neukum
On Thu, 2014-04-17 at 11:50 -0400, Alan Stern wrote: On Thu, 17 Apr 2014, Oliver Neukum wrote: On Wed, 2014-04-16 at 11:26 -0400, Alan Stern wrote: In addition, the following code in kfifo_get() does this: *(typeof(__tmp-type))__val

Re: question on read_barrier_depends

2014-04-18 Thread Oliver Neukum
On Thu, 2014-04-17 at 11:50 -0400, Alan Stern wrote: On Thu, 17 Apr 2014, Oliver Neukum wrote: On Wed, 2014-04-16 at 11:26 -0400, Alan Stern wrote: In addition, the following code in kfifo_get() does this: *(typeof(__tmp-type))__val

Re: question on read_barrier_depends

2014-04-17 Thread Oliver Neukum
On Wed, 2014-04-16 at 11:26 -0400, Alan Stern wrote: > In addition, the following code in kfifo_get() does this: > > *(typeof(__tmp->type))__val = \ > (__is_kfifo_ptr(__tmp) ? \ >

Re: question on read_barrier_depends

2014-04-17 Thread Oliver Neukum
On Wed, 2014-04-16 at 11:26 -0400, Alan Stern wrote: In addition, the following code in kfifo_get() does this: *(typeof(__tmp-type))__val = \ (__is_kfifo_ptr(__tmp) ? \ ((typeof(__tmp-type))__kfifo-data) : \

question on read_barrier_depends

2014-04-16 Thread Oliver Neukum
Hi, I am looking at memory ordering and a question hit me. I was looking at the kfifo code. kfifo_put() has a barrier: )[__kfifo->in & __tmp->kfifo.mask] = \ (typeof(*__tmp->type))__val; \ smp_wmb(); \

question on read_barrier_depends

2014-04-16 Thread Oliver Neukum
Hi, I am looking at memory ordering and a question hit me. I was looking at the kfifo code. kfifo_put() has a barrier: )[__kfifo-in __tmp-kfifo.mask] = \ (typeof(*__tmp-type))__val; \ smp_wmb(); \

Re: [PATCH] USB: cdc-acm: fix broken runtime suspend

2014-04-15 Thread Oliver Neukum
On Mon, 2014-04-14 at 21:58 +0200, Johan Hovold wrote: > Fix this by implementing a delayed-write queue using urb anchors and > making sure to discard the queue properly at shutdown. Looks very good, with one exception: acm_tty_close() must synchronously resume the device so that the anchor is

Re: [PATCH] USB: cdc-acm: fix broken runtime suspend

2014-04-15 Thread Oliver Neukum
On Mon, 2014-04-14 at 21:58 +0200, Johan Hovold wrote: Fix this by implementing a delayed-write queue using urb anchors and making sure to discard the queue properly at shutdown. Looks very good, with one exception: acm_tty_close() must synchronously resume the device so that the anchor is

Re: [RFC 1/2] n_tty: fix dropped output characters

2014-04-14 Thread Oliver Neukum
On Mon, 2014-04-14 at 13:53 +0100, One Thousand Gnomes wrote: > On Fri, 11 Apr 2014 11:41:24 +0200 > Johan Hovold wrote: > > > Fix characters being dropped by n_tty_write() due to a failure to > > check the return value of tty_put_char() in do_output_char(). > > > > Characters are currently

<    5   6   7   8   9   10   11   12   13   14   >