Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/dwc2/dist Fix the alignment argument to usb...



details:   https://anonhg.NetBSD.org/src/rev/0be0151c8833
branches:  trunk
changeset: 991820:0be0151c8833
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Aug 01 16:44:14 2018 +0000

description:
Fix the alignment argument to usb_allocmem in dwc2_hc_setup_align_buf

diffstat:

 sys/external/bsd/dwc2/dist/dwc2_hcd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 005caada7950 -r 0be0151c8833 sys/external/bsd/dwc2/dist/dwc2_hcd.c
--- a/sys/external/bsd/dwc2/dist/dwc2_hcd.c     Wed Aug 01 13:48:00 2018 +0000
+++ b/sys/external/bsd/dwc2/dist/dwc2_hcd.c     Wed Aug 01 16:44:14 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dwc2_hcd.c,v 1.19 2016/02/24 22:17:54 skrll Exp $      */
+/*     $NetBSD: dwc2_hcd.c,v 1.20 2018/08/01 16:44:14 skrll Exp $      */
 
 /*
  * hcd.c - DesignWare HS OTG Controller host-mode routines
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2_hcd.c,v 1.19 2016/02/24 22:17:54 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2_hcd.c,v 1.20 2018/08/01 16:44:14 skrll Exp $");
 
 #include <sys/types.h>
 #include <sys/kmem.h>
@@ -727,7 +727,7 @@
 
                qh->dw_align_buf = NULL;
                qh->dw_align_buf_dma = 0;
-               err = usb_allocmem(&hsotg->hsotg_sc->sc_bus, buf_size, buf_size,
+               err = usb_allocmem(&hsotg->hsotg_sc->sc_bus, buf_size, 0,
                                   &qh->dw_align_buf_usbdma);
                if (!err) {
                        usb_dma_t *ud = &qh->dw_align_buf_usbdma;



Home | Main Index | Thread Index | Old Index