]> git.baikalelectronics.ru Git - kernel.git/commit
rapidio: add global inbound port write interfaces
authorAlexandre Bounine <alexandre.bounine@idt.com>
Tue, 22 Mar 2016 21:26:44 +0000 (14:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2016 22:36:02 +0000 (15:36 -0700)
commitab8ecf97d6c14c11743b312b7fffc91821130129
tree902e3fd63e79f4911b2896a67e8e06d93626abd4
parent2be8bc87ac7778f1bed7d7fbd3bdc788fc195128
rapidio: add global inbound port write interfaces

Add new Port Write handler registration interfaces that attach PW
handlers to local mport device objects.  This is different from old
interface that attaches PW callback to individual RapidIO device.  The
new interfaces are intended for use for common event handling (e.g.
hot-plug notifications) while the old interface is available for
individual device drivers.

This patch is based on patch proposed by Andre van Herk but preserves
existing per-device interface and adds lock protection for list
handling.

Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Aurelien Jacquiot <a-jacquiot@ti.com>
Cc: Andre van Herk <andre.van.herk@prodrive-technologies.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/sysdev/fsl_rio.c
arch/powerpc/sysdev/fsl_rio.h
arch/powerpc/sysdev/fsl_rmu.c
drivers/rapidio/devices/tsi721.c
drivers/rapidio/rio.c
include/linux/rio.h
include/linux/rio_drv.h