]> 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)
commit3ff1600df0faaf954f16797f1af20f8ef210c0df
tree7a290a161719ac290fe203c5d3329b949fa87997
parent14addb2ab91b864954064f39112261c5018cdf8d
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