Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp450118lqp; Tue, 11 Jun 2024 09:02:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU0sRWQOog+viYzifSr7f+tRVnEOIdtnHnTpETib1yajaiq40mcOh8n5C7A1dposGDOrrakm9mNjcvrkSeVrBn/syGbSHE6gASwhwOLwA== X-Google-Smtp-Source: AGHT+IHCwCSF2LxXgpSQpm+KvZRgE9mYpY4PHaG+qItBrCHSZIlQ9WwRui8cGkxGuyPI0BJuV8mz X-Received: by 2002:a17:90a:ec0b:b0:2c3:195b:dc36 with SMTP id 98e67ed59e1d1-2c3195bdca1mr4535295a91.10.1718121760856; Tue, 11 Jun 2024 09:02:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718121760; cv=pass; d=google.com; s=arc-20160816; b=Cz88q93Hnb4Z+Eycf4eOn9ykfUmvsNHNOSKeWrfFs7eX6d61R7xhEM+tftZuJAPW+L L7ohIz+b8Hy7WROHcJcamesqGZ5q+QX48jhwLcTcXJpANsFHdsXkeJn1xhRMVYkFTjyl 3dzJS408HaBrcJ5W3e7r1NFKYZJKQzC9QdSfGzi/FD1Q0RyY9pqPilMQc66d/cRjqcLR /zBOa3cfWXb7VRGEfpNqEQeNRsuWlpJ1qN6BWBPxs+n/8EMZnGtGuNogjZz3lffUXbGK QZXfJyNwM6g6qlASmOYz7C0J4EQnb4m1XA6awxcpuDpAO+vAAf9e87h/bR1QjKYsd/mn 9crg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=I7oWEAwMzJYg1QixLY8LSRS5H8hWf0Fter8AOhPGR/A=; fh=pu04gZyy29frc0kC8+AWDnJ8MoNZ8MUvXf89EhUhwGs=; b=xWx0Pg6XmPcbWA4CPB/W0k+fKvpQ4oXiNV/7ew04SUWC25K2luEBE6w4+yIZq9D7o9 ZDT+yLlhQ+Dha/KzCzxRxwIoA6LSO2lza3RvfaS0szD3b+DM017SySIfWjndU8c+2WAn JHAFAh2yid9E9yJQHBXbj8KcnUAsDtHtNZ3hXXPceoP+DisppujJFIHiaSMEGPHjnWoE pnlivsxAxfLx7nM/IbsgdXH8OOdDF7gHkrT5YPGxNAmqOYc68dTqtwgI8KbNhujQYBIu K+SpKbpHbDk71d/pa8ffey8CrLG3icRTg5ap1t0DT85lRSiHrggENugnBC62l0xInNfd fI+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=Lw8jFDwg; arc=pass (i=1 spf=pass spfdomain=fe-bounces.kwiboo.se dkim=pass dkdomain=kwiboo.se dmarc=pass fromdomain=kwiboo.se); spf=pass (google.com: domain of linux-kernel+bounces-210195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210195-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c32fb2eb32si1595606a91.0.2024.06.11.09.02.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 09:02:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=Lw8jFDwg; arc=pass (i=1 spf=pass spfdomain=fe-bounces.kwiboo.se dkim=pass dkdomain=kwiboo.se dmarc=pass fromdomain=kwiboo.se); spf=pass (google.com: domain of linux-kernel+bounces-210195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210195-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4907CB21CE4 for ; Tue, 11 Jun 2024 16:01:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0FE2539FF4; Tue, 11 Jun 2024 16:01:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b="Lw8jFDwg" Received: from smtp.forwardemail.net (smtp.forwardemail.net [149.28.215.223]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E1E017573 for ; Tue, 11 Jun 2024 16:01:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=149.28.215.223 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718121686; cv=none; b=cXIfKtdveKfgNp68FhJcjsboI5RfvD/dzM9TIlxkpidaf1HYOF9n/xi4M/AJiWHYbKzL9V0YGeQjzuw1dm6MbKTISytiNkNHTJHD5vKMNULHq9/X2iH5S5LomdBXZE8Eou69+DAu2QXkl5PzJWdDqC1BXJj2C46RzmXaiMTvJv4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718121686; c=relaxed/simple; bh=7pfp+sizd1qY3YGfw+h97mXb47b114LQiCfVfiIjPEU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uK4+HLs2U7Se5hPmq8R6loDFHDmMH+d1Qr/C9sxvbr8use/V9hF3tqypHCNZWkohMKRHpOglK8ONSYmpFSlljuz8X5NEmM1TRER4yVFVYMcBeWa3tVYt310EDzkg8AOj8daAIOIxGs4LtidmyYrtsPo9a9JkwiJ4qszafV2IJAo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b=Lw8jFDwg; arc=none smtp.client-ip=149.28.215.223 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1718121682; bh=I7oWEAwMzJYg1QixLY8LSRS5H8hWf0Fter8AOhPGR/A=; b=Lw8jFDwg6qDCtV07qf8YqddnAPL/h7HQp/ZTs1DParTTyZcs7fWnrqVukbyo81BRKO7jPp9LW 4HpV0KyrIfy/qLGEIBLgWs8IPIs+R7SyG8Dd8JIdnUjMNzO97VsEljOIoQuIHelvA7ACzxaY/fA AF9/g+Z+HzYQtYt8+kXPSTIfPvzpYlZBkz898Uh35/AlZgOM1NMr7w1NbqMeaqTWpK8IlbU4XVn x20nI9ACQSundsIq/mGLJncdSY77A/er7xbiBfkjRzc62f10r1XNKeCtclTBicAmUdS6sg6pwZY FO4WPpb250iViboPKFmwmbsfsqnVwmDM6FkFrj7E1vOw== From: Jonas Karlman To: Andrzej Hajda , Neil Armstrong , Robert Foss , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: Laurent Pinchart , Jernej Skrabec , Jonas Karlman , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/8] drm: bridge: dw_hdmi: Misc enable/disable, CEC and EDID cleanup Date: Tue, 11 Jun 2024 15:50:52 +0000 Message-ID: <20240611155108.1436502-1-jonas@kwiboo.se> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 149.28.215.223 X-ForwardEmail-ID: 66687273b913b04293b6dc1e This series ensure poweron/poweroff and CEC phys addr invalidation is happening under drm mode_config mutex lock, and also ensure EDID is updated (when the dw-hdmi connector is used) after a hotplug pulse. These changes has mainly been tested on Rockchip devices together with a forthcoming series that add HDMI 2.0 4K@60Hz support to RK3228, RK3328, RK3399 and RK3568. Rockchip use the dw-hdmi connector so this should also be validated with a driver that use the bridge connector. Jonas Karlman (8): drm: bridge: dw_hdmi: Call poweron/poweroff from atomic enable/disable drm: bridge: dw_hdmi: Use passed mode instead of stored previous_mode drm: bridge: dw_hdmi: Fold poweron and setup functions drm: bridge: dw_hdmi: Remove previous_mode and mode_set drm: bridge: dw_hdmi: Invalidate CEC phys addr from connector detect drm: bridge: dw_hdmi: Remove cec_notifier_mutex drm: bridge: dw_hdmi: Update EDID during hotplug processing drm: bridge: dw_hdmi: Use display_info is_hdmi and has_audio drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 145 ++++++---------------- 1 file changed, 39 insertions(+), 106 deletions(-) -- 2.45.2