Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp654486rwb; Fri, 7 Oct 2022 02:16:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4OsGYShrcdrO/DqgpVYW3KzmbY6m4/7iqf7JO4cQiAvAeOqyT4AWzlfVnhAz9BKGyDNSe6 X-Received: by 2002:a63:84c3:0:b0:45a:ca1c:5ea3 with SMTP id k186-20020a6384c3000000b0045aca1c5ea3mr3664137pgd.482.1665134185014; Fri, 07 Oct 2022 02:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665134185; cv=none; d=google.com; s=arc-20160816; b=o4SuJ9KVoiW5ThWGsAShkKLwhCgL9u2Aoslr2q1YkLK3IUSuj/xTGxaxmnDk+i8hMv 1dGCU5w3c85d6EvV18ycwFZkh9pw0sWopYAxA7WZpZC0ws0H9f/Kb/eRAxiRyr/wGQ7+ vQ7fwbgoe4NWlsYg/JAC+E6CTn1IvQNPFU50f1ClLn7ISxgihFql7B8+RtL/LFciawEU Mm+yYBkb8IpCiB9/32+xRJ8689DuAM3fieSAS7iNKJjQoiTHphmLJbfordi/EgqO2A69 nRiZ4OXg9F6KMQbuKwpOO8UyxCtCvXvXgz8ud+oUm5kzk0333Ljm622YcJwutx69Dwo4 nZWA== 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=ZYbNLBkBzyiMlmXV6uIqmX6pPzSsNPT+KW2kDiaS3Zc=; b=r2tSqX9/j+Tp3ISW5hTlHIXfXjLPMrOKaErKyO+FN9ftc8tKkVQmaaUYQup7rSuj05 BYpgR4DsM0geg/qGxqWtgEVlRHKuI/r4QQNJ+Mu7q+NJkIgjx7peNmEjepTlqJma20KM xqi2xBkbpVU31VMXj9MR251eHtl6ODcXfJ8Ld78nbxd4ihgLsWWLpc61kIqy+brmOXAB 0I/k69tpNpSoSCPfXFvNlOpEPCSL1d0S50t4Nd9Jp0NJ8fac2KocRBK101SIAWO7Qkzb GYuchqObSaNRvjmxUWAk3E39vwg8bCVepN/BKYTIbC8yFTN+ldOpWKs/f6dXgjvzejLi o2GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XOLAk2i5; 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 t38-20020a634466000000b0044c3ec9ea71si1890446pgk.630.2022.10.07.02.16.10; Fri, 07 Oct 2022 02:16:24 -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=XOLAk2i5; 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 S229733AbiJGJID (ORCPT + 99 others); Fri, 7 Oct 2022 05:08:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiJGJIC (ORCPT ); Fri, 7 Oct 2022 05:08:02 -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 10D26BCBB5; Fri, 7 Oct 2022 02:08:01 -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 3183066022C7; Fri, 7 Oct 2022 10:07:59 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1665133679; bh=DxOpyHFK5ayCTwPgk9axtIkRiweZ/9Ci4i7s880jvCM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=XOLAk2i57v2mPxnsS02TQB6BXwUzSbBlroT8DUUmu9YZmCZ4o2MABuDJUPns0otlG LeMaRfYOPyiwFzI0LfMSRX0Jsx0UU3ggDyXySGlMhMZ+kf9acV3Acif1BtTBuJcXsG o9G3dSBysqjbvGXBtFd2zo3AwHEsvEqjhTgwZ8kHRv8Ekvij4rgj9C+8WU/kesyY8O ZoTVRttbwv0qsjHLf/eDrtTrji/1I9IejlBCRyCRufTWIFo6augl1ix5x+2+Hr5d17 +zjZ2xARy8Gxydy2SeXspIMfwb6vpGECe4LjWtgV5zOlHjclzNg7gAlzSXJtlhdlKL ovfU5D05a71mQ== Message-ID: <9e14ae09-6100-a55f-7aa7-6ed9edb49e09@collabora.com> Date: Fri, 7 Oct 2022 11:07:56 +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 v1 1/6] media: platform: mtk-mdp3: add chip configuration header file Content-Language: en-US To: Moudy Ho , Mauro Carvalho Chehab , Matthias Brugger , Hans Verkuil Cc: Chun-Kuang Hu , linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Project_Global_Chrome_Upstream_Group@mediatek.com References: <20221007031737.5125-1-moudy.ho@mediatek.com> <20221007031737.5125-2-moudy.ho@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20221007031737.5125-2-moudy.ho@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 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 07/10/22 05:17, Moudy Ho ha scritto: > In order to be compatible with more MDP3 chip settings in the future, > move the chip-related configuration to a separate header file. > > Signed-off-by: Moudy Ho > --- > .../media/platform/mediatek/mdp3/mt8183_mdp.h | 35 +++++++++++++++++++ What if we choose a better name format for the chip header? Would mdp3-plat-mt8183.h work for you? Aside from that, the changes look good... but anyway, what this driver really needs is an abstraction of `mtk-img-ipi.h` since, as you know, new SoCs are using a different firmware and even a different architecture for the MCU. Is that planned? I think that such change would perfectly fit inside of this series. Regards, Angelo > .../platform/mediatek/mdp3/mtk-mdp3-core.c | 27 ++------------ > 2 files changed, 37 insertions(+), 25 deletions(-) > create mode 100644 drivers/media/platform/mediatek/mdp3/mt8183_mdp.h >