sparc64: vcc: Enable VCC port probe and removal
authorJag Raman <jag.raman@oracle.com>
Tue, 15 Aug 2017 21:03:00 +0000 (17:03 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Aug 2017 04:33:51 +0000 (21:33 -0700)
commit5d171050e28f823aeb040f2830da4d3422b54b63
tree0a33555a897bb343261d0b066079e7f7d479ef1e
parentce808b746325975192d8cd1d29f1ec03d5b6b0fc
sparc64: vcc: Enable VCC port probe and removal

Enables VCC port probe and removal to initialize and terminate
VCC ports respectively. When a device/port matching the VCC driver
is added, the probe function is invoked along with a reference
to the device. remove function is called when the device is
removed.

Also add APIs to cache and retrieve VCC ports from a VCC table

Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/vio.h
arch/sparc/kernel/vio.c
arch/sparc/kernel/viohs.c
drivers/tty/vcc.c