diff options
author | Serge Semin <fancer.lancer@gmail.com> | 2017-12-06 15:31:53 +0100 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2018-01-29 04:17:23 +0100 |
commit | 417cf39cfea9c680aa7c278c8d8a0ca879cacf0a (patch) | |
tree | b53d025c691ee2a7c5a12d0a48d19e2640c45f32 /drivers/ntb/ntb.c | |
parent | NTB: Rename NTB messaging API methods (diff) | |
download | linux-417cf39cfea9c680aa7c278c8d8a0ca879cacf0a.tar.xz linux-417cf39cfea9c680aa7c278c8d8a0ca879cacf0a.zip |
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>
Diffstat (limited to 'drivers/ntb/ntb.c')
-rw-r--r-- | drivers/ntb/ntb.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/ntb/ntb.c b/drivers/ntb/ntb.c index bdcd59b13c1f..2581ab724c34 100644 --- a/drivers/ntb/ntb.c +++ b/drivers/ntb/ntb.c @@ -111,7 +111,6 @@ int ntb_register_device(struct ntb_dev *ntb) init_completion(&ntb->released); - memset(&ntb->dev, 0, sizeof(ntb->dev)); ntb->dev.bus = &ntb_bus; ntb->dev.parent = &ntb->pdev->dev; ntb->dev.release = ntb_dev_release; |