From patchwork Tue Jan 3 11:29:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Lu X-Patchwork-Id: 639972 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 AE7AFC4708E for ; Tue, 3 Jan 2023 11:30:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233082AbjACL35 (ORCPT ); Tue, 3 Jan 2023 06:29:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237446AbjACL3n (ORCPT ); Tue, 3 Jan 2023 06:29:43 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33C4DFD01; Tue, 3 Jan 2023 03:29:35 -0800 (PST) X-UUID: 860d5573e83745bf84eb45d41f03f421-20230103 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=lmc3nBCTQwWzf0yQuGvl+YARoD+4DowvoSdMjMCGIrM=; b=czBDGMzy0jt1Jr0Td0ER6cs6aMnGsyB0zNzbuN86ALEWgO2JHdziJEoaHsDQ4E7xiCT13uVemuz0b9ryFzrO/eUVPLtc285q1x9Pm94TDkXPeQzZ+X03xzugTxZYhQgVuyL9H8J0qGCb5gBno5nKjrLzvdZEGj6Jb0acEutNSdQ=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.16, REQID:e6e5d94e-0065-4c6a-95a1-339360872b0d, IP:0, U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:95 X-CID-INFO: VERSION:1.1.16, REQID:e6e5d94e-0065-4c6a-95a1-339360872b0d, IP:0, URL :0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTION :quarantine,TS:95 X-CID-META: VersionHash:09771b1, CLOUDID:55a48053-dd49-462e-a4be-2143a3ddc739, B ulkID:230103192928J3CXCKI5,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OS I:0,OSA:0 X-CID-BVR: 0 X-UUID: 860d5573e83745bf84eb45d41f03f421-20230103 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1185210505; Tue, 03 Jan 2023 19:29:27 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.186) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Tue, 3 Jan 2023 19:29:26 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Tue, 3 Jan 2023 19:29:26 +0800 From: Roger Lu To: Matthias Brugger , Enric Balletbo Serra , Kevin Hilman , Nicolas Boichat CC: Fan Chen , Roger Lu , Jia-wei Chang , , , , , , Subject: [PATCH v3 0/14] Enhance SVS's robustness Date: Tue, 3 Jan 2023 19:29:11 +0800 Message-ID: <20230103112925.16554-1-roger.lu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org SVS driver got accepted upstream but still has room to be improved. Therefore, we add these patches to fix issues and coding style. Change since v2: - change the goto label wording from "out_of_resume" to "svs_resume_reset_assert" patch [9/14] - Add patch [10/14] to reset svs hardware when svs_resume fail Matthias Brugger (4): soc: mediatek: mtk-svs: clean up platform probing soc: mediatek: mtk-svs: improve readability of platform_probe soc: mediatek: mtk-svs: move svs_platform_probe into probe soc: mediatek: mtk-svs: delete superfluous platform data entries Ricardo Ribalda (1): soc: mediatek: mtk-svs: enable the IRQ later Roger Lu (8): soc: mtk-svs: mt8183: refactor o_slope calculation soc: mediatek: mtk-svs: use svs get efuse common function soc: mediatek: mtk-svs: use svs clk control APIs soc: mediatek: mtk-svs: reset svs when svs_resume() fail soc: mediatek: mtk-svs: use common function to disable restore voltages soc: mediatek: mtk-svs: restore default voltages when svs_init02() fail soc: mediatek: mtk-svs: add thermal voltage compensation if needed soc: mediatek: mtk-svs: keep svs alive even though debug cmd create fail Shang XiaoJing (1): soc: mediatek: mtk-svs: Use pm_runtime_resume_and_get() in svs_init01() drivers/soc/mediatek/mtk-svs.c | 351 ++++++++++++++++----------------- 1 file changed, 174 insertions(+), 177 deletions(-)