hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/usb/host/uhci-hcd.c
....@@ -581,7 +581,7 @@
581581
582582 hcd->uses_new_polling = 1;
583583 /* Accept arbitrarily long scatter-gather lists */
584
- if (!(hcd->driver->flags & HCD_LOCAL_MEM))
584
+ if (!hcd->localmem_pool)
585585 hcd->self.sg_tablesize = ~0;
586586
587587 spin_lock_init(&uhci->lock);
....@@ -596,9 +596,9 @@
596596 &uhci_debug_operations);
597597 #endif
598598
599
- uhci->frame = dma_zalloc_coherent(uhci_dev(uhci),
600
- UHCI_NUMFRAMES * sizeof(*uhci->frame),
601
- &uhci->frame_dma_handle, GFP_KERNEL);
599
+ uhci->frame = dma_alloc_coherent(uhci_dev(uhci),
600
+ UHCI_NUMFRAMES * sizeof(*uhci->frame),
601
+ &uhci->frame_dma_handle, GFP_KERNEL);
602602 if (!uhci->frame) {
603603 dev_err(uhci_dev(uhci),
604604 "unable to allocate consistent memory for frame list\n");