1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00

fix a "little-endian-big-endian confusion that luckily:

1/ doesn't matter on most of our architectures
2/ will never happen unless we start queueing multiple trasactions
to a single endpoint at one time (which we do not allow yet).
If anyone has a big_endian machine with EHCI they might check this
if they are having problems with EHCI but it's unlikely even there..

Submitted by:	Hans Petter Selasky <hselasky@c2i.net>
MFC after:	3 days
This commit is contained in:
Julian Elischer 2005-01-09 23:49:45 +00:00
parent 2853698951
commit 4f93332f16
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139950

View File

@ -2572,7 +2572,7 @@ ehci_abort_xfer(usbd_xfer_handle xfer, usbd_status status)
/* We will change them to point here */
snext = exfer->sqtdend->nextqtd;
next = snext ? snext->physaddr : htole32(EHCI_NULL);
next = snext ? htole32(snext->physaddr) : EHCI_NULL;
/*
* Now loop through any qTDs before us and keep track of the pointer
@ -2627,7 +2627,7 @@ ehci_abort_xfer(usbd_xfer_handle xfer, usbd_status status)
sqh->qh.qh_qtd.qtd_status = 0;
sqh->qh.qh_qtd.qtd_next =
sqh->qh.qh_qtd.qtd_altnext
= htole32(EHCI_NULL);
= EHCI_NULL;
DPRINTFN(1,("ehci_abort_xfer: no hit\n"));
}
}