2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-20 08:38:24 +08:00
linux-next/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
..
cvmx-address.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-asxx-defs.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-cmd-queue.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-cmd-queue.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-config.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-dbg-defs.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-fau.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-fpa-defs.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-fpa.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-fpa.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-gmxx-defs.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-board.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-board.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-fpa.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-fpa.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-loop.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-loop.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-npi.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-npi.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-rgmii.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-rgmii.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-sgmii.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-sgmii.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-spi.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-spi.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-util.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-util.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-xaui.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper-xaui.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-helper.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-interrupt-decodes.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-interrupt-rsl.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-ipd.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-mdio.h MIPS: Octeon: False positive timeout 2009-09-17 20:07:41 +02:00
cvmx-packet.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-pcsx-defs.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-pcsxx-defs.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-pip-defs.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-pip.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-pko-defs.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-pko.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-pko.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-pow.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-scratch.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-smix-defs.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-spi.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-spi.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-spxx-defs.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-srxx-defs.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-stxx-defs.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
cvmx-wqe.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
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 Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
ethernet-mem.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
ethernet-proc.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
ethernet-proc.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
ethernet-rgmii.c Staging: octeon-ethernet: Convert to use net_device_ops. 2009-06-24 18:34:41 +01:00
ethernet-rx.c Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
ethernet-rx.h Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
ethernet-sgmii.c Staging: octeon-ethernet: Convert to use net_device_ops. 2009-06-24 18:34:41 +01:00
ethernet-spi.c Staging: octeon-ethernet: Convert to use net_device_ops. 2009-06-24 18:34:41 +01:00
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 Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
ethernet-xaui.c Staging: octeon-ethernet: Convert to use net_device_ops. 2009-06-24 18:34:41 +01:00
ethernet.c Staging: octeon-ethernet: Fix race freeing transmit buffers. 2009-06-24 18:34:41 +01:00
Kconfig Staging: Add octeon-ethernet driver files. 2009-06-17 11:06:30 +01:00
Makefile Staging: octeon-ethernet: Convert to use net_device_ops. 2009-06-24 18:34:41 +01:00
octeon-ethernet.h Staging: octeon-ethernet: Convert to use net_device_ops. 2009-06-24 18:34:41 +01:00