USB: CDC WDM driver doesn't support non-blocking reads
commit7f1dc313d01f5f0f84c06051343a3b8623932d3c
authorOliver Neukum <oliver@neukum.org>
Wed, 9 Sep 2009 08:12:48 +0000 (9 10:12 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:16 +0000 (23 06:46 -0700)
tree762ae2c12f103f039a8215161172b0b52101c1c9
parentce60c48871d2b3a15ab3fa2450e783bebb4ae407
USB: CDC WDM driver doesn't support non-blocking reads

support for O_NONBLOCK in read and write path
by simply not waiting for data in read or availability
of the write urb in write but returning -EAGAIN

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Tested-by: Marcel Holtmann <marcel@holtmann.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-wdm.c