Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

cx82310_eth: wait for firmware to become ready

When the device is powered up, some (older) firmware versions fail to work
properly if we send commands before the boot is complete (everything is OK
when the device is hot-plugged). The firmware indicates its ready status by
putting the link up.
Newer firmwares delay the first command so they don't suffer from this problem.
They also report the link being always up.

Wait for firmware to become ready (link up) before sending any commands and/or
data.

This also allows lowering CMD_TIMEOUT value to a reasonable time.

Tested with 4.1.0.9 (old) and 4.1.0.30 (new) firmware versions.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
latest commit f40bff4239
Ondrej Zary authored davem330 committed
..
Failed to load latest commit information.
appletalk net/appletalk: LTPC needs virt_to_bus
arcnet com20020-pci: add support for eae single card
bonding net/bonding: Fix potential bad memory access during bonding events
caif caif: remove wrong dev_net_set() call
can can: kvaser_usb: Fix tx queue start/stop race conditions
cris eth_v10: remove unnecessary break after return
dsa net: dsa: bcm_sf2: fix 64-bits register reads
ethernet be2net: use PCI MMIO read instead of config read for errors
fddi net: fddi: skfp: smt.c: Remove unused function
hamradio hamradio: 6pack: remove unnecessary check
hippi PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use
hyperv hyperv: fix sparse warnings
ieee802154 ieee802154: cc2520: Fix space before , coding style issue
ipvlan ipvlan: add a missing __percpu pcpu_stats
irda irda: vlsi_ir: Replace timeval with ktime_t
phy amd-xgbe-phy: PHY KX/KR mode differences
plip net: plip: slight optimization of addr compare
ppp ppp: deflate: never return len larger than output buffer
slip net: set name_assign_type in alloc_netdev()
team team: don't traverse port list using rcu in team_set_mac_address
usb cx82310_eth: wait for firmware to become ready
vmxnet3 Driver: Vmxnet3: Change the hex constant to its decimal equivalent
wan wan: cosa: replace current->state by set_current_state()
wimax kbuild: remove unnecessary "obj- := dummy.o" trick
wireless Merge tag 'wireless-drivers-for-davem-2015-03-10' of git://git.kernel…
xen-netback xen-netback: notify immediately after pushing Tx response.
Kconfig ipvlan: Fix text that talks about ip util support
LICENSE.SRC Linux-2.6.12-rc2
Makefile ipvlan: Initial check-in of the IPVLAN driver.
Space.c drivers: net: Include new header file in sbni.c
dummy.c dummy: use MODULE_VERSION
eql.c net: better IFF_XMIT_DST_RELEASE support
ifb.c net: better IFF_XMIT_DST_RELEASE support
loopback.c net: better IFF_XMIT_DST_RELEASE support
macvlan.c macvlan: advertise link netns via netlink
macvtap.c macvtap: make sure neighbour code can push ethernet header
mdio.c mdio: unused ethtool functions
mii.c mii: Handle link state changes for forced modes in mii_check_media()
netconsole.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
nlmon.c net: nlmon: flag nlmon devs with LLTX/SG
ntb_netdev.c net: use ethtool_cmd_speed_set helper to set ethtool speed value
rionet.c net: get rid of SET_ETHTOOL_OPS
sb1000.c drivers/net/sb1000.c: delete double assignment
sungem_phy.c sungem: Fix global namespace pollution of phy accessors.
tun.c net: rfs: add hash collision detection
veth.c veth: advertise link netns via netlink
virtio_net.c virtio-net: correctly delete napi hash
vxlan.c vxlan: fix wrong usage of VXLAN_VID_MASK
xen-netfront.c xen-netfront: Use static attribute groups for sysfs entries
Something went wrong with that request. Please try again.