Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3701102pxb; Mon, 24 Jan 2022 15:46:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMlwTpBk/ymvLRA9dims3ZxPnQWRhdKmG3ZKBlbsUotMIwaRbaks+GMaUzkQPfXfqHixAB X-Received: by 2002:a17:90a:9204:: with SMTP id m4mr708380pjo.238.1643067967622; Mon, 24 Jan 2022 15:46:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643067967; cv=none; d=google.com; s=arc-20160816; b=m9mX0bVABEgtzK0lD+KdWofdHYOPiwQpXvNRvWu3yJ9y6P3A6GxaF2xuqWWB17akeM D5lDFS4lZirBtIcHH04g7F4tw+W9g7Xbs7gzYz104bdFcEB/JsateMdrLk5W2xmnnquY BWBxdTfO0wdIJrL75Cvrd0e2Fg2QuflxIDrlLzBJdX1hIfKtiiptT25Ff/y5+lzg+P7V 4V+nEXdb4uj7No63iqMjyUcPN+7tWQDbNOGi2LR8/lqsqft1Rn6dCFrfgyrLBouAlTuN vIU6iOXJMCxAovRdmJ7qKNqHpLfN0JjHYODDqVvZrf/G/3oaab1yS+7NqobO/GeP8IAS w0cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/hXXc+aNgxsEaz1+90yWRDXywgW5Nzi/sQHqwvSNRQQ=; b=DLKMBqTuH3Sd/IFIElcOGMMBaCfUFBA0dk9ZLzQtP0G2tF1LW7hUPe3CTFoikEIjUT SCRMjan60goht1J2uFoQdxhYHtaajbKeR3NVoZqa9oDt+c6AzpSViSgjsufUVbxj0Rbk G/XxPTerpj2P0CXij5wUqR0js9HAto6pdJ7qBE4NJqMN6+SVuRyEaLGll8iXGOyAP4OP 3tVVEISayG2NJ6JMHhl/4bKZeFuOEcMScNb6ojLmUzIRo45px0lK3gTu8gplTti3yhvK UFFQ1SOVoeaPd1Pp3sDGSh3Nc/IUeUDRSrJRZT106s1VZ4Ay7oQ9WAtsaDLEoqjPFbev 9hfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Hd2uPuG6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p20si13944118plq.541.2022.01.24.15.45.55; Mon, 24 Jan 2022 15:46:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Hd2uPuG6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2360634AbiAXXhI (ORCPT + 99 others); Mon, 24 Jan 2022 18:37:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382519AbiAXW4D (ORCPT ); Mon, 24 Jan 2022 17:56:03 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4457AC055AA3; Mon, 24 Jan 2022 13:10:51 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 010F2B8121C; Mon, 24 Jan 2022 21:10:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F551C340E5; Mon, 24 Jan 2022 21:10:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058648; bh=3Fu7+CpOM2je09bja5KFR0o3WRmslcWj3YAGQSVyIFU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hd2uPuG6f380x4G1oKDviaDJyiSvLbpPX4upUnxzhrJg7JgDwpoNH55TWhf4jqg8m 6vgHfGfda9mEGxjbh+cPOJEFPO8j0cGEURXvVvX0Xckv51Fqvjz9WVqimmVqxp4+z9 Pqm2MoLICdSVsAOVmVXTKimbctWIVD15qkNvFQ1g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marijn Suijten , AngeloGioacchino Del Regno , Mark Brown , Sasha Levin Subject: [PATCH 5.16 0357/1039] regulator: qcom-labibb: OCP interrupts are not a failure while disabled Date: Mon, 24 Jan 2022 19:35:46 +0100 Message-Id: <20220124184137.282853958@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marijn Suijten [ Upstream commit d27bb69dc83f00f86a830298c967052cded6e784 ] Receiving the Over-Current Protection interrupt while the regulator is disabled does not count as unhandled/failure (IRQ_NONE, or 0 as it were) but a "fake event", usually due to inrush as the is regulator about to be enabled. Fixes: 390af53e0411 ("regulator: qcom-labibb: Implement short-circuit and over-current IRQs") Signed-off-by: Marijn Suijten Reviewed-by: AngeloGioacchino Del Regno Link: https://lore.kernel.org/r/20211224113450.107958-1-marijn.suijten@somainline.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/regulator/qcom-labibb-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/qcom-labibb-regulator.c b/drivers/regulator/qcom-labibb-regulator.c index b3da0dc58782f..639b71eb41ffe 100644 --- a/drivers/regulator/qcom-labibb-regulator.c +++ b/drivers/regulator/qcom-labibb-regulator.c @@ -260,7 +260,7 @@ static irqreturn_t qcom_labibb_ocp_isr(int irq, void *chip) /* If the regulator is not enabled, this is a fake event */ if (!ops->is_enabled(vreg->rdev)) - return 0; + return IRQ_HANDLED; /* If we tried to recover for too many times it's not getting better */ if (vreg->ocp_irq_count > LABIBB_MAX_OCP_COUNT) -- 2.34.1