提交 4428524d 编写于 作者: V Vladimir Zapolskiy 提交者: Greg Kroah-Hartman

USB: OHCI: don't allocate HCCA atomically

OHCI HCCA memory region is allocated from atomic DMA pool one time
during usb_add_hcd() and deallocated by usb_remove_hcd().

Do non-atomic allocation of OHCI HCCA and free some space in
coherent atomic DMA pool.
Signed-off-by: NVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Acked-by: NAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 f589b3e0
...@@ -559,7 +559,7 @@ static int ohci_init (struct ohci_hcd *ohci) ...@@ -559,7 +559,7 @@ static int ohci_init (struct ohci_hcd *ohci)
return 0; return 0;
ohci->hcca = dma_alloc_coherent (hcd->self.controller, ohci->hcca = dma_alloc_coherent (hcd->self.controller,
sizeof *ohci->hcca, &ohci->hcca_dma, 0); sizeof(*ohci->hcca), &ohci->hcca_dma, GFP_KERNEL);
if (!ohci->hcca) if (!ohci->hcca)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册