Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11702901rwl; Tue, 3 Jan 2023 03:33:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXttnOR18NgDTKza+AO0t11Vhq6WtXl/P+Qf8U+Mpv2F0dbdxh9l8mIeM2RoOdHEiztueHyQ X-Received: by 2002:a17:907:c786:b0:7ad:a797:5bb9 with SMTP id tz6-20020a170907c78600b007ada7975bb9mr54243703ejc.29.1672745614985; Tue, 03 Jan 2023 03:33:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672745614; cv=none; d=google.com; s=arc-20160816; b=HmsLecyzgx78pv5kG1bpHygBvUdTrpsZs/ZD/Dn+xZiu2KMZlM+e6WBoc0tfdyY4Gi dp9tluO6bnDyq0kJMTmSLfzW+d0UgA3jVqQEBL+03zAPQcCg/p4wtNpP4U0ISqtFGpb2 64Oads214Mrky5ZtxSQrLykXCPrPM1YcWUfOYoVrznqrUsivPXQjoh5o43XDkiXOk7HK IAkpAfFy426iRs+oUJREVs9gOqPO/+FX6atvrNsl67GgIYRyES3BLNyu45FptHrt/Z1K XYGsniNovW00HLWppX65lNI/Fqfn7h01qMXLR0KaaXpLQDyuP9t4rR8DTNeWFLzy1Mdh zp6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=lmc3nBCTQwWzf0yQuGvl+YARoD+4DowvoSdMjMCGIrM=; b=UwYnG7f6zqAoCc5HIECxmgukegrEIxAbUR3xnl+C3S8oqw8CFvUNMu4AXd347DoxxH +RPKZySvMQ1OiXE1lHvd8hG065Kl2gfhpL8sTQaCowGfKEU8D5P+9GEvJvyWmdDnEATb 2Nzfm05niuROaQMFXQa7/TAEpk7wRnqVrD/fmculOVJFhuD/RBWsl38RQSY94k6emvRh lhkxhgjumoW9aVlEswJbBYus0JsNXXGL8adRuHyhQ7/wVoiwc6w9XihSpAXzmlVKujnM CqXDkxz2h9U5GML7gSogTAYj7x6vS1yaUfdEALqhRl41FnLiRiBGGA1MCUNAiiuCy6Pp cySA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=czBDGMzy; 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=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go18-20020a1709070d9200b007e9516bc01dsi31175085ejc.212.2023.01.03.03.33.20; Tue, 03 Jan 2023 03:33:34 -0800 (PST) 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=@mediatek.com header.s=dk header.b=czBDGMzy; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237477AbjACLa3 (ORCPT + 61 others); Tue, 3 Jan 2023 06:30:29 -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 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY 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 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(-)