Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp940812rwr; Wed, 3 May 2023 08:10:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5gFCMlNBT5OhAMH2cz8H/R+0mES2sep+3Nitu3mpIEDI6CFxAhDLtoy9sRl0wOc5nhng+x X-Received: by 2002:a05:6a00:1803:b0:637:434a:75df with SMTP id y3-20020a056a00180300b00637434a75dfmr8159597pfa.0.1683126602355; Wed, 03 May 2023 08:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683126602; cv=none; d=google.com; s=arc-20160816; b=z79EldsEB18nUtPuFhy/v9aBBkPSlmsbtQtKbtemakpILjW3/YZBhpnK3PljGt5/oH 6M2IAy8fzFFCcuxJzUt5AH18u1nQ2wM6YEoQb+Z0u2pn2fwj+r85dxnbp4OGhLLunV5S Hn82jyN+tkQUiFbuMsRo2feEAFee6oWUjmFnaZPE2Yko4ITxvVjZIP6F2ZfXmtqy+fLq ZofnW5QFpSy6cEGqYZ9L0Snw7IO33r0ZVhFHq0iAPI8/ZGTQuIUb6y5sMl1kixgZr1zI oesEWbZTn1fKJDjZC6Ppc5lFkgFRJVXhhA591C0Wt2m7VVLZzJlg0mVDO1h4Lrm4gp2f 4d3A== 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=Sv2+/K5XC2b0HdPgDdX2IKatg7rHcYkRnUy7gDiaJ7M=; b=VgnOKvpciQumlx5z9tEJVO6t66hSGM207RwN7rVL0vxRGh+9KHTPxWMMUIxdc6/hNk t3XpiXblX2aPjxJSoLr6pija6yiAmAvx77BcnlIIOdjtwLmzraJbiVy6mJw2WxIGcWOQ aQjusMIh2gkvAZJ7wIUUAe3QcIad5bgjETLuFY2smuRfnypN/Zwd5F552Q61+CwMkMyD ENI/pFlA4vzF65LDwYA8/skIo2LfPbfXluc0hbpjjRpUwONHOv/9kdfnWF5XyHb0dlkZ Kab9XQo4cKRtawBNmNsLSTvC4CevtorOmj0ecOFhlXmgrGfhF/qFiW2hUjvuvOQUYT1m uv1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="TsfBtP/r"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f12-20020aa79d8c000000b0063b5f25dd95si27298965pfq.391.2023.05.03.08.09.46; Wed, 03 May 2023 08:10:02 -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=@collabora.com header.s=mail header.b="TsfBtP/r"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229689AbjECPIo (ORCPT + 99 others); Wed, 3 May 2023 11:08:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230240AbjECPIn (ORCPT ); Wed, 3 May 2023 11:08:43 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B3834ED2; Wed, 3 May 2023 08:08:41 -0700 (PDT) Received: from [IPV6:2001:b07:2ed:14ed:c5f8:7372:f042:90a2] (unknown [IPv6:2001:b07:2ed:14ed:c5f8:7372:f042:90a2]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 86AEC660309E; Wed, 3 May 2023 16:08:38 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1683126519; bh=RwTGWOhkT7pHlQLK7lBAvP67WOlpNIgQtMBeQOTu5GQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=TsfBtP/r5DB06esjjVFlv1laNtIZfYOWcaJSjKiK/vBGHoYjiFdeIa33f0Frtk+4L FUOXQETj1YxZhTvk8Uz2iLdvcFRnG/bmQbl2rWVB1DE3dYAG3r3bMjv7dLtUm8LoPX YY+R0XBOaaFdkKUU3aAx58sz4tmpSTnWKlmYLhWkYl+MXlIWNY9Y+QZBPq9+4BJFJu 0PpCVJbt46yoxg7GdS2G7OPKqFPh5A+udbnNKP2yoZq7lgIBU4n1quPJ4bzwVnM7+c L03/4EmwU0SXjcwgPA5LwzTrWdQEs0M6tiGvbIMikeeonyPlx8/hEPVl/L+IlFrSCl V8LxOwUKef5nw== Message-ID: <449d21bf-c91c-f8dc-38c4-1206a5463fdd@collabora.com> Date: Wed, 3 May 2023 17:08:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH 1/3] thermal/drivers/mediatek/lvts_thermal: Handle IRQ on all controllers Content-Language: en-US To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Daniel Lezcano Cc: Alexandre Bailon , kernel@collabora.com, Chen-Yu Tsai , Balsam CHIHI , Alexandre Mergnat , Amit Kucheria , Matthias Brugger , "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: AngeloGioacchino Del Regno 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=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Il 28/04/23 21:53, NĂ­colas F. R. A. Prado ha scritto: > 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: AngeloGioacchino Del Regno