sparc64: ldc_connect() should not return EINVAL when handshake is in progress.
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Fri, 1 Aug 2014 13:50:40 +0000 (09:50 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Aug 2014 03:18:17 +0000 (20:18 -0700)
commit4ec1b01029b4facb651b8ef70bc20a4be4cebc63
treefe5487c8d357ee470b497eafdae64d0b56021681
parent4ca9a23765da3260058db3431faf5b4efd8cf926
sparc64: ldc_connect() should not return EINVAL when handshake is in progress.

The LDC handshake could have been asynchronously triggered
after ldc_bind() enables the ldc_rx() receive interrupt-handler
(and thus intercepts incoming control packets)
and before vio_port_up() calls ldc_connect(). If that is the case,
ldc_connect() should return 0 and let the state-machine
progress.

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Karl Volz <karl.volz@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/ldc.c