]> git.baikalelectronics.ru Git - kernel.git/commit
net: axienet: Wrap DMA pointer writes to prepare for 64 bit
authorAndre Przywara <andre.przywara@arm.com>
Tue, 24 Mar 2020 13:23:44 +0000 (13:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2020 23:33:04 +0000 (16:33 -0700)
commit690548c6f7373bd28ca86f8f8ebecac33a4cb158
tree7a290a161719ac290fe203c5d3329b949fa87997
parent08041649afd4d486e89caac290be4e3a462682d4
net: axienet: Wrap DMA pointer writes to prepare for 64 bit

Newer versions of the Xilink DMA IP support busses with more than 32
address bits, by introducing an MSB word for the registers holding DMA
pointers (tail/current, RX/TX descriptor addresses).
On IP configured for more than 32 bits, it is also *required* to write
both words, to let the IP recognise this as a start condition for an
MM2S request, for instance.

Wrap the DMA pointer writes with a separate function, to add this
functionality later. For now we stick to the lower 32 bits.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c