commit | e8f8c14d9da7ab1b8a7b0f769cd7148ca2cc7d10 | [log] [tgz] |
---|---|---|
author | Paul Zimmerman <Paul.Zimmerman@synopsys.com> | Tue Sep 16 13:47:26 2014 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Sep 19 16:17:58 2014 -0700 |
tree | 1f689fc9680a8059f83fd2be66c9541a700c4da5 | |
parent | d00b41428042e72d9dc2557d9147434a4e3d631f [diff] |
usb: dwc2: clip max_transfer_size to 65535 Clip max_transfer_size to 65535 for host. dwc2_hc_setup_align_buf() allocates coherent buffers with this size, and if it's too large we can exhaust the coherent DMA pool. Tested on Raspberry Pi and Altera SOCFPGA. Signed-off-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>