Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1808775rwb; Thu, 29 Sep 2022 02:30:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5EyqwfH1SOFMnJn5gbKpqVG2mSHSmkT8EV6DN4BgFA6RyNOok40DsJHuHMI80IKi1rLxpl X-Received: by 2002:a05:6402:84d:b0:454:f41d:6ccf with SMTP id b13-20020a056402084d00b00454f41d6ccfmr2315566edz.129.1664443831216; Thu, 29 Sep 2022 02:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664443831; cv=none; d=google.com; s=arc-20160816; b=vDEQixCR/9CG3+u6C7Yq6rfY3Exrbdm4MvQrDpVU8Jo4CZ6rtY2ApLqIWzdDQXxM4Z hKlAVy9vLiO29DE1IcKRJA6YaWVT86F4GdA1tlZeR5QHpIdDNBGblMmn6G0xGVido8jz 6sDJXpMNUKHHQF9TM//UGP0FOHP9I+d8EzwifWndM1bqppL95IrSiRUfSgo8zswPOQOU D4Z/++f5p2CYXffHGXwIAgzuvBxMIonGJH7pEJNywlwNszsVwgt+ideiAoIY/VNt2ZRY pTkWtsH0PtUnx+UJRDmMsV+b+UNh/VlwEP5wio1FkZ1D6Ywg2DRjCgQMcQpYLD6E9pA9 7zzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=csxHMoV7rZGj6RZdSys8gg/iJwdNSFkGpHyes/lo0Ao=; b=a41ldP7K07Qb+P8DM4HTYlFW/JTb6/PO4rJmUfJW6nNsLau7FDXGLOGjR/Xng3xNo3 jq6udtnML6eNi21DlYDTys4oISNa0KQbTmwxfC67gxrFURqd+GHQcqmGxH+MRGGJKJpv Wo4lvqOR9TRusxlQObNdoyr50scXaEhEcs3KYkv+GMtd3yRmj0fi3dh4QyjvsbonHQVT bYNmAYX3nzXjpqjaCPeb9UZXM/f/xl/63vp0pYMe96gG3BRWvoKamXtdZY6zoSI7TU8Y qRbu4Gia+VvFKXxRH6FCeo/Qt2YK0xbwnAtZBCA4DcjwMVx/XKSaw4WTrygsx2dyBI+B ta8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lctdJjd3; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x95-20020a50bae8000000b00453bd1d4247si6901453ede.384.2022.09.29.02.30.05; Thu, 29 Sep 2022 02:30:31 -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=@collabora.com header.s=mail header.b=lctdJjd3; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235502AbiI2I01 (ORCPT + 99 others); Thu, 29 Sep 2022 04:26:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235469AbiI2I0Q (ORCPT ); Thu, 29 Sep 2022 04:26:16 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64A4E109778 for ; Thu, 29 Sep 2022 01:26:14 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 76E7066022A4; Thu, 29 Sep 2022 09:26:12 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1664439973; bh=KWUoXXAk6o0BCBiAsiGqrnHSb/eXnc4H+xT7gm5rr6c=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=lctdJjd3YIz0jsS7WT5B+VBKJKB1m3r95Q6IpGrU1RYiFo0WJYcOWbfpHz69nHark 55T7CDlYAHhnfHS8tkKNHirgzQ7zmZatrRJSNHQHjvXzD+07bxsgdVA4evDMrIjyhA jYd/ojiwuNNs1qm0+Orej6yIZFcAJ9PwNPbn52tKMcseLaGkmXEtH49VywHTM/yXuU V31bgXhA8m4JkB5uNct6Q3ebmaA1w2F/hOj28qr4QBxjMtYs/jqkgMVNkrYBpxENIr JRuto3vGG1inYX0GcPM1rTU+36AxgZtmNYB2kXUEhelsCxGrZrzirKLdXhlnQp4Crq NN70nw6jqNMHw== Message-ID: <050439a2-bd54-54ec-10da-ff8d3a2b50ca@collabora.com> Date: Thu, 29 Sep 2022 10:26:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH 5/8] soc: mediatek: mtk-svs: Move SoC specific functions to new files Content-Language: en-US To: matthias.bgg@kernel.org, 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, Matthias Brugger , Philipp Zabel References: <20220928155519.31977-1-matthias.bgg@kernel.org> <20220928155519.31977-6-matthias.bgg@kernel.org> From: AngeloGioacchino Del Regno In-Reply-To: <20220928155519.31977-6-matthias.bgg@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 Il 28/09/22 17:55, matthias.bgg@kernel.org ha scritto: > From: Matthias Brugger > > With every SoC added to the driver, it grows. Move SoC specific > callbacks to a new source files. > > Signed-off-by: Matthias Brugger > --- > > 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 | 234 ++++++++ > drivers/soc/mediatek/mtk-svs-mt8192.c | 100 ++++ > drivers/soc/mediatek/mtk-svs.c | 831 ++------------------------ > drivers/soc/mediatek/mtk-svs.h | 279 +++++++++ > 7 files changed, 837 insertions(+), 787 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 > > diff --git a/drivers/soc/mediatek/Makefile b/drivers/soc/mediatek/Makefile > index 0e9e703c931a..851131638644 100644 > --- a/drivers/soc/mediatek/Makefile > +++ b/drivers/soc/mediatek/Makefile > @@ -7,4 +7,5 @@ obj-$(CONFIG_MTK_SCPSYS) += mtk-scpsys.o > obj-$(CONFIG_MTK_SCPSYS_PM_DOMAINS) += mtk-pm-domains.o > obj-$(CONFIG_MTK_MMSYS) += mtk-mmsys.o > obj-$(CONFIG_MTK_MMSYS) += mtk-mutex.o > -obj-$(CONFIG_MTK_SVS) += mtk-svs.o > +mtk_svs-objs := mtk-svs.o mtk-svs-mt8183.o mtk-svs-mt8192.o > +obj-$(CONFIG_MTK_SVS) += mtk_svs.o > diff --git a/drivers/soc/mediatek/mt8183-svs.h b/drivers/soc/mediatek/mt8183-svs.h > new file mode 100644 > index 000000000000..89c0deb9fb11 > --- /dev/null > +++ b/drivers/soc/mediatek/mt8183-svs.h > @@ -0,0 +1,113 @@ > +/* SPDX-License-Identifier: GPL-2.0-only */ > + > +#ifndef __DRV_SVS_MT8183_H > +#define __DRV_SVS_MT8183_H > + Please avoid implicit header inclusion (here and in mt8192-svs.h). #include "mtk-svs.h" Cheers, Angelo