From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 19.mo583.mail-out.ovh.net (19.mo583.mail-out.ovh.net [46.105.35.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E988F1CB314 for ; Tue, 1 Oct 2024 16:04:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.105.35.78 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727798654; cv=none; b=B3VO2eZeNsZ7b1XoIukoQSAypDvytmnJCvU0ZCBDzB8zZsheER+czlIhUvfhrAzR9uXo9d/kgkdAJmF+7YfpJSX+sk+GZ8L/iHI2KA9qDL2u+upzxTqjNk3Tt99rREO2cdxEHjFKvdhK9S8uY5zmD2je1O0LHscd11Wst34evBI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727798654; c=relaxed/simple; bh=5Ps6qaP3zQmDsMHKHbPv5tOEQw72uaJPiHCSZ93/QEY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZY2DUjYqAXnpvJDzudF4un5MdDjfCoZS5v8z0nL1TCz1hhBwaqgyJeAbTQVnxP6vazHAvfEYoXYh0gDHWC4rQThkMdVt7zdutoUEL5+YkSQHL/wP5XPjmrZtnsb/boQHoczS6LyIlTwcP07MaADroYwgjDqkz6A+9pilw7e1EHg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=etezian.org; arc=none smtp.client-ip=46.105.35.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=etezian.org Received: from director9.ghost.mail-out.ovh.net (unknown [10.109.140.34]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 4XHzVj2TLxz1Ppr for ; Tue, 1 Oct 2024 13:36:29 +0000 (UTC) Received: from ghost-submission-55b549bf7b-kpzdn (unknown [10.110.164.11]) by director9.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 1B7CF1FE5F; Tue, 1 Oct 2024 13:36:27 +0000 (UTC) Received: from etezian.org ([37.59.142.110]) by ghost-submission-55b549bf7b-kpzdn with ESMTPSA id ZIraKdv6+2YL7gAAvqo9vA (envelope-from ); Tue, 01 Oct 2024 13:36:27 +0000 Authentication-Results:garm.ovh; auth=pass (GARM-110S00467e7d24f-62e5-415c-8458-368343432183, 19B342EA1BF14464D5388E9C092C63149640B63F) smtp.auth=andi@etezian.org X-OVh-ClientIp:188.155.229.193 From: Andi Shyti To: Wolfram Sang , Bjorn Andersson Cc: linux-i2c@vger.kernel.org, Vladimir Zapolskiy , Jinjie Ruan , Mukesh Kumar Savaliya , linux-arm-msm@vger.kernel.org, Andi Shyti Subject: [PATCH v2] i2c: qcom-geni: Keep comment why interrupts start disabled Date: Tue, 1 Oct 2024 15:36:20 +0200 Message-ID: <20241001133620.2651795-1-andi.shyti@kernel.org> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 18076604480472025671 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrvddujedgieehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomheptehnughiucfuhhihthhiuceorghnughirdhshhihthhisehkvghrnhgvlhdrohhrgheqnecuggftrfgrthhtvghrnheptdevueeiheeftedujefhheelieejvdevteelfefhheeutdelkedtveejudejgfdvnecukfhppeduvdejrddtrddtrddupddukeekrdduheehrddvvdelrdduleefpdefjedrheelrddugedvrdduuddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpegrnhguihesvghtvgiiihgrnhdrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhivdgtsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdfovfetjfhoshhtpehmohehkeefpdhmohguvgepshhmthhpohhuth From: Wolfram Sang 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 --- Hi, I'm resending this patch from Wolfram so that we don't lose it. All the changes in this v2 have been agreed during code review. Here's the difference: v1 -> v2: - Reword the comment. - Remove the Fixes tag. - Add Bjorn's r-b. drivers/i2c/busses/i2c-qcom-geni.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c index 212336f724a69..b48f25c58baa9 100644 --- a/drivers/i2c/busses/i2c-qcom-geni.c +++ b/drivers/i2c/busses/i2c-qcom-geni.c @@ -818,6 +818,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) { -- 2.45.2