Question on musb_gadget: why sending out zero packet ifdef CONFIG_USB_INVENTRA_DMA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, All

I am reading musb_gadget's code these days and got this problem about it.

Function musb_g_tx() may send out zero packet.
but ifdefined CONFIG_USB_INVENTRA_DMA and mode0 is used, every time
musb_g_tx() will send out zero packet.
I think it's wrong, we should should out zero packet
only when (request->zero && request->length && request->length %
musb_ep->packet_sz == 0)
whether use inventra dma or not.

Thanks !
-- 
Regards,
--Bob
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux