freebsd-nq/sys/arm
John Baldwin 068d8643ad Fix various NIC drivers to properly cleanup static DMA resources.
In particular, don't check the value of the bus_dma map against NULL
to determine if either bus_dmamem_alloc() or bus_dmamap_load() succeeded.
Instead, assume that bus_dmamap_load() succeeeded (and thus that
bus_dmamap_unload() should be called) if the bus address for a resource
is non-zero, and assume that bus_dmamem_alloc() succeeded (and thus
that bus_dmamem_free() should be called) if the virtual address for a
resource is not NULL.

In many cases these bugs could result in leaks when a driver was detached.

Reviewed by:	yongari
MFC after:	2 weeks
2014-06-11 14:53:58 +00:00
..
allwinner Add the start of the ARM platform code. This is based on the PowerPC 2014-05-17 11:27:36 +00:00
arm Add a page size field to struct vm_page. Increase the page size field when 2014-06-07 17:12:26 +00:00
at91 Fix various NIC drivers to properly cleanup static DMA resources. 2014-06-11 14:53:58 +00:00
broadcom/bcm2835 FreeBSD, historically, has always used 8-bit addresses for i2c devices 2014-06-03 19:24:53 +00:00
cavium/cns11xx Fix various NIC drivers to properly cleanup static DMA resources. 2014-06-11 14:53:58 +00:00
conf Add a driver for Serial Peripheral Interface (SPI). 2014-06-11 10:03:06 +00:00
freescale Add a driver for Serial Peripheral Interface (SPI). 2014-06-11 10:03:06 +00:00
include Delete obsolete and unused PJ4B CPU functions 2014-05-25 19:19:41 +00:00
lpc Add the start of the ARM platform code. This is based on the PowerPC 2014-05-17 11:27:36 +00:00
mv Avoid using hard-coded SoC's register address in mptramp code for Armada XP 2014-06-05 21:37:04 +00:00
rockchip Factor out kernel configuration for DWC OTG FDT attach code. 2014-05-29 11:13:40 +00:00
s3c2xx0 When mapping device memory, use PTE_DEVICE rather than PTE_NOCACHE. 2014-05-10 20:03:03 +00:00
samsung/exynos Fix i2c communication interface to be compatible with 2014-06-01 08:45:27 +00:00
tegra Add the start of the ARM platform code. This is based on the PowerPC 2014-05-17 11:27:36 +00:00
ti Remove extra semicolons. 2014-06-06 16:37:42 +00:00
versatile Don't destroy bus_dma maps created by bus_dmamem_alloc(). In some cases, 2014-06-10 20:25:45 +00:00
xilinx Add the start of the ARM platform code. This is based on the PowerPC 2014-05-17 11:27:36 +00:00
xscale Do not hand the VM the memory used for stacks/page tables/etc. 2014-05-29 16:56:39 +00:00