From patchwork Wed Mar 16 18:03:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12783029 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2615CC433EF for ; Wed, 16 Mar 2022 18:01:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345482AbiCPSDI (ORCPT ); Wed, 16 Mar 2022 14:03:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344733AbiCPSDH (ORCPT ); Wed, 16 Mar 2022 14:03:07 -0400 Received: from mail-oo1-xc2e.google.com (mail-oo1-xc2e.google.com [IPv6:2607:f8b0:4864:20::c2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC18C403E9 for ; Wed, 16 Mar 2022 11:01:51 -0700 (PDT) Received: by mail-oo1-xc2e.google.com with SMTP id n5-20020a4a9545000000b0031d45a442feso3636198ooi.3 for ; Wed, 16 Mar 2022 11:01:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=d8UDUPCagSybiysvIhI5BIqU58eMg3iRfrR4eYtybjA=; b=xtASAU7wDaIm+b/Xk6+2pUb1aGShhm7O6WqcS5BCdDlhIoH84j1qti5oFq6+1TJ5SI J+layVpKVy7aWAleN7DXxRh1KI/dZcBnK0lFxO03FcRDLr6qpcXmw262hV51mA/7zO+3 pfuk9u1pV3OCrMr3mq/OP8U5zh6V3ZoMhX01oiWRxrcMYRXGRl4bdZWoJqJkCyRPhUz0 nzBW9oPfswwJ43raEMm8zxOMPGlzbPi8r3fZauMB3GFzH8rwD5S4w2wT2mo9vNj3GRjT k6FN/PnenP5VxUbriuoN/vOXjDXviD7XKwO+eA9aPW8MHVhjwh1sQryZ/2JcVR2M3nF5 mVTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=d8UDUPCagSybiysvIhI5BIqU58eMg3iRfrR4eYtybjA=; b=7Jptmol++CaLxhKjK1nGjmWlcyyrHoW2OpBpapnS2VIJHNldaVE92cY0MhjFoBVAhD G6kOJtN1oLeZtuYxSc43tdUg2ykdR2ihtGUIHyuy5nYxUC0FyNHOxrRtqLAODcUBZJ/X c4sIpck0d06UaHmZHA3ixgoaQV1kkIQF1frHM7ZpHBmkr/mIsoUcO8Gj+I/SRUh5d1cy bdnm6kWKMew6MuYDMcFxmOfcJmYGvlh/KZGBOr6r11XpPX/e9f74EOSYps1waQzW3oSc ecF8bJqUoaWRMWKzDYoVT/CvhbkwAJky6Py9Y9io4TxzXGgCoDwtsFXz8TvvoUt4LqjX EF/Q== X-Gm-Message-State: AOAM531C9RANm+pn8nIReDsAe8WphUd/VyJzfJSnyPdfNzWX2rMDPtnl dVDo3kddF6ZC7SJzou71/Zm0pQ== X-Google-Smtp-Source: ABdhPJzursgp/IXFlioGmkDd/1LMOK2ELicz8/m7QIxCTlhJM0Q7gJO648o0f0y6q7/vwOsvWNuKgQ== X-Received: by 2002:a05:6870:4195:b0:da:9790:288b with SMTP id y21-20020a056870419500b000da9790288bmr387093oac.284.1647453710856; Wed, 16 Mar 2022 11:01:50 -0700 (PDT) Received: from ripper.. ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id 96-20020a9d0469000000b005c959dd643csm1215810otc.3.2022.03.16.11.01.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 11:01:49 -0700 (PDT) From: Bjorn Andersson To: Amit Kucheria , Thara Gopinath , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui Cc: linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] thermal/drivers/qcom/lmh: Fix irq handler return value Date: Wed, 16 Mar 2022 11:03:22 -0700 Message-Id: <20220316180322.88132-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org After enough invocations the LMh irq is eventually reported as bad, because the handler doesn't return IRQ_HANDLED, fix this. Fixes: 53bca371cdf7 ("thermal/drivers/qcom: Add support for LMh driver") Reported-by: Daniel Lezcano Signed-off-by: Bjorn Andersson Reviewed-by: Dmitry Baryshkov --- drivers/thermal/qcom/lmh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/qcom/lmh.c b/drivers/thermal/qcom/lmh.c index c7f91cbdccc7..af9f0872614f 100644 --- a/drivers/thermal/qcom/lmh.c +++ b/drivers/thermal/qcom/lmh.c @@ -45,7 +45,7 @@ static irqreturn_t lmh_handle_irq(int hw_irq, void *data) if (irq) generic_handle_irq(irq); - return 0; + return IRQ_HANDLED; } static void lmh_enable_interrupt(struct irq_data *d)