From: Alexandre Bounine Date: Fri, 5 Oct 2012 00:16:08 +0000 (-0700) Subject: rapidio: run discovery as an asynchronous process X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~12^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=005842efd1ac8ef455ebd28a8c713944863edc5a;p=pandora-kernel.git rapidio: run discovery as an asynchronous process Modify mport initialization routine to run the RapidIO discovery process asynchronously. This allows to have an arbitrary order of enumerating and discovering ports in systems with multiple RapidIO controllers without creating a deadlock situation if enumerator port is registered after a discovering one. Making netID matching to mportID ensures consistent net ID assignment in multiport RapidIO systems with asynchronous discovery process (global counter implementation is affected by race between threads). [akpm@linux-foundation.org: tweak code layput] Signed-off-by: Alexandre Bounine Cc: Matt Porter Cc: Li Yang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed