1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-04 12:52:15 +00:00

Add missing byteswap, works on big endian systems now (tested on Netlogic

XLS MIPS processor).

Submitted by:	Sreekanth M. S. <kanthms at netlogicmicro dot com>
Reviewed by:	mav
This commit is contained in:
Jayachandran C. 2010-09-23 05:17:36 +00:00
parent fb2924e4ac
commit 831826341b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213047

View File

@ -649,7 +649,7 @@ ata_siiprb_end_transaction(struct ata_request *request)
/* update progress */
if (!(request->status & ATA_S_ERROR) && !(request->flags & ATA_R_TIMEOUT)) {
if (request->flags & ATA_R_READ)
request->donecount = prb->transfer_count;
request->donecount = le32toh(prb->transfer_count);
else
request->donecount = request->bytecount;
}