linux/drivers/staging/octeon
Roel Kluin fff9c81529 MIPS: Octeon: False positive timeout
If we reach the test just below the loop with a `timeout' value of 0,
this does not mean that the timeout caused the loop to end, but rather
the `smi_rd.s.pending', in the last iteration. If timeout caused the
loop to end, then `timeout' is -1, not 0.

Since this can occur only in the last iteration, it is not very likely
to be a problem. By changing the post- to prefix decrement we ensure
that a timeout of 0 does mean it timed out.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2009-09-17 20:07:41 +02:00
..
Kconfig
Makefile
cvmx-address.h
cvmx-asxx-defs.h
cvmx-cmd-queue.c
cvmx-cmd-queue.h
cvmx-config.h
cvmx-dbg-defs.h
cvmx-fau.h
cvmx-fpa-defs.h
cvmx-fpa.c
cvmx-fpa.h
cvmx-gmxx-defs.h
cvmx-helper-board.c
cvmx-helper-board.h
cvmx-helper-fpa.c
cvmx-helper-fpa.h
cvmx-helper-loop.c
cvmx-helper-loop.h
cvmx-helper-npi.c
cvmx-helper-npi.h
cvmx-helper-rgmii.c
cvmx-helper-rgmii.h
cvmx-helper-sgmii.c
cvmx-helper-sgmii.h
cvmx-helper-spi.c
cvmx-helper-spi.h
cvmx-helper-util.c
cvmx-helper-util.h
cvmx-helper-xaui.c
cvmx-helper-xaui.h
cvmx-helper.c
cvmx-helper.h
cvmx-interrupt-decodes.c
cvmx-interrupt-rsl.c
cvmx-ipd.h
cvmx-mdio.h MIPS: Octeon: False positive timeout 2009-09-17 20:07:41 +02:00
cvmx-packet.h
cvmx-pcsx-defs.h
cvmx-pcsxx-defs.h
cvmx-pip-defs.h
cvmx-pip.h
cvmx-pko-defs.h
cvmx-pko.c
cvmx-pko.h
cvmx-pow.h
cvmx-scratch.h
cvmx-smix-defs.h
cvmx-spi.c
cvmx-spi.h
cvmx-spxx-defs.h
cvmx-srxx-defs.h
cvmx-stxx-defs.h
cvmx-wqe.h
ethernet-defines.h Staging: octeon-ethernet: Fix race freeing transmit buffers. 2009-06-24 18:34:41 +01:00
ethernet-mdio.c netdev: drivers should make ethtool_ops const 2009-09-02 01:03:33 -07:00
ethernet-mdio.h netdev: drivers should make ethtool_ops const 2009-09-02 01:03:33 -07:00
ethernet-mem.c
ethernet-mem.h
ethernet-proc.c
ethernet-proc.h
ethernet-rgmii.c
ethernet-rx.c
ethernet-rx.h
ethernet-sgmii.c
ethernet-spi.c
ethernet-tx.c Staging: octeon-ethernet: Fix race freeing transmit buffers. 2009-06-24 18:34:41 +01:00
ethernet-tx.h Staging: octeon-ethernet: Fix race freeing transmit buffers. 2009-06-24 18:34:41 +01:00
ethernet-util.h
ethernet-xaui.c
ethernet.c Staging: octeon-ethernet: Fix race freeing transmit buffers. 2009-06-24 18:34:41 +01:00
octeon-ethernet.h