Fix incorrect toggle calculation

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-08-21 19:41:37 +02:00
parent 2eb310be79
commit 0aaf4938c7
2 changed files with 2 additions and 2 deletions

View file

@ -474,7 +474,7 @@ grub_uhci_setup_transfer (grub_usb_controller_t dev,
{
grub_usb_transaction_t tr = &transfer->transactions[i];
td = grub_uhci_transaction (u, transfer->endpoint, tr->pid,
td = grub_uhci_transaction (u, transfer->endpoint & 15, tr->pid,
transfer->devaddr, tr->toggle,
tr->size, tr->data);
if (! td)

View file

@ -246,7 +246,7 @@ grub_usb_bulk_setup_readwrite (grub_usb_device_t dev,
datablocks = ((size + max - 1) / max);
transfer->transcnt = datablocks;
transfer->size = size - 1;
transfer->endpoint = endpoint & 15;
transfer->endpoint = endpoint;
transfer->devaddr = dev->addr;
transfer->type = GRUB_USB_TRANSACTION_TYPE_BULK;
transfer->dir = type;