From: Timur Tabi Date: Tue, 26 May 2009 15:21:42 +0000 (-0500) Subject: powerpc/qe: add polling timeout to qe_issue_cmd() X-Git-Tag: v2.6.31-rc2~81^2^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f49156ea1bf3bccf45a01351cf3db2b5f6a8597e;p=pandora-kernel.git powerpc/qe: add polling timeout to qe_issue_cmd() The qe_issue_cmd() function (Freescale PowerPC QUICC Engine library) polls on a register until a status bit changes, but does not include a timeout to handle the situation if the bit never changes. Change the code to use the new spin_event_timeout() macro, which simplifies polling on a register without a timeout. Signed-off-by: Timur Tabi Signed-off-by: Kumar Gala --- Reading git-diff-tree failed