From patchwork Thu Oct 10 09:26:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13829843 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 510AACF07DF for ; Thu, 10 Oct 2024 09:26:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9C29410E8A3; Thu, 10 Oct 2024 09:26:43 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="X+r3x1XH"; dkim-atps=neutral Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011009.outbound.protection.outlook.com [52.101.70.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id DEDE210E8A3 for ; Thu, 10 Oct 2024 09:26:41 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kIZOg3q84aUFJTI416yEOllTgxYgJr7gvBEh9wY/2GBXbscBoMCVBtt6ZQyvVILI2/plX4HSJh0+nOvnvDgEzCB/Fyryzg43FqlQALNwjEI6NBY+jDTagS4PN8O+C8naQEZNx0O5f7KJ+vIehorlFdP9MzdM56vb4GLKNCoN8QK561YDIqGk/lEhmlTZz5YkR9t4xLymjJTUI4UYgGISC13GkN/oqfk7dDw4mbs8Ue3+VevdbCZn/plHrc1/G58a9ruhbd0B9okHHhn/vPIpc2NtBp8akoCKGeVcOqmrGtegqV0VRGRw4iYKyc1zk6sXsplVf3kgo2eFBMcsX9BlTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4uSLnLthcKIt+KuiGqxlOHVN8H++tLBZaH3tztJ75eI=; b=FUD+udQ1z46yF0OQcsgQcn6RzELgoXVUaLbZkmzYu9H1fzdnmgTynFZTFlJG+4PCY5HOGxfz7iHxG4T1ZNJzfclIsrX3JItkNFFV6KH1BIpirT5S2GwgInnoJjqQj5Nu/ZnPkxKPNI7RSQgF+BbzjLO38UEaqTdp23J4i1Sqlhe6BS0xBuUA13DPNcUqlnIg8D4hIXN//14ecbA1/7KykgB4II091YiHQXCH/5EwZsTeF6J00NAlOLnudtYPjho0cKFNdg+vkE0rhoph908b3XbO4W5ZLhrJ9UG8W/a85a/KwHhoXKH7yvRGyD4FFSTrzvHuo2ws9IJD3R9AyzY2tA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4uSLnLthcKIt+KuiGqxlOHVN8H++tLBZaH3tztJ75eI=; b=X+r3x1XHwdoeitNOtzgYG5ZJ4pv58iMLsjSB6w0plFl9i7bWwnY6uQEg0bTYejZLqsJhXk/pyzrJgLJE3+r1qaxSSalJInLFE31QybeHSK1LfsAcVtuRArLf/iFrTu56nr+deeGVf7EmAR8a968/+v2f8Yflsj+Vli2inIU/bWz5xSt3Ni9laLZjuA5idEZ+Z4XfgKKFB4alQAX95bAGeAxczXmnMZaLcjgZJ1pbjyh/HSa2aF8nOz4cWgMPmZW/L1UpYwHczUhwBeDUF9SWvSPeH4GNcNb1KDYoKKsOiJIF6HyoNlAUk10apruqBqShCBT1G3ytIak89mctOQ8Cqw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by PR3PR04MB7387.eurprd04.prod.outlook.com (2603:10a6:102:91::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.18; Thu, 10 Oct 2024 09:26:37 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%4]) with mapi id 15.20.8048.017; Thu, 10 Oct 2024 09:26:37 +0000 From: Liu Ying To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: ple@baylibre.com, neil.armstrong@linaro.org, andrzej.hajda@intel.com, rfoss@kernel.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch Subject: [PATCH] drm/bridge: ite-it66121: Drop hdmi_avi_infoframe_init() function call Date: Thu, 10 Oct 2024 17:26:43 +0800 Message-Id: <20241010092643.1048116-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SGAP274CA0021.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::33) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|PR3PR04MB7387:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c1db261-4d93-4062-c57e-08dce90da37b X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|7416014|366016|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: tyq81/19Jvyk07EBUOjtBTTEpTsfNUHGrUJEwVG1LygPwcT/IY7cGRWxdG6cz9yJz1t52qtoThle3Uq0/g2EGlkmzUxGMQqke26IB6bQAmKZm+ges4sTWxDeFRcoxj5LJj3KSrTQ+XNh7fnbltPyMP9DeEmYLZSaj4WX+xyhPO7kLJKqeZiz7f3FbKVpaRY9m1YlAknG5FdwKTjNmVj8xYgy0pkTuDgURHg77X8GtoQY80wLF+ZSubnLAkF7bwPrAzUw770z8uv5fZenOnV7dEdu6GJxYtfYLWmFNsUbd0qYc9W9DQy2yjUkWhjZMQkEWvX2Cx7zPZXLm0tN9orPKm0IexfCsyjRmoDS1jnFOqWTv4JrqoCBjeBy92Lmn/s4tk/ML6lVQlxMW1IIkrE7GJUdpTS8N0E/Wdh8fD3wLfMLwitAriqQ9Cd6li/T9BhlcTCr8qYw3rJQ47mowqopPHIMv8cJ2PW8aU1V0rfe8OZdIrMpE6Zn/FjBHs46nJZLwZ8wb4bNp7rStnTNkK0YylrJ13PwHnuEjUGPsk+l/92sDAXerVqQcitoXygJ+TY7vgd+lMdOTSFz7RHThUFKjSFmoDRmZs1OJmDwD7ovAvmJYFXvngSTIC3+1uzaoPyIr1ENiWIMaOe80EiITxSNq7JphAinqgxscxgm+uKDgWiKCRy1p5OTfDc+0+DtsjctXJKvEAa8M1mvyzPrb2dFAy/z3gL5F+hTaVO7/5OVdWr+DKVuIR+bG9oQvGcBCT4TG9ikS1EHJ16yYLwlMmUSt9X34GApgz/0BMj1FE88FiQc8cVINDYBsAYDVAN0dptuB7tJy6y52NGv1lFOYfSyWhJUxcVt9Ca5mTqByAza5/ZIbKfGJ2UC8BuWe7guS97uzB/9ULvtFZPZg+LLr0yAxdFupamqSvkmlJWirR+6ECgkVda3M5jMEnUWIoF3zosffPPGpA2IOrO+sKVZUF7tBrBZ1jpyiJB5Hg+Zq92drcYDz7axuNhJwiidqoAw9S+J+gCBh+ATRHW5mB5iu/nUQ/Plk0PS7Vnq8zm1AALVSDdms3DtgcaJS+uzFBCB2yEdtkkVc0pk/EiA7e9hPuq9thjNl4pURGL8HBMWc1PwZ/r7ty0ifP5E3MeRTPH2z4Vbk2Q/AVOHWseOSJMN6JibPEyQA0EuB+8IFd1BPqlllKiTjX0ZkTPP+cNKfpxiHyrMZWufnaVLp3STvmdN7ZRvIj3KM1HNasRAczNpeDH3tkNTvE0sL9fv1uAe9TN+0Ed1cEktsQaXBTqat1t3ClAIdmIHOlXojPhMY8wTq1RTxd4CT3tAlaoVe54PEVD/fcQKhQ+CsIz6NkId1ojOz6JfJw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR04MB7046.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(7416014)(366016)(52116014)(376014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eHN/kS4UfTGsbpjsK6reFe3HRhsX3quQ7vx/5JdGXskQRrlb/fmmJT9BOcyFX/4FibbHOdhTneF7xgwT3qtyLb9JAKQIIFVb8939BMtd6mrBmVdNdNfJemrhCmr2ZsqbbculI1yLt6la25PYLohEud9TGv6TzWcP2dPalOt/kvESvRCgJo/0kLN1oGJ5Cqn5b3MVqd/878k4DL3Vyaoms7zK2Tl89MohDsFasxFULV1crgJ/b8QfDAry38JAR6/vbOfOGirq+4PrWegFp6daGdBOxmyafICjBAnUgnwrKgCPRvX4UBpxoz6lYb7IyvX/Tcr8eDwIWt0AIGwXmtKCQHuEM9aMtFIdJ8lxWbMantn4BKtRTxtiHK5yQfVHf32AMwuou1kAbWjNkP+B2EMQq4YndStaBWihVlGYm4NjEsEZiKzPKVAxNtnBO0d8l56u2B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Cap2evez+6NkajyBknmlSiiCnFVb2DBaLl0MvmPjFhpILvn3pIksGlb0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c1db261-4d93-4062-c57e-08dce90da37b X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2024 09:26:36.9981 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KYgNAEkCKO6m1UjHTsynxRrgrsVmKVDt0PVD86Bj5MFamwO4jxA1aWxxNEH5aUWYDen+kVToXRz1ps58wvIwxA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7387 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" drm_hdmi_avi_infoframe_from_display_mode() called from it66121_bridge_mode_set() already calls hdmi_avi_infoframe_init() to initialize an HDMI AVI infoframe. So, drop the redundant hdmi_avi_infoframe_init() function call from it66121_bridge_mode_set(). Signed-off-by: Liu Ying Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/bridge/ite-it66121.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/ite-it66121.c index 925e42f46cd8..35ae3f0e8f51 100644 --- a/drivers/gpu/drm/bridge/ite-it66121.c +++ b/drivers/gpu/drm/bridge/ite-it66121.c @@ -770,8 +770,6 @@ void it66121_bridge_mode_set(struct drm_bridge *bridge, mutex_lock(&ctx->lock); - hdmi_avi_infoframe_init(&ctx->hdmi_avi_infoframe); - ret = drm_hdmi_avi_infoframe_from_display_mode(&ctx->hdmi_avi_infoframe, ctx->connector, adjusted_mode); if (ret) {