pc_usb_host: implement 'dma_pool_destroy'

Encountered on the Fuji5 where for reasons currently unknown the
first xHCI HC (0:0d.0) could not be initialize due to incomplete
interupt informations. The other HCs appear to work fine (tested
with a USB low-speed mouse).
This commit is contained in:
Josef Söntgen 2022-03-22 17:55:08 +01:00 committed by Christian Helmuth
parent c6cc43f0e4
commit afe02efb8f
2 changed files with 6 additions and 8 deletions

View File

@ -166,14 +166,6 @@ int dma_mmap_attrs(struct device * dev,struct vm_area_struct * vma,void * cpu_ad
}
#include <linux/dmapool.h>
void dma_pool_destroy(struct dma_pool * pool)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/printk.h>
asmlinkage __visible void dump_stack(void)

View File

@ -84,6 +84,12 @@ struct dma_pool * dma_pool_create(const char * name,
}
void dma_pool_destroy(struct dma_pool * pool)
{
kfree(pool);
}
void dma_pool_free(struct dma_pool * pool,void * vaddr,dma_addr_t dma)
{
lx_emul_mem_free(vaddr);