]> git.baikalelectronics.ru Git - kernel.git/commitdiff
dmaengine: idxd: add engine 'struct device' missing bus type assignment
authorDave Jiang <dave.jiang@intel.com>
Mon, 26 Apr 2021 23:09:19 +0000 (16:09 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 10 May 2021 14:18:12 +0000 (19:48 +0530)
engine 'struct device' setup is missing assigning the bus type. Add it to
dsa_bus_type.

Fixes: 9b61115d70df ("dmaengine: idxd: fix engine conf_dev lifetime")
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/161947841562.984844.17505646725993659651.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/init.c

index 2a926bef87f2ac8b19a246244a478987e3750bc9..ec7305f86bf7420fae989eb5354ba91b50e1c724 100644 (file)
@@ -242,6 +242,7 @@ static int idxd_setup_engines(struct idxd_device *idxd)
                engine->idxd = idxd;
                device_initialize(&engine->conf_dev);
                engine->conf_dev.parent = &idxd->conf_dev;
+               engine->conf_dev.bus = &dsa_bus_type;
                engine->conf_dev.type = &idxd_engine_device_type;
                rc = dev_set_name(&engine->conf_dev, "engine%d.%d", idxd->id, engine->id);
                if (rc < 0) {