]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00293211 PXP: bind allocated DMA channels to opened device file descriptor
authorFancy Fang <B47543@freescale.com>
Tue, 24 Dec 2013 08:05:53 +0000 (16:05 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 16 Jun 2014 16:09:22 +0000 (18:09 +0200)
commit093d1e22bbb6ebac391d5dcb15d840c8aa4c84cf
treeb80d924effe91b2d8e2235a0fb7bf0db902da2fb
parent48a566338d6e6744dc82db86ab42032e9c9468ed
ENGR00293211 PXP: bind allocated DMA channels to opened device file descriptor

The allocated DMA channels via some opened file descriptor is better
to be bound to this descriptor. Since this can avoid some application
to fake a channel id which may be requested by other applications to
request PXP service. And also, this make it easier to release the dma
channel when application exists abnormally or forgets to release it
explicitly.

Signed-off-by: Fancy Fang <B47543@freescale.com>
drivers/dma/pxp/pxp_device.c
include/linux/pxp_device.h
include/uapi/linux/pxp_device.h
include/uapi/linux/pxp_dma.h