mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
ssb: return correct translation bit for 64-bit DMA
Remove b43's workarounds at the same time. Other users of ssb_dma_translation do not support any 64-bit DMA devices, so they are not affected. Signed-off-by: Rafał Miłecki <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
78c1ee7e61
commit
a9770a815d
2 changed files with 7 additions and 4 deletions
|
|
@ -1266,7 +1266,10 @@ u32 ssb_dma_translation(struct ssb_device *dev)
|
|||
case SSB_BUSTYPE_SSB:
|
||||
return 0;
|
||||
case SSB_BUSTYPE_PCI:
|
||||
return SSB_PCI_DMA;
|
||||
if (ssb_read32(dev, SSB_TMSHIGH) & SSB_TMSHIGH_DMA64)
|
||||
return SSB_PCIE_DMA_H32;
|
||||
else
|
||||
return SSB_PCI_DMA;
|
||||
default:
|
||||
__ssb_dma_not_implemented(dev);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue