Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6626842rwr; Tue, 2 May 2023 03:15:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7gEDVYRGuSQespqds9RMUbUzoql1j3iYmlku4ucXUM0h0LqudDD74UfgllwrEgjrDkiQeg X-Received: by 2002:a17:90a:a603:b0:24e:201e:dcbd with SMTP id c3-20020a17090aa60300b0024e201edcbdmr3257400pjq.21.1683022511395; Tue, 02 May 2023 03:15:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683022511; cv=none; d=google.com; s=arc-20160816; b=hn/L2lnZxYoFp/0L5ZPJmvaTuekFWIYqa2I5ccBEjVFa1xy/q0Tcsw02pTM0i8wXqF wRoRiIsO1k7hb5K5pho6fRdBfE67y39NUmE8EEeehkykyGa6sxgvSmZgwwJrt3Yjuh5D vjktFu5t7pNgFz11Y6roJLrtKhPJXcUJSJV1VlUfPKHykFrw+l97mPnfwPZPyecUlBv9 SJzh031qaNk2DQEVdjFSG19LzDOwZPGlcH0XUeWgu60PHQLLsX9t1lJovLJFGfp9YYdl 5LQad1QOIY77pcKlilKyqFQsQeDOVrxLs8bhYcJ18azUauRi+sSdEhWxI2gDv3drYnJB BniQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=DMr9gvF8Pl9mIUWgrETUJDIt0vnyiOv1BE24SgG6Lto=; b=piO/De6dR047qfN5J21wMRYye3aXMt6WnzBtrOsKuNKy6PVADdDhzG6ZOfocLl55Cd 74FE9/x1gmR2JAwBiio7be83IlbsbtLpt522CQ4m307NDXczggYJiKLoMdj1qrAfzprQ tUS0UluwugCj6bOnde1ZIN0B1FWrZ/NvbrOU61GfHSN89/R5gKARX2oc440pLQ5uqgN9 RYTKFm8kbK0QR5behNoq+CGTSyx0JDxYOKdlv1A9s+BA+xeRQSrzG1/InHbMn6nFql8Q PNafmeZUVZSbZ7wEkgpg/k3VxBkW7SVAHMqIjgp1Op/xJjDEqG8x9CkWiNiJ5TgZP6Ka sWbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=WmA9DGCk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 73-20020a63024c000000b0052875a200fesi17989000pgc.215.2023.05.02.03.14.55; Tue, 02 May 2023 03:15:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=WmA9DGCk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233706AbjEBKAT (ORCPT + 99 others); Tue, 2 May 2023 06:00:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbjEBKAR (ORCPT ); Tue, 2 May 2023 06:00:17 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BB4830F6; Tue, 2 May 2023 03:00:16 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3062db220a3so1258772f8f.0; Tue, 02 May 2023 03:00:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683021614; x=1685613614; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=DMr9gvF8Pl9mIUWgrETUJDIt0vnyiOv1BE24SgG6Lto=; b=WmA9DGCkjPvr6YFIxM5TUvWVN9FipEkQlHdb5kpX4aVH4FkFW7QTYZ39MqtjtBmfG2 +2dM7q8RVXvK7XC+TDSTqEBr+Ud9C5b7EakwQrExotdSZC93eWfv4Y/78ui5QG63BCbP vNCt8OjkdNfvDrwsDM3R8HPiZWh+gWAw5DBR1eJO0BxiW69xF4bwbFqkWyWRExLeBfEG GgCAYrm09/Wq8gus+GTJVU63oeXsiuX1KXF6acCdxWw/wFZHhkloAfg45A70JHE954Ua Erb38k+WOrmrQvpt+8tdaZtHCeOsoEeGmc51OWO9nXiiW+Iokuq+8oV06/XNtWb8OHsi ATbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683021614; x=1685613614; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DMr9gvF8Pl9mIUWgrETUJDIt0vnyiOv1BE24SgG6Lto=; b=giX6l6dOcdpyKAPRJitvy1v3NpBqashxsfnM4pFEnlHGKR/sm9opwoYi+hoLgSBFmm QBWqo+GR9iDnLRcGKxMNELCLDCp/oguY3NLvB9wU/lQ60JkFPKC5KBp960NM/ACMrwuc oPUJGrMFEQdRvgmOlkcPqh4QgXXDenNI7QpDOzuQpOxjolf6S6gdOhGd52ylh7qyCDHK LUqFo6HCL8tzP7xtlORKF/oFtP4pHC/qqZyfxeNl7E4zr+hUXzWJ5ZbMBiaF9Z670NTs pbcEEFqK99czf7QKMBHrPBERwH9epcG60IEPSgtnos0/Gx+rHrfWQEIlC4OQ3yasmveB IIww== X-Gm-Message-State: AC+VfDx53nFddMuH11rbuYBDmolmx5wmNNKn9OmT4njRFkT2n8YjlSVJ ObZrrUhY5eRWxwGF+iPOPi8= X-Received: by 2002:a5d:4fcc:0:b0:306:32c4:7e7b with SMTP id h12-20020a5d4fcc000000b0030632c47e7bmr2951475wrw.41.1683021614402; Tue, 02 May 2023 03:00:14 -0700 (PDT) Received: from [192.168.0.91] ([84.76.164.7]) by smtp.gmail.com with ESMTPSA id t15-20020adfe10f000000b00304832cd960sm20629439wrz.10.2023.05.02.03.00.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 May 2023 03:00:12 -0700 (PDT) Message-ID: Date: Tue, 2 May 2023 12:00:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 1/3] thermal/drivers/mediatek/lvts_thermal: Handle IRQ on all controllers Content-Language: en-US, ca-ES, es-ES To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Daniel Lezcano Cc: Alexandre Bailon , kernel@collabora.com, Chen-Yu Tsai , Balsam CHIHI , AngeloGioacchino Del Regno , Alexandre Mergnat , Amit Kucheria , "Rafael J. Wysocki" , Zhang Rui , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org References: <20230428195347.3832687-1-nfraprado@collabora.com> <20230428195347.3832687-2-nfraprado@collabora.com> From: Matthias Brugger In-Reply-To: <20230428195347.3832687-2-nfraprado@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/04/2023 21:53, NĂ­colas F. R. A. Prado wrote: > There is a single IRQ handler for each LVTS thermal domain, and it is > supposed to check each of its underlying controllers for the origin of > the interrupt and clear its status. However due to a typo, only the > first controller was ever being handled, which resulted in the interrupt > never being cleared when it happened on the other controllers. Add the > missing index so interrupts are handled for all controllers. > > Fixes: f5f633b18234 ("thermal/drivers/mediatek: Add the Low Voltage Thermal Sensor driver") > Signed-off-by: NĂ­colas F. R. A. Prado > Reviewed-by: Matthias Brugger > --- > > drivers/thermal/mediatek/lvts_thermal.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/thermal/mediatek/lvts_thermal.c b/drivers/thermal/mediatek/lvts_thermal.c > index d0a3f95b7884..56b24c5b645f 100644 > --- a/drivers/thermal/mediatek/lvts_thermal.c > +++ b/drivers/thermal/mediatek/lvts_thermal.c > @@ -449,7 +449,7 @@ static irqreturn_t lvts_irq_handler(int irq, void *data) > > for (i = 0; i < lvts_td->num_lvts_ctrl; i++) { > > - aux = lvts_ctrl_irq_handler(lvts_td->lvts_ctrl); > + aux = lvts_ctrl_irq_handler(&lvts_td->lvts_ctrl[i]); > if (aux != IRQ_HANDLED) > continue; >