linux/drivers/net
Dan Carpenter 2f51061eda wilc1000: fix a loop timeout condition
If the loop fails, the "while(trials--) {" loop will exit with "trials"
set to -1.  The test for that expects it to end with "trials" set to 0
so the warning message will not be printed.

Fix this by changing from a post-op to a pre-op.  This does mean that
we only make 99 attempts instead of 100 but that's okay.

Fixes: f135a1571a ("wilc1000: Support chip sleep over SPI")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/YFS5gx/gi70zlIaO@mwanda
2021-04-17 20:54:22 +03:00
..
appletalk
arcnet
bonding
caif
can can: etas_es58x: fix null pointer dereference when handling error frames 2021-04-14 09:32:12 +02:00
dsa net: dsa: mt7530: Add support for EEE features 2021-04-13 14:28:08 -07:00
ethernet mlx5-updates-2021-04-13 2021-04-14 14:14:03 -07:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154
ipa net: ipa: add IPA v4.9 configuration data 2021-04-13 15:02:25 -07:00
ipvlan
mdio
mhi
netdevsim
pcs
phy net: phy: marvell-88x2222: swap 1G/10G modes on autoneg 2021-04-14 12:56:44 -07:00
plip
ppp
slip
team
usb
vmxnet3
wan
wireguard
wireless wilc1000: fix a loop timeout condition 2021-04-17 20:54:22 +03:00
xen-netback
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c net: Space: remove hp100 probe 2021-04-13 15:13:13 -07:00
sungem_phy.c
tap.c
thunderbolt.c
tun.c
veth.c veth: refine napi usage 2021-04-11 16:39:28 -07:00
virtio_net.c
vrf.c
vsockmon.c
vxlan.c
xen-netfront.c