]> git.hungrycats.org Git - linux/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Tue, 26 Aug 2014 12:12:01 +0000 (14:12 +0200)
commit7e8d4ace2a7c12cbbb533413ad449024d9411b00
treee1ef63c7fc7b4388d1945682b38b8a1d8c21a8ff
parent5c1c4ea37d89f674b1f9583ac87c2045a4e365ff
sparc64: ldc_connect() should not return EINVAL when handshake is in progress.

[ Upstream commit 4ec1b01029b4facb651b8ef70bc20a4be4cebc63 ]

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/sparc/kernel/ldc.c