From: Timur Tabi Date: Mon, 9 Jul 2012 21:57:36 +0000 (-0500) Subject: net/fsl_pq_mdio: use spin_event_timeout() to poll the indicator register X-Git-Tag: v3.6-rc1~125^2~255 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59399c59262bbb8ae60a37935c3a512d2e79cca3;p=pandora-kernel.git net/fsl_pq_mdio: use spin_event_timeout() to poll the indicator register Macro spin_event_timeout() was designed for simple polling of hardware registers with a timeout, so use it when we poll the MIIMIND register. This allows us to return an error code instead of polling indefinitely. Note that PHY_INIT_TIMEOUT is a count of loop iterations, so we can't use it for spin_event_timeout(), which asks for microseconds. Signed-off-by: Timur Tabi Signed-off-by: David S. Miller --- Reading git-diff-tree failed