diff mbox series

dmaengine: idxd: add engine 'struct device' missing bus type assignment

Message ID 161947841562.984844.17505646725993659651.stgit@djiang5-desk3.ch.intel.com (mailing list archive)
State Accepted
Commit 1c4841ccbd2b185587010d6178aac11953f61d4c
Headers show
Series dmaengine: idxd: add engine 'struct device' missing bus type assignment | expand

Commit Message

Dave Jiang April 26, 2021, 11:09 p.m. UTC
engine 'struct device' setup is missing assigning the bus type. Add it to
dsa_bus_type.

Fixes: 75b911309060 ("dmaengine: idxd: fix engine conf_dev lifetime")
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---

Hi Vinod, this line got dropped after all my rebasing when it has always
been there. We should include it with the 5.13 merge window pull request.
Thanks!

 drivers/dma/idxd/init.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Vinod Koul May 10, 2021, 2:18 p.m. UTC | #1
On 26-04-21, 16:09, Dave Jiang wrote:
> engine 'struct device' setup is missing assigning the bus type. Add it to
> dsa_bus_type.

Applied, thanks
diff mbox series

Patch

diff --git a/drivers/dma/idxd/init.c b/drivers/dma/idxd/init.c
index 2a926bef87f2..ec7305f86bf7 100644
--- a/drivers/dma/idxd/init.c
+++ b/drivers/dma/idxd/init.c
@@ -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) {