From patchwork Fri Mar 24 10:11:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SmlhLXdlaSBDaGFuZyAo5by15L2z5YGJKQ==?= X-Patchwork-Id: 13186638 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 04F4AC6FD20 for ; Fri, 24 Mar 2023 10:13:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=lrbsIYx+HZCV1WH47urGhOl3bHkh3L0NiAkTFyWaKYo=; b=f+InjxwX3cu0aY hBq8YTEOCJyQFtCP6fJxluj7zWAwr4TaB0UE1/9u5j/PflRALuo3JWmJRxVUqJXTJpxrDbvFzjlWH mFBhRWslNGSDYrlpmpATKhNB1JgenK9gVkHJCUBCvIjAT4HlNhkyf1zrwQ9/SL7TuzdG6dD+STHa0 YJT+sL7gHBj1pRU7te7Exa/Cs37TOwAr9RG8OxwX4YQIjF9CK7iXxbM2JG0+j/zI4vztWo3u5FJGT SheyZhtUOzFGIB45i0diIT6jo2X/fYndGML61LN44wL5X8g+jKevn6C2T9NTTrm4MqLwUQDlZZV7C 4OWccTjcuUDzuj2XX24Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfePQ-0047fd-3C; Fri, 24 Mar 2023 10:12:32 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pfePB-0047Xo-2i; Fri, 24 Mar 2023 10:12:19 +0000 X-UUID: 576f7bbeca2c11edb7d8d11f642b8e78-20230324 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=Qvnagfc0tiYt5NldRZqfyp+ajccQr8eiBxiShG+FP7Y=; b=PkXD6dOkkaxvzYH6PMQ7hruFBry+K2lOxQndUOOaI9qPbz0LdL0alOV5PqNMRTjjm6k1Cx01Ee1G0Uv0235UHcRocv4YwZ5sNj+YKmAcLoh75FSEk+3cuNUtb9qwPoTiiRVnpElj2NWPt7/4tX+4WUzbiMWwI75fW003+ENAoEo=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.22,REQID:cb8625b3-5cdb-46a4-be75-ca929f44fc6f,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:120426c,CLOUDID:53896229-564d-42d9-9875-7c868ee415ec,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-UUID: 576f7bbeca2c11edb7d8d11f642b8e78-20230324 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1679370672; Fri, 24 Mar 2023 03:12:11 -0700 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs13n1.mediatek.inc (172.21.101.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Fri, 24 Mar 2023 18:11:33 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Fri, 24 Mar 2023 18:11:33 +0800 From: jia-wei.chang To: "Rafael J . Wysocki" , Viresh Kumar , Matthias Brugger , AngeloGioacchino Del Regno , Kevin Hilman , Rex-BC Chen , Jia-Wei Chang CC: , , , , , Nick Hainke , Dan Carpenter Subject: [PATCH v2 0/4] Enhance mediatek-cpufreq robustness Date: Fri, 24 Mar 2023 18:11:26 +0800 Message-ID: <20230324101130.14053-1-jia-wei.chang@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230324_031217_879531_8981DC1A X-CRM114-Status: UNSURE ( 7.71 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: "Jia-Wei Chang" MediaTek cpufreq driver has some reported problems required to be fixed. Change since v1: - Fix error handling in patch [2/3] in a way of "Free the Last Thing Style". Refine its commit message tag. - Remove the change for MT7622/7623 platform data in the patch [3/3]. - Add the patch for MT7622/7623 platform data [1] in this series. [1]: Message ID: 20221202095227.167492-1-angelogioacchino.delregno@collabora.com/ Tested on: MT8186 Platform (kernel v5.15) AngeloGioacchino Del Regno (1): cpufreq: mediatek: Raise proc and sram max voltage for MT7622/7623 jia-wei.chang (3): cpufreq: mediatek: fix passing zero to 'PTR_ERR' cpufreq: mediatek: fix KP caused by handler usage after regulator_put/clk_put cpufreq: mediatek: raise proc/sram max voltage for MT8516 drivers/cpufreq/mediatek-cpufreq.c | 98 +++++++++++++++++------------- 1 file changed, 57 insertions(+), 41 deletions(-)