From mboxrd@z Thu Jan 1 00:00:00 1970 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 F2466E7717F for ; Mon, 16 Dec 2024 11:12:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=srCVYqgOSp6kv0pOxxC4sBz8zDZFRNfUCCYb3aqr2eg=; b=17kgym5cF6J6Jo/2AdoSF3pTiJ acR0f98nO3P4YApCYgDxLvATwdI7nQ8dUa7KCLUpTwzVqaEOwNwKyCPaiik/O8T5HM+9MPOg19cMk OLmfK4sz4tYc3WCYbLlKVj0mCJFfpwiAGrWxNrtzru9rKi+LWfreVD/1Qnzparkb3aqtsGmCQT9s/ I5D0d7yxFMuHuhXLjB4zQVHBP7SR+22osffqf9Mebuo7Hs042rH4Mp6B5oFX/yyXgPg8bTy9n15iX m5mymWBWPC6DbwZzdiVZV3hP5h5ddzM++ko7TJL02nN8GKv27Uut134HXSyW1hNJNNBjhwryGugy3 9jnGa05A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tN91x-00000009nH5-0UiB; Mon, 16 Dec 2024 11:12:53 +0000 Received: from bali.collaboradmins.com ([2a01:4f8:201:9162::2]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tN8tX-00000009ly1-1GcF; Mon, 16 Dec 2024 11:04:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1734347048; bh=2PAzW0CAvTGnmsRLsCQwS8t9Oqwmzf5n50qbI8kumJg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=nADYOdP4y0TDITg8zV4mKADEnSxzC9xYVmJiW7FNJTMLuq6sz68ov/3wyCzIqV/Sh Q8tLkvhMMCaI4MgamBdtPgzfm75P0/QybahNCZDVLMemTaDmzDw54Uxk3q4H0RpltW jTvDRZRwwrUpht1VpJ08iV60s7p2oebBQQ3Sj0SSr3oQ3mXW4DsobChiWQMtF+rrP2 aAZggNcTdQxh1RhGwZUC6Tb3OC0ondVKMnJBwy2lZsk+pNB9ZF+zzo095oGQqCx7Dj tmV7TxX9pIXJglAS+Rf+Zg3ASByMsiKqXmKCqqrgIHORiuH134+l5Y2U4mZjb/iuvu fOIMFis+EQwFg== 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 bali.collaboradmins.com (Postfix) with ESMTPSA id 3E31117E3632; Mon, 16 Dec 2024 12:04:07 +0100 (CET) Message-ID: Date: Mon, 16 Dec 2024 12:04:06 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 15/15] drm/mediatek: Introduce HDMI/DDC v2 for MT8195/MT8188 To: =?UTF-8?B?Q0sgSHUgKOiDoeS/iuWFiSk=?= , "chunkuang.hu@kernel.org" Cc: "robh@kernel.org" , "jie.qiu@mediatek.com" , "tzimmermann@suse.de" , "simona@ffwll.ch" , "mripard@kernel.org" , =?UTF-8?B?Sml0YW8gU2hpICjnn7PorrDmtpsp?= , "linux-mediatek@lists.infradead.org" , "dri-devel@lists.freedesktop.org" , "maarten.lankhorst@linux.intel.com" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "kernel@collabora.com" , "krzk+dt@kernel.org" , "p.zabel@pengutronix.de" , "conor+dt@kernel.org" , "airlied@gmail.com" , "linux-arm-kernel@lists.infradead.org" , "matthias.bgg@gmail.com" , "junzhi.zhao@mediatek.com" References: <20241205114518.53527-1-angelogioacchino.delregno@collabora.com> <20241205114518.53527-16-angelogioacchino.delregno@collabora.com> <803bc2bd802506635dfa9ea9b26a6ca40a7f4912.camel@mediatek.com> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: <803bc2bd802506635dfa9ea9b26a6ca40a7f4912.camel@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241216_030411_487857_A4ADC4DB X-CRM114-Status: GOOD ( 18.29 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Il 16/12/24 09:57, CK Hu (胡俊光) ha scritto: > Hi, Angelo: > > On Thu, 2024-12-05 at 12:45 +0100, AngeloGioacchino Del Regno wrote: >> External email : Please do not click links or open attachments until you have verified the sender or the content. >> >> >> Add support for the newer HDMI-TX (Encoder) v2 and DDC v2 IPs >> found in MediaTek's MT8195, MT8188 SoC and their variants, and >> including support for display modes up to 4k60 and for HDMI >> Audio, as per the HDMI 2.0 spec. >> >> HDCP and CEC functionalities are also supported by this hardware, >> but are not included in this commit and that also poses a slight >> difference between the V2 and V1 controllers in how they handle >> Hotplug Detection (HPD). >> >> While the v1 controller was using the CEC controller to check >> HDMI cable connection and disconnection, in this driver the v2 >> one does not. >> >> This is due to the fact that on parts with v2 designs, like the >> MT8195 SoC, there is one CEC controller shared between the HDMI >> Transmitter (HDMI-TX) and Receiver (HDMI-RX): before eventually >> adding support to use the CEC HW to wake up the HDMI controllers >> it is necessary to have support for one TX, one RX *and* for both >> at the same time. >> >> Signed-off-by: AngeloGioacchino Del Regno >> --- > > [snip] > >> +static int mtk_hdmi_v2_bridge_atomic_check(struct drm_bridge *bridge, >> + struct drm_bridge_state *bridge_state, >> + struct drm_crtc_state *crtc_state, >> + struct drm_connector_state *conn_state) >> +{ > > I would like v1 and v2 has the same behavior. > Why v2 has atomic check but v1 has no? > If this is better to have, add atomic check to v1, and this function would be common function. > That's because v2 uses the new helpers, while v1 does not. The v1 must be converted to the new helpers in order to use atomic_check() like v2. Cheers, Angelo > Regards, > CK > >> + return drm_atomic_helper_connector_hdmi_check(conn_state->connector, >> + conn_state->state); >> +} >> + > >