Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp1900738rwo; Sun, 23 Jul 2023 03:24:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlG1CSB9B6W+jsRtWWXJnYPjlmzBC1BqsPpTJVYAOomQN90QacpExWKtjSZt9LGAHpZ8ny4e X-Received: by 2002:a17:90a:c38b:b0:268:1162:ae80 with SMTP id h11-20020a17090ac38b00b002681162ae80mr956829pjt.19.1690107857507; Sun, 23 Jul 2023 03:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690107857; cv=none; d=google.com; s=arc-20160816; b=Btf7EJ+vvqoCAbR8nOkrHug7o1EllCeEZ3KiSjGas9q9+1JC9alDL2kBX1h/s3GJmB JaL1mRDpjzbgadttQiZgA0bLZId8zkcOGhIR6SdT9ETQ2lIRUWe2Y0gnWLOFMEbKqUk+ ZZKoc+/RlwACdFHJdccRFEpGWDwq2QB0bmbGoi0oDvhpkRae8MdilcjIERHMsO5vEozY K7P3Q4dOFRtkh94stZoWaWzk90uniZgUy4cx2la1UWd6JuT628XLVz+S29k/Fg5USiOH yIBUkIkw9qmJl6Ie0blRUiJRbZ92Kr4fFxHxPS6czKqLeWsItNbs9OqONdBOqzXzST6d nEQA== 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=G9bizb2XUBHywNQ7OsFuDywmc/SZSAKRG7HN4IcLmxA=; fh=OdsJ+9ovims3Ibz0+8q5my2bcxKGIeFYlCaPgk3t0FU=; b=hnGNnKpjtLlLK/WepiygxFCC4iQB0J7HDaNUe/zJ70u01L1Qmxx001ct4BrqHd0+LX r0ECF5FopWg7S2S14zUnArQJjsoliYMLrmgK8iYDeD4+y8jPaKcvfx51hJr+hRofFYzJ 46BzVJckcYa79kCNypG4DXUQrayPYQLtjIMw3fPIqBUe2Gfi/4ttuNvtqZdgcrImJ13s m3+f7d34/5QjYF+z6ol77FePyQVa//9895g/eakkjgAzE1IAgW7nNSmg2jrEGW78Fshp QWIHBTqL/sKYNW7fQEKkgKJxyT5/Hl5tmsBFKwIwP7+vfU1BCHUdlgNXE+b1uQyNCc93 ApZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m24HZMH7; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rj14-20020a17090b3e8e00b002675d988010si7281161pjb.91.2023.07.23.03.24.05; Sun, 23 Jul 2023 03:24:17 -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=@linaro.org header.s=google header.b=m24HZMH7; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229553AbjGWKRd (ORCPT + 99 others); Sun, 23 Jul 2023 06:17:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjGWKRc (ORCPT ); Sun, 23 Jul 2023 06:17:32 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1E3612F for ; Sun, 23 Jul 2023 03:17:30 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3fbca8935bfso26135195e9.3 for ; Sun, 23 Jul 2023 03:17:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690107449; x=1690712249; 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=G9bizb2XUBHywNQ7OsFuDywmc/SZSAKRG7HN4IcLmxA=; b=m24HZMH7N13lRaOv5+b9dQidpC9uy3119QSO4PCp2b/m6+hXwqvQ7jPMFHXOmkj9ts TzMW1Yu46FjlE6yn1eOJqSqntfWnPUbNSIQX/7ZXWZ4mjjkbFBoFXJ21aSHAmpY4BFoo EQl2X49dqkT4GA5yFDoPHXtJN8+L+6Ysd243ij7VDjcvI+r+gteX+q2+/vFSSpTiaoCS JR6r7rdB0uxqIAC/MYsBicf80X3QG92XkdBLAMkfz7PaWKiuY68jVPZ4/uf5654ZgUDj Q39juTJMrZkfFt9a/OGS+Y/JsEwcvAndxpncQQFfAxgHsyw2ejsNHDad6IeHiiKzlRyn dCbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690107449; x=1690712249; 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=G9bizb2XUBHywNQ7OsFuDywmc/SZSAKRG7HN4IcLmxA=; b=Tx6cpsdnPZ8zEQZtGHh1+es8h/quvfBiGWiU/u6CKBBmNwqXA0eBwRxp5crOcIQqKx Oqew6Pt6lqMwusdCUhRCxoVAssIvBZdal4qXbaFux85ikqZDNveWppfEZGwo6Koj2Ajr CCyvMhQy5DPHAruEz+lacMTMI3HQ2TVz5lnQNDzuBCQGaIJsIsEkG9M/FJmGDWk5jvn6 tp6n1gaAfkoMeA1NgP/AeycWdYPQgAgPMWkVYc3oDxRNQZf1Pp1jTGKVtka38ICIqr/E 27djVILzMCuQxzf2EJn2U/gAQQmrIoCx2lysQmv6oZNVF2x0puJVGy9+1yDNKVlmFzCr KFeA== X-Gm-Message-State: ABy/qLb5siA3axicRZnBv5/nozvWZP8CaaMfGNMT53iy+S91YUxAGZIM XzLwIKJ5lK5Ld4QAYLjG+M/fRQ== X-Received: by 2002:a05:600c:210d:b0:3fb:4055:1ddd with SMTP id u13-20020a05600c210d00b003fb40551dddmr4567872wml.28.1690107449150; Sun, 23 Jul 2023 03:17:29 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id bh17-20020a05600c3d1100b003fbb1ce274fsm25898354wmb.0.2023.07.23.03.17.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 23 Jul 2023 03:17:28 -0700 (PDT) Message-ID: Date: Sun, 23 Jul 2023 12:17:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 0/2] thermal/drivers/mediatek: fix a regression affecting other subsystems Content-Language: en-US To: Icenowy Zheng , "Rafael J . Wysocki" , Amit Kucheria , Zhang Rui , Matthias Brugger , AngeloGioacchino Del Regno , Kang Chen , Dongliang Mu Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20230529162056.3786301-1-uwu@icenowy.me> <40546a57-27ac-8bf9-a2d8-77f7d4ab4aad@linaro.org> <05e6d2d6dd8805c4cded28f85ac873b96bc1467e.camel@icenowy.me> From: Daniel Lezcano In-Reply-To: <05e6d2d6dd8805c4cded28f85ac873b96bc1467e.camel@icenowy.me> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 22/07/2023 14:13, Icenowy Zheng wrote: > 在 2023-06-13星期二的 10:44 +0200,Daniel Lezcano写道: >> On 29/05/2023 18:20, Icenowy Zheng wrote: >>> In the commit I reverted as the first commit of this patchset, the >>> of_iomap function call, which allows multiple mapping of the same >>> physical memory space, is replaced to calling devm_of_iomap, which >>> registers exclusivity, and on my system (mt8173-elm), preventing >>> display >>> from working. >>> >>> So I reverted it, and to really solve the problem that the original >>> commit wants to solve, I read the source of auxadc-thermal and >>> realized >>> that the address of these two memory blocks are not saved after >>> probe, >>> and they're only used when initializing the thermal sensors. This >>> leads >>> to my final fix, which is the second commit here, that adds >>> of_iounmap >>> just to the probe function. >>> >>> Icenowy Zheng (2): >>>    Revert "thermal/drivers/mediatek: Use devm_of_iomap to avoid >>> resource >>>      leak in mtk_thermal_probe" >>>    thermal/drivers/mediatek: unmap foreign MMIO after probing >>> >>>   drivers/thermal/mediatek/auxadc_thermal.c | 46 ++++++++++++------ >>> ----- >>>   1 file changed, 24 insertions(+), 22 deletions(-) >> >> I'll apply only the revert and let you revisit the patch 2 which >> could >> be improved. > > Sorry, is the first patch applied? I didn't see it in any kernel > trees... Yes, sorry, I got another patch meanwhile which provided the same revert with more tags https://lore.kernel.org/r/20230525121811.3360268-1-ricardo.canuelo@collabora.com -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog