]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Enable PCI master
authorSunil Goutham <sgoutham@marvell.com>
Mon, 2 Mar 2020 07:19:27 +0000 (12:49 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2020 19:08:51 +0000 (11:08 -0800)
commit801dae97090b3e8ee1128c10462fae7dc364e767
tree3111dfb1c0222711909e288e1dd4dbee95d43155
parent48e34a830e1cc9df1a23868660c445c4e7bdad1e
octeontx2-af: Enable PCI master

Bus mastering is enabled by firmware, but when this driver
is unbinded bus mastering gets disabled by the PCI subsystem
which results interrupts not working when driver is reloaded.
Hence set bus mastering everytime in probe().

Also
- Converted pci_set_dma_mask() and pci_set_consistent_dma_mask()
  to dma_set_mask_and_coherent().
- Cleared transaction pending bit which gets set during
  driver unbind due to clearing of bus mastering (ME bit).

Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu.c