summaryrefslogtreecommitdiff
path: root/drivers/i3c
diff options
context:
space:
mode:
authorJae Hyun Yoo <jae.hyun.yoo@intel.com>2020-10-23 05:04:44 +0300
committerJae Hyun Yoo <jae.hyun.yoo@linux.intel.com>2021-11-05 10:22:11 +0300
commit4bb6931c4446a26c2c996deb2b0d59bedf800f64 (patch)
tree8bf732255f4769d498370572d81b644b2127db7e /drivers/i3c
parent1a46d1aa8467dac18f6e67b6da2055ad76a78945 (diff)
downloadlinux-4bb6931c4446a26c2c996deb2b0d59bedf800f64.tar.xz
i3c: master: dw: fix probing fail
This commit fixed module probing fail by moving irq enabling to just before the i3c_master_register. Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@intel.com>
Diffstat (limited to 'drivers/i3c')
-rw-r--r--drivers/i3c/master/dw-i3c-master.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/i3c/master/dw-i3c-master.c b/drivers/i3c/master/dw-i3c-master.c
index e546a2d4fc22..b9c246aedfcb 100644
--- a/drivers/i3c/master/dw-i3c-master.c
+++ b/drivers/i3c/master/dw-i3c-master.c
@@ -1153,11 +1153,6 @@ static int dw_i3c_probe(struct platform_device *pdev)
master->maxdevs = ret >> 16;
master->free_pos = GENMASK(master->maxdevs - 1, 0);
- ret = i3c_master_register(&master->base, &pdev->dev,
- &dw_mipi_i3c_ops, false);
- if (ret)
- goto err_assert_rst;
-
writel(INTR_ALL, master->regs + INTR_STATUS);
irq = platform_get_irq(pdev, 0);
ret = devm_request_irq(&pdev->dev, irq,
@@ -1166,6 +1161,11 @@ static int dw_i3c_probe(struct platform_device *pdev)
if (ret)
goto err_assert_rst;
+ ret = i3c_master_register(&master->base, &pdev->dev,
+ &dw_mipi_i3c_ops, false);
+ if (ret)
+ goto err_assert_rst;
+
return 0;
err_assert_rst: