Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1602252rwb; Mon, 7 Nov 2022 03:43:38 -0800 (PST) X-Google-Smtp-Source: AMsMyM77lgo8Np6BA6OIcNZ9sWrRwq2zdBTTY1788BVF5xQRzyNnRdakfwVr2WQREY9iHwGJu+ol X-Received: by 2002:a17:906:e83:b0:7ae:c0c:210b with SMTP id p3-20020a1709060e8300b007ae0c0c210bmr24876514ejf.523.1667821417801; Mon, 07 Nov 2022 03:43:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667821417; cv=none; d=google.com; s=arc-20160816; b=u8SXFgeFUEtAODoe3sApN2Wb4TXk9I9wT4I0CVbLP5sKomsu/lS9bQ/04T5wpnzpwY wkdMQK2B3RE3qSK06+ycbxgd/vbpyJFlAq8mboSYonMBXKyea3fTdqgum+9qVaqQ01I7 Icyij75VbYd2iGIAzTX9uCgY3AUkwqUVkCSDQw+9Kdyo/+yBq74IenWS4Iyszsf3Q0nP irecnEfaNbCq9zE5PYL0b3fu+CdQYdIcpx0NqU+8mCmD+wd+IvE8iI4EwSon8nIJhENq QhJ7Dg/tMIjpGtjTtZf/B7O/5gBWY4Msw947YmI2MJ02PfQxVbLeJVxAqSC54Bg7NDJ/ jJDA== 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=27pqT0T5ic1p5W1gZSxtR7AyXIWLu/n9XvSLCjdc2rU=; b=tOKUk/DkyMIafW5HdWaMFLC1OGVTatTmFY0oPuVwDJE8uA3Z92oJbStrFXAJpUs7MA tDJtGxk0c0A6vsAY9aj6JGoKN7b6o3s55ICav4jC7+VFdFcBs2OfOKfVH6CaIJdEjzBL NpxtbJ494UVHZ7kRPrg6KcUjS/YrpsTQHsdKMikV+8rHF3Slnx77dMFD5i3iY+bVZdUt 9fMsbcmZc0E09eeyPhpR8IK+jRygIzkf3uFsywK//bdyapKDaXjoqBCM/5RZHJMSm5Ox ETPfyvlxpUsO9kyf5VAw7hR6VeqvwrAOac0TslaxWaeBMHVlp/6zUCcL2iJynThKhLJz kjLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=bxB5RRvK; 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 i24-20020a05640200d800b00459c1e64776si7554152edu.412.2022.11.07.03.43.15; Mon, 07 Nov 2022 03:43:37 -0800 (PST) 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=bxB5RRvK; 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 S231743AbiKGLKi (ORCPT + 93 others); Mon, 7 Nov 2022 06:10:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231894AbiKGLKN (ORCPT ); Mon, 7 Nov 2022 06:10:13 -0500 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 DC4EB183A4; Mon, 7 Nov 2022 03:09:30 -0800 (PST) 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) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 7DBCB6601FAA; Mon, 7 Nov 2022 11:09:27 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1667819368; bh=3+hQs9VHQA+nTYY5byObobXjo39vdKrxEvf02IpmXUE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=bxB5RRvKO4DSosZ9cHjzG7jHLzq5OAyxZQIfjtyCIb0A7ERl6SEoroCKpmDDyvyfb g5Kwegwvs1sq/qMY7l4ruYFPYHSkLVRjXGVPSCZfY3J27XBB9pCqWQA0ENttlQdKsp HfhnjHOftYpw7rG7dFoXrsqNIHitfFoh1aFW3WL9GjtbwFpjRaMumTewT5xoMEC42H wbIAEqK56Nb4h2vb2obmpQYN0fMnsv9zEN4LGBZlghpKFvR0hSvhnrhz9v1uekaAwu TKKIu7Axs6aD2WUE1YSu2hr9qPlA/XWQsIso9NPOOZjNrQ6PyeI4NFM6PKYcNZ9ibT wMRRcfioQgOKQ== Message-ID: Date: Mon, 7 Nov 2022 12:09:25 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH v3 04/12] drm/mediatek: extract common functions from the mtk hdmi driver Content-Language: en-US To: Guillaume Ranquet , Rob Herring , Chun-Kuang Hu , Chunfeng Yun , Jitao shi , Matthias Brugger , Vinod Koul , CK Hu , Daniel Vetter , David Airlie , Krzysztof Kozlowski , Philipp Zabel , Kishon Vijay Abraham I Cc: Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, stuart.lee@mediatek.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, mac.shen@mediatek.com, linux-phy@lists.infradead.org References: <20220919-v3-0-a803f2660127@baylibre.com> <20220919-v3-4-a803f2660127@baylibre.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220919-v3-4-a803f2660127@baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 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 04/11/22 15:09, Guillaume Ranquet ha scritto: > Create a common "framework" that can be used to add support for > different hdmi IPs within the mediatek range of products. > > Signed-off-by: Guillaume Ranquet > --- > drivers/gpu/drm/mediatek/Makefile | 3 +- > drivers/gpu/drm/mediatek/mtk_hdmi.c | 620 ++--------------------------- > drivers/gpu/drm/mediatek/mtk_hdmi.h | 16 + > drivers/gpu/drm/mediatek/mtk_hdmi_common.c | 433 ++++++++++++++++++++ > drivers/gpu/drm/mediatek/mtk_hdmi_common.h | 221 ++++++++++ > 5 files changed, 704 insertions(+), 589 deletions(-) > ..snip.. > diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi_common.c b/drivers/gpu/drm/mediatek/mtk_hdmi_common.c > new file mode 100644 > index 000000000000..3f08d37b1af0 > --- /dev/null > +++ b/drivers/gpu/drm/mediatek/mtk_hdmi_common.c ..snip.. > + > +int mtk_hdmi_setup_avi_infoframe(struct mtk_hdmi *hdmi, u8 *buffer, size_t bufsz, > + struct drm_display_mode *mode) warning: no previous prototype for ‘mtk_hdmi_setup_avi_infoframe’ [-Wmissing-prototypes] Please fix. Thanks, Angelo