Re: [PATCH 3/6] USB: serial: ftdi_sio: only allow valid latency timer values

2017-03-08 Thread Ian Abbott
On 02/03/17 14:22, Johan Hovold wrote: On Tue, Feb 28, 2017 at 12:51:25PM +, Ian Abbott wrote: Valid latency timer values are between 1 ms and 255 ms in 1 ms steps. The store function for the "latency_timer" device attribute currently allows any value, although only the lower 8-bits will be

Re: [PATCH 3/6] USB: serial: ftdi_sio: only allow valid latency timer values

2017-03-02 Thread Johan Hovold
On Tue, Feb 28, 2017 at 12:51:25PM +, Ian Abbott wrote: > Valid latency timer values are between 1 ms and 255 ms in 1 ms steps. > The store function for the "latency_timer" device attribute currently > allows any value, although only the lower 8-bits will be written to the > latency timer. Ret

[PATCH 3/6] USB: serial: ftdi_sio: only allow valid latency timer values

2017-02-28 Thread Ian Abbott
Valid latency timer values are between 1 ms and 255 ms in 1 ms steps. The store function for the "latency_timer" device attribute currently allows any value, although only the lower 8-bits will be written to the latency timer. Return an error for out-of-range values. Signed-off-by: Ian Abbott --