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: 12783028 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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 45C6DC433FE for ; Wed, 16 Mar 2022 18:01:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346115AbiCPSDI (ORCPT ); Wed, 16 Mar 2022 14:03:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236096AbiCPSDH (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 DCBBF4090D for ; Wed, 16 Mar 2022 11:01:51 -0700 (PDT) Received: by mail-oo1-xc2e.google.com with SMTP id j7-20020a4ad6c7000000b0031c690e4123so3589963oot.11 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=E2poDt2RJsJazI4GvOaP6+CDC7Zu4Tz1mcC3oHTWfAgxc5SbTYOsk59g3S6WuZ8a+A sKI8MoSpVANnoo9yFAjcPwXWaj5y2Ii4B0FKdLNcjkK1WhAV7kRQAV3lqHOfbD9IYU53 fPswNkdhemFVIKEB8N/iX0mTjFnHiglA1k+iwYdWn+CT4RrnC1uZMKUzCiDKJvFNri30 J8lQSjblw6SPgX79bNmpXimmWKmPLGf0MO6QG/PVCl+1tlQeVvrjz4oqBBrzjn4UvxGi kgLTqJ2K8lncG80WKg1ILYBWY3gFaJVfMN9b2bR2EyxWKAaRETLsLSxZc+MJ9O6ku2k9 xw0w== X-Gm-Message-State: AOAM533grBGAPnwrlNik/Iq8K+NDt/SJNcarQCT7bNpn0Xfap1JCKYFK S7jT3Z74/4Y4Qb3S4EDSK1gPQQ== 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-pm@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)