]> git.kernelconcepts.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>
Wed, 20 Aug 2014 08:06:51 +0000 (10:06 +0200)
commitfb2618caf4107eb2b2fc05156d627e8c5ee3e094
tree45b68e9939e0d349f4dbeefb19612d0f10dbd373
parent3b85611a44abcce79b69371a6f1dae85613c66e1
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