Re: [PATCH v2 03/29] usb: usbtmc: Add ioctls to set/get usb timeout

2018-07-21 Thread Greg KH
On Wed, Jul 18, 2018 at 10:45:36AM +0200, Guido Kiener wrote: > +/* > + * Set the usb timeout value > + */ > +static int usbtmc_ioctl_set_timeout(struct usbtmc_file_data *file_data, > + void __user *arg) > +{ > + u32 timeout; > + > + if (get_user(timeout, (__u32

[PATCH v2 03/29] usb: usbtmc: Add ioctls to set/get usb timeout

2018-07-18 Thread Guido Kiener
Add ioctls USBTMC_IOCTL_GET_TIMEOUT / USBTMC_IOCTL_SET_TIMEOUT to get/set I/O timeout for specific file handle. Different operations on an instrument can take different lengths of time thus it is important to be able to set the timeout slightly longer than the expected duration of each operation