summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-08-29 03:49:50 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-09-27 12:22:10 -0500
commit67449098a86be18cbdb27345bebe8da57e5d8899 (patch)
tree7cb193f9f974c316d238a145c26975f645988ef6 /net
parentbc1ce150b95bc51390add7fb8b74c535d1b5673c (diff)
downloadblackbird-obmc-uboot-67449098a86be18cbdb27345bebe8da57e5d8899.tar.gz
blackbird-obmc-uboot-67449098a86be18cbdb27345bebe8da57e5d8899.zip
FEC: Rework the TX wait mechanism
The mechanism waiting for transmission to finish in fec_send() now relies on the E-bit being cleared in the TX buffer descriptor. In case of data cache being on, this means invalidation of data cache above this TX buffer descriptor on each test for the E-bit being cleared. Apparently, there is another way to check if the transmission did complete. This is by checking the TDAR bit in the X_DES_ACTIVE register. Reading a register does not need any data cache invalidation, which is beneficial. Rework the sequence that wait for completion of the transmission so that the TDAR bit is tested first and afterwards check the E-bit being clear. This cuts down the number of cache invalidation calls to one. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Fabio Estevam <festevam@gmail.com> Cc: Otavio Salvador <otavio@ossystems.com.br> Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud