diff options
author | Dave Jiang <dave.jiang@intel.com> | 2021-04-16 01:38:09 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-04-20 13:13:53 +0200 |
commit | 435b512dbc0dac42b34348393049b386bb1a19bd (patch) | |
tree | 9d2c9993b952f873ad14943266db611407c5c746 /drivers/dma/idxd/submit.c | |
parent | dmaengine: idxd: iax bus removal (diff) | |
download | linux-435b512dbc0dac42b34348393049b386bb1a19bd.tar.xz linux-435b512dbc0dac42b34348393049b386bb1a19bd.zip |
dmaengine: idxd: remove detection of device type
Move all static data type for per device type to an idxd_driver_data data
structure. The data can be attached to the pci_device_id and provided by
the pci probe function. This removes a lot of unnecessary type detection
and setup code.
Suggested-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/161852988924.2203940.2787590808682466398.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/idxd/submit.c')
-rw-r--r-- | drivers/dma/idxd/submit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/idxd/submit.c b/drivers/dma/idxd/submit.c index a7a61bcc17d5..dfc8900d5de3 100644 --- a/drivers/dma/idxd/submit.c +++ b/drivers/dma/idxd/submit.c @@ -15,7 +15,7 @@ static struct idxd_desc *__get_desc(struct idxd_wq *wq, int idx, int cpu) desc = wq->descs[idx]; memset(desc->hw, 0, sizeof(struct dsa_hw_desc)); - memset(desc->completion, 0, idxd->compl_size); + memset(desc->completion, 0, idxd->data->compl_size); desc->cpu = cpu; if (device_pasid_enabled(idxd)) |