Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Sep 2010 00:06:19 +0000 (UTC)
From:      Weongyo Jeong <weongyo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r212941 - user/weongyo/usb/sys/dev/usb
Message-ID:  <201009210006.o8L06Jpt072368@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: weongyo
Date: Tue Sep 21 00:06:19 2010
New Revision: 212941
URL: http://svn.freebsd.org/changeset/base/212941

Log:
  Adds a magic +2 for the number of DMA pages.

Modified:
  user/weongyo/usb/sys/dev/usb/usb_busdma.c

Modified: user/weongyo/usb/sys/dev/usb/usb_busdma.c
==============================================================================
--- user/weongyo/usb/sys/dev/usb/usb_busdma.c	Tue Sep 21 00:05:10 2010	(r212940)
+++ user/weongyo/usb/sys/dev/usb/usb_busdma.c	Tue Sep 21 00:06:19 2010	(r212941)
@@ -926,7 +926,7 @@ usb_bdma_work_loop(struct usb_xfer_queue
 			xfer->frbuffers[nframes].isread = isread;
 			xfer->frbuffers[nframes].page_start = pg;
 			xfer->frbuffers[nframes].npage =
-			    (xfer->frlengths[nframes] / USB_PAGE_SIZE);
+			    (xfer->frlengths[nframes] / USB_PAGE_SIZE) + 2;
 
 			pg += (xfer->frlengths[nframes] / USB_PAGE_SIZE);
 			pg += 2;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009210006.o8L06Jpt072368>