Date: Sat, 9 Feb 2008 21:18:02 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 135120 for review Message-ID: <200802092118.m19LI2OY096547@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=135120 Change 135120 by hselasky@hselasky_laptop001 on 2008/02/09 21:17:58 BUS-DMA fix for NetBSD. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/usb_subr.c#94 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/usb_subr.c#94 (text+ko) ==== @@ -2725,8 +2725,8 @@ &ptr, BUS_DMA_WAITOK | BUS_DMA_COHERENT)) { goto done_3; } - if (bus_dmamap_create(tag, size, utag->n_seg, USB_PAGE_SIZE, - 0, BUS_DMA_WAITOK, &map)) { + if (bus_dmamap_create(tag, size, utag->n_seg, (align == 1) ? + USB_PAGE_SIZE : size, 0, BUS_DMA_WAITOK, &map)) { goto done_2; } if (bus_dmamap_load(tag, map, ptr, size, NULL,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802092118.m19LI2OY096547>