Skip to content

Commit e586685

Browse files
Wolfram SangAndi Shyti
authored andcommitted
i2c: qcom-geni: Keep comment why interrupts start disabled
The to-be-fixed commit rightfully reduced a race window, but also removed a comment which is still helpful after the fix. Bring the comment back. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent fff8b0e commit e586685

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/i2c/busses/i2c-qcom-geni.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,8 @@ static int geni_i2c_probe(struct platform_device *pdev)
833833
init_completion(&gi2c->done);
834834
spin_lock_init(&gi2c->lock);
835835
platform_set_drvdata(pdev, gi2c);
836+
837+
/* Keep interrupts disabled initially to allow for low-power modes */
836838
ret = devm_request_irq(dev, gi2c->irq, geni_i2c_irq, IRQF_NO_AUTOEN,
837839
dev_name(dev), gi2c);
838840
if (ret) {

0 commit comments

Comments
 (0)