Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp827412rwb; Wed, 28 Sep 2022 09:33:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Qd1JCr2KVe1xpGmXkhriP2JVqw6z1A5ACCDFt++eqEleCRahPAlhGxzIv96BJmud4A7Gq X-Received: by 2002:a05:6a00:10cf:b0:528:48c3:79e0 with SMTP id d15-20020a056a0010cf00b0052848c379e0mr35092868pfu.18.1664382816577; Wed, 28 Sep 2022 09:33:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664382816; cv=none; d=google.com; s=arc-20160816; b=quKbMt4+bu4fH6oypoDnQPKLCizf9lbsPEfxW4WA2n3PnvlnlP0+9RrXK6WPGlDGbQ 7PMlIqC2q58PdNjymYz/9jBrcIjREfcFwx1bJwaUEMWvZzXVcmmSUh6RewtaeyPaY6rC 527/ez4osaprZvy/8nTn+SXq6Ex6FY8X/AKxmeYf/vWNXyCXM0FzBllISWRAhEEJs+Un J2XCtvLIpV3J6eTw/qZh8uDx4efjYgxXB2AjkBFn3hOopLVu8d9RRuRm7HW4taEx7ba8 PskbH6hBBgRaSiRgnMZfNPEkCphKBLmUMTygRSrBN2uSfVZR3/n82w3YoSOGmD2WW7WR ERLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Zkde7XvD7sTr+5siCiMHCEt37fW2eS9UKRT7T3OjxcY=; b=Vy6gli/UXj//vC1L9icqUTe0rsF7xfre+pLtGxivWivcG0YDqjh8TQtiFxeSWdouBB TWYn8nUIl9XaOm4ZeiV6Zr68fIWs27joPAzCeLb56F0XA0qtHk6sXsw859szXY/axsb/ n/jGHBq+8j0up10l0f6yvBGaZ1qlhzKoFkn6KpgUS1P7rPOanOTvBa8PgqVYRWEownRn 4GLbtEMHqnP134owYVg5FgkrMEx8NlqN2ZwDSgC1OwEVnwXdNPWLGf8ZeZe9xSpvX4pH Ix+u/9c+QheBoLObs75UGAqrZ/0Az7MtZI9g/pHqwvQCYqg1PHYCy0R6mQAdAJAycdzi 4WHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bCY3qTb4; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j191-20020a6380c8000000b0043dc6ccef5csi6016251pgd.547.2022.09.28.09.33.25; Wed, 28 Sep 2022 09:33:36 -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=@kernel.org header.s=k20201202 header.b=bCY3qTb4; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234204AbiI1Pzm (ORCPT + 99 others); Wed, 28 Sep 2022 11:55:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234167AbiI1Pze (ORCPT ); Wed, 28 Sep 2022 11:55:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA4048E461 for ; Wed, 28 Sep 2022 08:55:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 138A5B82114 for ; Wed, 28 Sep 2022 15:55:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A339FC43146; Wed, 28 Sep 2022 15:55:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664380527; bh=RIn6sZf4k88Tnw5v3eTqACWbQ/KJxG3w+Kp9KpVeALg=; h=From:To:Cc:Subject:Date:From; b=bCY3qTb4/+dYc65wXDwqxgoTq77tM2XbIZQRImu59q9I62cckO9dRTEjEj6UD4hmE wZyAoOcjXJzhmftW6Lz6yXZn43NBhnX9mdwFYKcBDjx9gJBL2Zj+i9cklfFFOmAj9T z7mfUe+nEsVuEg45jVQnzNTM3BHoUcw7z5yXsmiWDLNWq4KbikSPO07vuo/h+xXI9M Js39IvW3fVprP5SbBVTfdpbevt6LzayhsBHd8rNhHaR4RpwnYqFXSdX78pVg7vlWfN oznf0AHJWiDYVmtvIG+5o/OwjOCNM+ak86TAQS1IkUzXCM/pqu7+rIy7NFDJmqDy4u xS6IeGGAafKog== From: matthias.bgg@kernel.org To: roger.lu@mediatek.com, jia-wei.chang@mediatek.com Cc: nfraprado@collabora.com, khilman@baylibre.com, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, angelogioacchino.delregno@collabora.com, Matthias Brugger , Philipp Zabel Subject: [PATCH 0/8] soc: mediatek: mtk-svs: refactor and cleanup the driver Date: Wed, 28 Sep 2022 17:55:11 +0200 Message-Id: <20220928155519.31977-1-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 From: Matthias Brugger Mediatek SVS driver got accepted upstream but has coding style issues which were overseen in the review process. This series is a first step to clean up the driver. It basically cleans up the SoC specific probe. As next step we will need to clean up the 'struct svs_bank'. This series should be a mere cleanup with no functional change. I'm happy to recieve tested-by tags to make sure it does not break anything. Matthias Brugger (8): 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 soc: mediatek: mtk-svs: Move SoC specific functions to new files soc: mtk-svs: mt8183: Move thermal parsing in new function soc: mtk-svs: mt8183: refactor o_slope calculation soc: mtk-svs: mt8192: fix bank data drivers/soc/mediatek/Makefile | 3 +- drivers/soc/mediatek/mt8183-svs.h | 113 ++++ drivers/soc/mediatek/mt8192-svs.h | 64 ++ drivers/soc/mediatek/mtk-svs-mt8183.c | 235 +++++++ drivers/soc/mediatek/mtk-svs-mt8192.c | 98 +++ drivers/soc/mediatek/mtk-svs.c | 882 ++------------------------ drivers/soc/mediatek/mtk-svs.h | 279 ++++++++ 7 files changed, 853 insertions(+), 821 deletions(-) create mode 100644 drivers/soc/mediatek/mt8183-svs.h create mode 100644 drivers/soc/mediatek/mt8192-svs.h create mode 100644 drivers/soc/mediatek/mtk-svs-mt8183.c create mode 100644 drivers/soc/mediatek/mtk-svs-mt8192.c create mode 100644 drivers/soc/mediatek/mtk-svs.h -- 2.37.3