• Magnus Damm's avatar
    usb: r8a66597-udc buffer management update · ef5ce3b6
    Magnus Damm authored
    This patch updates the r8a66597-udc buffer management code.
    
    Use fixed buffers for bulk and isochronous pipes, also make
    sure to handle the isochronous-as-bulk case. With fixed buffers
    there is no need to keep track of used buffers with bi_bufnum.
    
    Also, this fixes a potential buffer offset problem where the
    base offset incorrectly varies with the number of pipes used.
    
    The m66592 driver recently got fixed in a similar way.
    Signed-off-by: default avatarMagnus Damm <damm@igel.co.jp>
    Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
    ef5ce3b6
r8a66597-udc.h 6.18 KB