]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: cpsw: Loop until interface ready or timeout in cpsw_slave_update_link()
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 27 Aug 2012 10:26:53 +0000 (12:26 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 27 Aug 2012 10:26:53 +0000 (12:26 +0200)
commit501e43ccdeed6146406b8a14684e80e7810f30dc
tree65bd5c06ba8224a5e91e86b688403bf20032f9f7
parent8c3e4b460afc70eefbacb29bc2fc88df4504bbc0
net: cpsw: Loop until interface ready or timeout in cpsw_slave_update_link()

Without this patch the first packet sent will always be dropped.

Also check for interface status in cpsw_send() only if interface is
not ready because the MII access inside cpsw_update_link() is a very
time consuming operation and significantly deteriorates performance.
drivers/net/cpsw.c