staging: most: aim-cdev: make syscall write accept buffers of arbitrary size
authorChristian Gromm <christian.gromm@microchip.com>
Fri, 23 Sep 2016 13:20:02 +0000 (15:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Sep 2016 17:00:44 +0000 (19:00 +0200)
commitda2c08714c94780d81780dd8918c71d491f672f4
tree137550355fde5bf634eb470262545dce37306f4d
parent82af03f7b945634bfa93fef4e2f50db4459aabea
staging: most: aim-cdev: make syscall write accept buffers of arbitrary size

This patch allows to call the write() function for synchronous and
isochronous channels with buffers of any size. The AIM simply waits for
data to fill up the MOST buffer object according to the network interface
controller specification for streaming channels, before it submits the
buffer to the HDM.

The new behavior is backward compatible to the old applications, since
all known applications needed to fill the buffer completely anyway.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/aim-cdev/cdev.c