Commit e586685c authored by Wolfram Sang's avatar Wolfram Sang Committed by Andi Shyti
Browse files

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: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: default avatarBjorn Andersson <andersson@kernel.org>
Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
parent fff8b0ed
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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) {