]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: mvpp2: Fix DMA address mask size
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Wed, 18 Apr 2018 09:14:44 +0000 (11:14 +0200)
committerKhalid Elmously <khalid.elmously@canonical.com>
Tue, 12 Jun 2018 06:28:55 +0000 (02:28 -0400)
commit8921f372f546fd0d67ad16fce2b43f33235a8afc
tree2bef7ed742d4191c0f8e61d21b869ed916c08b1f
parentc0d90f5832ac2218e08cc268d7f126bb9dcaa6ae
net: mvpp2: Fix DMA address mask size

BugLink: http://bugs.launchpad.net/bugs/1775483
[ Upstream commit da42bb271305d68df6cbf99eed90542f1f1ee1c9 ]

PPv2 TX/RX descriptors uses 40bits DMA addresses, but 41 bits masks were
used (GENMASK_ULL(40, 0)).

This commit fixes that by using the correct mask.

Fixes: e7c5359f2eed ("net: mvpp2: introduce PPv2.2 HW descriptors and adapt accessors")
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/marvell/mvpp2.c