summaryrefslogtreecommitdiff
path: root/drivers/i3c
diff options
context:
space:
mode:
authorJae Hyun Yoo <jae.hyun.yoo@intel.com>2020-10-07 21:24:57 +0300
committerJae Hyun Yoo <jae.hyun.yoo@intel.com>2021-08-02 19:04:00 +0300
commitf413aaa7e4b56c693d5f2b8f30cc58bf7ca1f3bc (patch)
tree273874ea94d0a809c5adf92f7a64beb3222db427 /drivers/i3c
parentd5c5322be08c78ba29feb4c01c2e8ef2f1b639fe (diff)
downloadlinux-f413aaa7e4b56c693d5f2b8f30cc58bf7ca1f3bc.tar.xz
i3c: master: dw: adjust irq enabling timing
This commit makes the driver call devm_request_irq when the driver is completely ready to handle interrupts. Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
Diffstat (limited to 'drivers/i3c')
-rw-r--r--drivers/i3c/master/dw-i3c-master.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/i3c/master/dw-i3c-master.c b/drivers/i3c/master/dw-i3c-master.c
index 8513bd353c05..36fcf3a699f5 100644
--- a/drivers/i3c/master/dw-i3c-master.c
+++ b/drivers/i3c/master/dw-i3c-master.c
@@ -1144,14 +1144,6 @@ static int dw_i3c_probe(struct platform_device *pdev)
spin_lock_init(&master->xferqueue.lock);
INIT_LIST_HEAD(&master->xferqueue.list);
- writel(INTR_ALL, master->regs + INTR_STATUS);
- irq = platform_get_irq(pdev, 0);
- ret = devm_request_irq(&pdev->dev, irq,
- dw_i3c_master_irq_handler, 0,
- dev_name(&pdev->dev), master);
- if (ret)
- goto err_assert_rst;
-
platform_set_drvdata(pdev, master);
/* Information regarding the FIFOs/QUEUEs depth */
@@ -1171,6 +1163,14 @@ static int dw_i3c_probe(struct platform_device *pdev)
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,
+ dw_i3c_master_irq_handler, 0,
+ dev_name(&pdev->dev), master);
+ if (ret)
+ goto err_assert_rst;
+
return 0;
err_assert_rst: