Comment on mps sizes

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26947 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Tobias Diedrich 2010-06-19 02:29:24 +00:00
parent 1d5cc0a505
commit 06fa365fef

View file

@ -156,6 +156,14 @@ static void dma_desc_init(int ep, int dir)
static void reset_endpoints(int init)
{
int i;
/*
* MPS sizes depending on speed:
* LS: 8 (control), no bulk available
* FS: 64 (control), 64 (bulk)
* HS: 64 (control), 512 (bulk)
*
* We don't need to handle LS since there is no low-speed only host AFAIK.
*/
int mps = i == 0 ? 64 : (usb_drv_port_speed() ? 512 : 64);
/*