sparc64: ensure LDC channel is ready before communication
authorJag Raman <jag.raman@oracle.com>
Fri, 9 Jun 2017 16:29:30 +0000 (12:29 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Jun 2017 21:10:55 +0000 (14:10 -0700)
commitfc43b978a02985aad7540d77de6b3aa0579a678c
tree704de1a839c167b30e9d2d94fed8b6fb425343c7
parent29693e75a823131a789b519150027e2d69fecab7
sparc64: ensure LDC channel is ready before communication

Ensure that LDC channel is up before writing to it, in RAW mode. Generate
event to bring the LDC channel up, if it's not up already.

Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Aaron Young <aaron.young@oracle.com>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Reviewed-by: Bijan Mottahedeh <bijan.mottahedeh@oracle.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/ldc.c