Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp852804rwb; Thu, 6 Oct 2022 05:30:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7dqiaYE197HWRa3qES3JAwGmRTL4dZKneg/J5oxdR7U+TPegOzf5vkCitbF7nIsn/mUBb0 X-Received: by 2002:a05:6402:3603:b0:451:fdda:dddd with SMTP id el3-20020a056402360300b00451fddaddddmr4297533edb.81.1665059438635; Thu, 06 Oct 2022 05:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665059438; cv=none; d=google.com; s=arc-20160816; b=L2GOGi8ay7MThhW0314lrgKZmU8EBghJfsq1CABrVbG0e+Ck7Y0K4qfhQ/tItYBtLB ET0vtN7M7bys/Q739WnXujXOThcab71cFoT0hwYLwiMit+2R1OqchQp/ImVdePY0zw36 R4NEoxZs5QCRNYNFj6qZgXa6Xrw9ESRZblZddD0oKhZ67BQjirZo83ioT4dsOp3wgkyH U0cF1/BE+SOxktoeU9Z5yW2k+HMLgh1mfnhZsP9SZtZIIFJvQ6HmqbeUBoJvmHMU/CiU rhvJLsTGVLad5lbOkFXNQ2w8N8h7bpQZ5pZF3OVPO6D5Z3kMTFpmDd73vyP9cbhVipKB 0Btg== 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 :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=BDnSL/JPjtSGprjeE4z6z5WlilRjfZmxNugqgexPmCE=; b=FMsBktiIBr4ZK4Zr7oZo8/MOWwRjPYDfVJMm0vXnpHt7nW0wi8WOQCP3FS2XksBa0Z KoJOvbvBvs/3PeJP30g16RTgam5aSYkhCQs6BggmE9MFz1031gE9f8Kkp91TmBjWvJvH yarvDVQTnoqXGlbFKvFffxuFfQ4NgIwIsj037m1txZp0B/RlYE9w1QpMMxS+WM0MKUts HIzkD4nbjSjoHwwaFCBzhIYZ6+r3hVcrBhlGDq7Tkb/Z6LlfDURI0cjUwsIfynNZqjLk wnKp754VysH+sOO8mTwHBi96o7sF3FptWJRQGkbrKtjoc8WoDHtk//D64ckexl+z3EAg f1jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=GRUB3WnC; 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 xg7-20020a170907320700b0078873e4754dsi15587811ejb.774.2022.10.06.05.30.12; Thu, 06 Oct 2022 05:30:38 -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=@mediatek.com header.s=dk header.b=GRUB3WnC; 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 S229574AbiJFLnv (ORCPT + 99 others); Thu, 6 Oct 2022 07:43:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230111AbiJFLnp (ORCPT ); Thu, 6 Oct 2022 07:43:45 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DDA89D51A for ; Thu, 6 Oct 2022 04:43:43 -0700 (PDT) X-UUID: 3fbfda8b9ebb4e62be93ca869691aa02-20221006 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=BDnSL/JPjtSGprjeE4z6z5WlilRjfZmxNugqgexPmCE=; b=GRUB3WnCBotxWZGQ9en4RcbKV2Z86Al12y7pJkeCzq1kiu0HAAcVFXSEgOP+RJC08sUfrSpRAKVq6+RPn5VLXPpnk57cXCK/2W/dINl8iD/bNE1nGHgAnbPAPfjzEVpZgwrMjABM/Qt2gxrJb/cyKOtWxshN38lFtiLDGglIvWA=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.11,REQID:27340b60-7eea-472e-b4d3-34ee1bff111a,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:45,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:40 X-CID-INFO: VERSION:1.1.11,REQID:27340b60-7eea-472e-b4d3-34ee1bff111a,IP:0,URL :0,TC:0,Content:-5,EDM:0,RT:0,SF:45,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:40 X-CID-META: VersionHash:39a5ff1,CLOUDID:6dd672fe-ee8c-4ff7-afe9-644435e96625,B ulkID:221006194341SL6DGXKC,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48|102, TC:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL: 0 X-UUID: 3fbfda8b9ebb4e62be93ca869691aa02-20221006 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 296243264; Thu, 06 Oct 2022 19:43:40 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) 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; Thu, 6 Oct 2022 19:43:39 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 6 Oct 2022 19:43:39 +0800 Message-ID: Subject: Re: [PATCH 0/8] soc: mediatek: mtk-svs: refactor and cleanup the driver From: Roger Lu To: , CC: , , , , , , Matthias Brugger , Philipp Zabel Date: Thu, 6 Oct 2022 19:43:39 +0800 In-Reply-To: <20220928155519.31977-1-matthias.bgg@kernel.org> References: <20220928155519.31977-1-matthias.bgg@kernel.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N X-Spam-Status: No, score=-2.0 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,URIBL_CSS 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 Hi Matthias Sir, Thanks for sharing these great ideas to improve MTK SVS driver. I've added some feedback to this patchset. However, should I just submit the v2 of these patches for you to review? Thanks very much. Sincerely, Roger Lu. On Wed, 2022-09-28 at 17:55 +0200, matthias.bgg@kernel.org wrote: > 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 >