Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3659024pxb; Mon, 24 Jan 2022 14:40:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwf3x4S4lwjXg0xdDrpPPrS2GVVszwn2QQHXQjwXyVPvZ5l7uNLCLuwMCesb8jdDYMVwgEs X-Received: by 2002:a17:90b:4d11:: with SMTP id mw17mr495791pjb.100.1643064008330; Mon, 24 Jan 2022 14:40:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643064008; cv=none; d=google.com; s=arc-20160816; b=ydqr0iKqvkNc9KLA4i75ButP1HyqGwkM+t0CyIX5VZpEJetHHGUdKRCDQo+b3vkcpJ Op+UwPjzPG/VfH86OjNRHp6qsWs/fugdoi5oqtkElgCaZdy/SpLBOMD/o5X22yZPrZ7n SnoxCV06oVZmEm+W4L+JqNq8LN4iJ13Obik0D7+7oWgnJfXx414cpikOnQg1x192QdhM FGGL75+rxqiTNI9L5KrtIDzc0xd8rUby3VjPAUISGzGKX1GYE4z9sk2HzqoFOppVngTk /Hpw/zenKi0tUbI2NzkI5TMj+knTRDMzXSeDuhf2jvZD7s8alekFK7il1wvkCqf5Ojo+ W7gA== 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=PT6ax9SxjtNpR0kvQBfgdGOci2LGu/qBU54GJxn+2s8nbjvo3O3dTj8wwYY6uC6ZUT Yt9F0SbKooL/cnFTd4KPlSmPMImdJeO2m2IPIoyNngI7z6Nc+jUbBJZZS06GqmQxrPd5 o0kC2Dd6gU30c0rqRhaTmR8DLw8HPDsnNjYsMQwOJ6ZYF2HCx9y4pp4DECGYvAPa7WCU g3gAlr49d9i88WzYCDUcqEHmQB5t1/6gQRBUs5Lmj1LKmAsYzPljaGJXuMu5hPL1pmja XVTwQkJzV7R+My9TbwpYTZtXVK2DOpUfVsBPz/jqvXjkzd+G05hgyC6pDHOld9v49wwk Ag/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tznkrP8h; 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 a184si14249112pfb.57.2022.01.24.14.39.56; Mon, 24 Jan 2022 14:40:08 -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=tznkrP8h; 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 S1835288AbiAXWf7 (ORCPT + 99 others); Mon, 24 Jan 2022 17:35:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1456712AbiAXVjy (ORCPT ); Mon, 24 Jan 2022 16:39:54 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9232C0419C6; Mon, 24 Jan 2022 12:26:19 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 46A1C614ED; Mon, 24 Jan 2022 20:26:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13EC7C340E5; Mon, 24 Jan 2022 20:26:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055978; bh=3Fu7+CpOM2je09bja5KFR0o3WRmslcWj3YAGQSVyIFU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tznkrP8hLY2zu285JEZ6pvY3wqpbzPPRa2PEc4yWqRD5epXivgSjeuNmuzqagtcgg jUcaQj1b/yZgIsg86zfeZJFnPguSen000hrH2ZUtfabGvS07wWrc7nDg/ze/5lMfCe JejNfUcdXSg5/huP+VNhkMBVmu21pMA3OWLTI2IE= 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.15 296/846] regulator: qcom-labibb: OCP interrupts are not a failure while disabled Date: Mon, 24 Jan 2022 19:36:53 +0100 Message-Id: <20220124184111.128184376@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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