From: Malcolm Priestley Date: Tue, 21 Apr 2015 21:33:00 +0000 (+0100) Subject: staging: vt6655: vnt_tx_packet Correct TX order of OWNED_BY_NIC X-Git-Tag: omap-for-v4.2/wakeirq-drivers~2^2~9^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d65d2b25d2761153390df8026cca1a528d9b6c5a;p=pandora-kernel.git staging: vt6655: vnt_tx_packet Correct TX order of OWNED_BY_NIC The state of m_td0TD0.f1Owner should change after the buff_addr has been filled otherwise the device grabs the buffer too early. m_td0TD0.f1Owner is protected by memory barriers on both sides of change. iTDUsed is best incremented after MACvTransmit. It appears that f1Owner actually polls to do the memory transfer. A back port patch will be needed for v3.19 Signed-off-by: Malcolm Priestley Cc: # v4.0+ Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed