From: Sowmini Varadhan Date: Fri, 1 Aug 2014 13:50:40 +0000 (-0400) Subject: sparc64: ldc_connect() should not return EINVAL when handshake is in progress. X-Git-Tag: v3.2.64~118 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=796b7ab3131e72580060fb0ba22cf01e25e03971;p=pandora-kernel.git 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 Acked-by: Karl Volz Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed