Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp334659lqs; Tue, 5 Mar 2024 03:38:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWyIPykqdO2LUMl/lxb+HOvy1iPPMpcB31t0RtM9KjWPYtao2Z1WPSC9IZGtE5l114G3v+zBOqKWSt39RyQVFs7gXko+m1EQs+O16riGQ== X-Google-Smtp-Source: AGHT+IFCbd04nOPVBwnX8EGo7K9eWG9ETRzaNJSGJkK9qIGQfCu1OmL1ctFh249I7aQN1wYFRVSA X-Received: by 2002:aca:1014:0:b0:3c1:f395:9d0f with SMTP id 20-20020aca1014000000b003c1f3959d0fmr1369538oiq.45.1709638696597; Tue, 05 Mar 2024 03:38:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709638696; cv=pass; d=google.com; s=arc-20160816; b=M8XNnN3lU6Vn5NZog5/oeFg8QQRuG+gswVh93HWWevuKBFzoPjM13nbGq4m+hL3qW8 QMzI0HjzGJv6ohfrh26JW5WsDP4vNl3QIH54bOrv5OQUefNSONcGHSSoqaZP//e5vMbZ AEMAluRQOzNYU0/GH75xvTF+QdJLNRwg0svLE9amgXHzVX0FfwHBYGjzG0lnuWxLobWL m6gJiGp0Aypv3G2jMxxiYgEucdpphIAZt2dv9De3N2bWM1u2XUHTcJoJ2d6HNOqbl3y5 IhHJ6T5NbyNrO1lFsy3nka35bXpj7KeJbVi2nQX24UUib8kCU4laFF9gAoRZcCao+T+x Ozhg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=S6lk2VSf0du4ELFj1o53K00Oxr2xrvdHE8vh0vkwTlg=; fh=yckZYbZL1Va1ZncE+kgV5JOXHomTuiUz0x6VWmQhecU=; b=YXTEzraiWCi3M7Ima45cn+f6bRL0AQZNZwV+Lz16g51i8cxzXjTDqVuYn4HxzM+di/ 9ZB9DyzxLna/CI46B7TFjQiGdhFm3ZKYpFqTiCXtJIbpZH9+vBVBggrCT2Fj6LqQDbfq Zcb+HuqPMr8qCQmeVgbsVxv04vPNWAtI2nBzw1zEQYuWPCGzxoSbZ3pWx3JRG6X3AriZ VpZlF3QWklxWyZQVzs0iyWrjx7gVzh0U4feFVejXXP0Jv9Ejyj2+ssx5BbFQpL1hQ9co tezRhJPnhejDk9ltgBTrWvCATy/Er5GUe25v0hs5TAinT1MAfuRLuBIJeU1rEijEvXB/ Amtg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kMzrVlij; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-92273-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92273-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m124-20020a633f82000000b005dc1b73dd16si9784004pga.372.2024.03.05.03.38.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 03:38:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92273-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kMzrVlij; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-92273-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92273-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 96B9C28B5A1 for ; Tue, 5 Mar 2024 11:30:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5174B5A783; Tue, 5 Mar 2024 11:27:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="kMzrVlij" Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (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 0E01758211 for ; Tue, 5 Mar 2024 11:27:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709638056; cv=none; b=OSVd1L+9wuX/a9/Ti3/CaowMaJDii4CeF2hn43+JDKgZdArhRW5zrOTEjGjJPJkfrihdOzQfP36wgO9/4ACY5lSqdDNqYdwutuivIdgWrbgRlOLZmJFNQk7ftRy0gsnlRnorIvZoFVgaZ7OZNdGkRcIRy34/dujdcif8AKkqaWo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709638056; c=relaxed/simple; bh=2WNnHztTUqQdcN20V9bA8+EOJpwgYApihwe/DDOcQus=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=ofL69WY9QylLVaW3fy0wmAFlbVxFPDHpVa+WGKmb4lQQfL69flZu7+HWPPmDlD1oULmeugps01ZDZOA5za2WWxiB4MPuXSiuB821mY0pNeFF8Yur+z4MlZ/knPgeFvdZVwG0Dg50FYAiZPZqEpxcgh08vBJRXx2iKYDT5xhKi+c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=kMzrVlij; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1dbae7b8ff2so25779355ad.3 for ; Tue, 05 Mar 2024 03:27:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1709638054; x=1710242854; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=S6lk2VSf0du4ELFj1o53K00Oxr2xrvdHE8vh0vkwTlg=; b=kMzrVlij1We+pFIw0M4/sKXtVppfpVCMzAvHPBo6pW4aiRmSTXsz3hNEDRYvf4QT7/ S5q2IY4WVfop3XnT5BEGoDB4BPEPvUIgcXJOHVk03eNETFCeeCQhgySj2QLY3A3cZ4zg PCGvFSY+fZrx9xqj9U2MZVp2dfn89+sXQcJDg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709638054; x=1710242854; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=S6lk2VSf0du4ELFj1o53K00Oxr2xrvdHE8vh0vkwTlg=; b=haZDGhdVYAOUsXryD8JqpHNjqLAKaqFL0JWP4FkKlGXxyX5bjZtwG8KHjRgjfnDtqS xHcZ3fgov2wQkYjJZOYEwFwa9L1G7MlHbqgJoU08ZHxwQcheIXfuRIQjyuaRXPnBcIpZ 24HcmMVjb4S1eDPPlRrJ30djRNtkEgFlfyA4w9bz+UpslX22PRkpJoBWu3W2b/0VXzzC 5r/uw1eZaqYLg+3MoqoIEOl0rgvADyeVfc5VXeVIWWbpmsKMGbyV5C3Q/uXnPn5GZGAW gehPVRc8QVVyBxVLlhitDF4mcVu3Wn7ww6ZwzxJycuswpFRLETTtSaM8Hn9sHddH/ROq Vl7w== X-Forwarded-Encrypted: i=1; AJvYcCVOSzLu7I/+DuUuyC929z+DJk2kCwOHYwcBj81Lfm3Nacy897tPW2Y7uCHUzME3uVGDfprMa2wwXbNASsF8rqQMQasO4ZzxrI+xbrCP X-Gm-Message-State: AOJu0YzcBXed/wkRetPf6GpSqsuZeEKYnx/0iN8ngWR/WlHZpGMMkoZm CKzzUuim1jiJtcwxYOUNDXanEU/W/di9zaxfgtQyXZq0UVVWfyPGSyHB3VHWEw== X-Received: by 2002:a17:902:e88b:b0:1db:d811:732a with SMTP id w11-20020a170902e88b00b001dbd811732amr1481426plg.37.1709638054295; Tue, 05 Mar 2024 03:27:34 -0800 (PST) Received: from yuanhsinte1.c.googlers.com (36.157.124.34.bc.googleusercontent.com. [34.124.157.36]) by smtp.gmail.com with ESMTPSA id c5-20020a170902d48500b001db9cb62f7bsm10344720plg.153.2024.03.05.03.27.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 03:27:33 -0800 (PST) From: Hsin-Te Yuan Date: Tue, 05 Mar 2024 11:27:26 +0000 Subject: [PATCH] drm/bridge:anx7625:Update audio status while detecting Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240305-anx7625-v1-1-83ed3ccfa64c@chromium.org> X-B4-Tracking: v=1; b=H4sIAJ0B52UC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDYwNT3cS8CnMzI1PdtFRDsxTjRMsUY/MUJaDqgqLUtMwKsEnRsbW1AGE vZz5ZAAAA To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Hsin-Te Yuan X-Mailer: b4 0.12.4 Previously, the audio status was not updated during detection, leading to a persistent audio despite hot plugging events. To resolve this issue, update the audio status during detection. Signed-off-by: Hsin-Te Yuan --- drivers/gpu/drm/bridge/analogix/anx7625.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c index 29d91493b101a..9f0d0c5b8ebf5 100644 --- a/drivers/gpu/drm/bridge/analogix/anx7625.c +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -2481,15 +2481,22 @@ static void anx7625_bridge_atomic_disable(struct drm_bridge *bridge, mutex_unlock(&ctx->aux_lock); } +static void +anx7625_audio_update_connector_status(struct anx7625_data *ctx, + enum drm_connector_status status); + static enum drm_connector_status anx7625_bridge_detect(struct drm_bridge *bridge) { struct anx7625_data *ctx = bridge_to_anx7625(bridge); struct device *dev = ctx->dev; + enum drm_connector_status status; DRM_DEV_DEBUG_DRIVER(dev, "drm bridge detect\n"); - return anx7625_sink_detect(ctx); + status = anx7625_sink_detect(ctx); + anx7625_audio_update_connector_status(ctx, status); + return status; } static struct edid *anx7625_bridge_get_edid(struct drm_bridge *bridge, --- base-commit: 90d35da658da8cff0d4ecbb5113f5fac9d00eb72 change-id: 20240305-anx7625-fe16d3a9d37d Best regards, -- Hsin-Te Yuan