commit | f49156ea1bf3bccf45a01351cf3db2b5f6a8597e | [log] [tgz] |
---|---|---|
author | Timur Tabi <timur@freescale.com> | Tue May 26 10:21:42 2009 -0500 |
committer | Kumar Gala <galak@kernel.crashing.org> | Tue Jun 23 08:09:41 2009 -0500 |
tree | 804ab76e9cdb81850249e6ca82f9c7331ba775a5 | |
parent | b71a107c66ad952c9d35ec046a803efc89a80556 [diff] |
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 <timur@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>