From patchwork Wed Sep 28 15:55:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 12992436 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 C8FD4C04A95 for ; Wed, 28 Sep 2022 15:56:27 +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=Cy3Rkx7mtT96Cm6MBJ4GzNNlHKRtMHE0OvHFnLl3N8o=; b=Hrm4DuzOUFTcZD zSLOI8B8biZi6EBNN8A15AWxM02W7+qDXSzYkC4uUnotiAALlQSLK+JFenwEfjE3/GOidAhja+FMh uQrh5XX9uiMwTXCWAC4pyW0FmLi0JG9gmnSxcTOSclJs0cNKCi6I+rogB0ZTn0VV6JxugcdDqAH3j BoPNHTMiMWfiy1qfrMDj2c+VJUtN2cD7tJyGJ0gWjpt4n8qkf0cN38Nx2hd8RHWM5awtq2OsO3civ vtJLnRQS8z6PTxhQxcljXhWbAbVt4PQFG57bvkFE6RDqQ6LzCpfpseJVlR+UmfCrDlE+MW+K/XCn4 7cu8AX5i59tUZVp8j2HA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1odZPH-00GzGE-RJ; Wed, 28 Sep 2022 15:55:31 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1odZPF-00GzFa-4w; Wed, 28 Sep 2022 15:55:30 +0000 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 dfw.source.kernel.org (Postfix) with ESMTPS id E7D9161F11; Wed, 28 Sep 2022 15:55:27 +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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220928_085529_271996_DF5D251A X-CRM114-Status: GOOD ( 12.60 ) 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: 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