From: Wolfram Sang Date: Tue, 1 Oct 2024 13:36:20 +0000 (+0200) Subject: i2c: qcom-geni: Keep comment why interrupts start disabled X-Git-Tag: v6.13-rc1~124^2^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e586685c38b3278fbdbcb39f963687c9610f76fc;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Bjorn Andersson Signed-off-by: Andi Shyti --- diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c index 59f2e055d8438..7a22e1f46e60a 100644 --- a/drivers/i2c/busses/i2c-qcom-geni.c +++ b/drivers/i2c/busses/i2c-qcom-geni.c @@ -833,6 +833,8 @@ static int geni_i2c_probe(struct platform_device *pdev) init_completion(&gi2c->done); spin_lock_init(&gi2c->lock); platform_set_drvdata(pdev, gi2c); + + /* Keep interrupts disabled initially to allow for low-power modes */ ret = devm_request_irq(dev, gi2c->irq, geni_i2c_irq, IRQF_NO_AUTOEN, dev_name(dev), gi2c); if (ret) {