From: Ben Hutchings Date: Fri, 24 Jun 2011 19:46:31 +0000 (+0100) Subject: sfc: Allow resets to be upgraded; use atomic ops for safety X-Git-Tag: v3.1-rc1~316^2~154^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7d529ae2158b5300e4aa16c21f1828bc864449b;p=pandora-kernel.git sfc: Allow resets to be upgraded; use atomic ops for safety Currently an attempt to schedule any reset is ignored if a reset is already pending. This ignores the relative scopes - if the requested reset is greater in scope then the scheduled reset should be upgraded accordingly. There are also some race conditions which could lead to a reset request being lost. Deal with them by using atomic operations on a bitmask. This also makes tests on reset_pending easier to get right. Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed