]> git.ipfire.org Git - thirdparty/linux.git/commit
NTB: Set dma mask and dma coherent mask to NTB devices
authorSerge Semin <fancer.lancer@gmail.com>
Wed, 6 Dec 2017 14:31:53 +0000 (17:31 +0300)
committerJon Mason <jdmason@kudzu.us>
Mon, 29 Jan 2018 03:17:23 +0000 (22:17 -0500)
commit417cf39cfea9c680aa7c278c8d8a0ca879cacf0a
treeb53d025c691ee2a7c5a12d0a48d19e2640c45f32
parentb87ab21935d76922362ff98a5a78f16e2e956ead
NTB: Set dma mask and dma coherent mask to NTB devices

The dma_mask and dma_coherent_mask fields of the NTB struct device
weren't initialized in hardware drivers. In fact it should be done
instead of PCIe interface usage, since NTB clients are supposed to
use NTB API and left unaware of real hardware implementation.
In addition to that ntb_device_register() method shouldn't clear
the passed ntb_dev structure, since it dma_mask is initialized
by hardware drivers.

Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/hw/amd/ntb_hw_amd.c
drivers/ntb/hw/idt/ntb_hw_idt.c
drivers/ntb/hw/intel/ntb_hw_intel.c
drivers/ntb/ntb.c