Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp371967lqi; Wed, 6 Mar 2024 22:32:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVcj0L9HXvZywy1t4YpJzaH5YgiAqVZzzskYJAk0REZ15/zM4BtEysnSBayP+orDHmu5Agc5t5r1ojU1kg6AGiVFRn9smX2gswfx+je3A== X-Google-Smtp-Source: AGHT+IHA2pdZKOI49X34wjTRGEJOyzdDSjPArVFzT2o6K5RPy98Kw8MqbHSK1+w+4y4g7wLIepEl X-Received: by 2002:a17:906:4546:b0:a45:aef0:c449 with SMTP id s6-20020a170906454600b00a45aef0c449mr4307362ejq.39.1709793153656; Wed, 06 Mar 2024 22:32:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709793153; cv=pass; d=google.com; s=arc-20160816; b=nYUC2IDIJE618/zjiCOYaIcHJGMm8+r+ndePg3p88HP/xeRpUS1W9OHh/XB3fIhhOv 0tq9rPHCKYcKbopOKb6GlTj586HmJxMCjCpOYnvlwgHFvWP67f8kk6z9Mlhorhq2kn1C PyYlYPnZ8xTBEVxxwZ13ZgvuOOIma+YGDQ+6Ri6ajDL6V6fW41qr2Jos8nT5IPNEmEbY SdvMh9n0mesdwZp8JrF5dp3Kle9BcqffUdtlq9Xkyc52Q85NPFBWfZgITlUgc7kAdOWo yAQPPa194N8TR815K9Jmo04bkYDZM0hmFkTiKIXOnjJH+C4Y7SMYsOyDPDGbRa3pY7U2 E7+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=PJJx6XhDRfgPt/8OwU1WYfWX5sGRnhgvN/CrlZDuL1I=; fh=DLfOhBFC3Nh0V8Vr/W8pvjzD7061LUEV2dacWwsj8QM=; b=kWszP/Ui9/nHTPOhssed3/sqOq3uTQRlV53vooDz7CqM110qFYvQ/bWZ7FJTLJOsGN JfkwIfCE1EU0ESVCVpGmXh3kCNZbLAfGuxM340JB1gAJedUJGId7CoIESSsyV7lKideC JMPuL9QhsSGm5GrdPa3coz77yLI8AuKrZzFNiwFShu44bLFYiy5XDJWFiLxU6ghDh3Ym bpfeSeIbqvBGP3vUYd98iH4RgbINFprzYz+RwCQSnOnoUl/Ro06cJnGmmWKhSJlF+t0i U6IGJPQQ2GUQD8TC9gd8e5t7Xhoqu7jVTyeDKAyIdxotL/pqlzgx00gwTSTqM+dZEhNR zjdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="M9UMZa/F"; 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-95014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gb24-20020a170907961800b00a4493bc18b3si5857318ejc.403.2024.03.06.22.32.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 22:32:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="M9UMZa/F"; 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-95014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95014-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2F1671F279A5 for ; Thu, 7 Mar 2024 06:25:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9A8B1CABE; Thu, 7 Mar 2024 06:24:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="M9UMZa/F" Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (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 1B7591CA8A for ; Thu, 7 Mar 2024 06:24:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709792680; cv=none; b=ig/8Hf97WWHThc5ba6qUj1k50iOVlaPJLXiVsI+X9ztQ+rWEh7VaBoBGvujUUDy1nb3Oiyj6Z1g4b3kn1Ni5f79JppeokgQQkys4GOd+RFUZX7HQs3oz5l1qyXGNOWKpRvl8/gDEimDtO9lThcMBYzTwpj/XSOiXoSqUs6neNAE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709792680; c=relaxed/simple; bh=BhEIhzNEdJb6eH1u3NWSXY6vsbNzA8dmMw1+NV+QvqE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=W4V1RMKAZraQwFVVcV/nN4O5QcagXdsVMN4BYj1+HN8vIky70ae1KO+ZulelRrO9vLFE+41EnLInKipHH6rUFT2t6uSCGfUASvCZkTNfrUHkALuE2fTzhFc63+jbW7Qjk/FTmgOXB2r4I26AfoBg0gMZVeB1mPot6+xgOGJWI0c= 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=M9UMZa/F; arc=none smtp.client-ip=209.85.208.179 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-lj1-f179.google.com with SMTP id 38308e7fff4ca-2d3f962a9dfso4541691fa.1 for ; Wed, 06 Mar 2024 22:24:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1709792677; x=1710397477; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PJJx6XhDRfgPt/8OwU1WYfWX5sGRnhgvN/CrlZDuL1I=; b=M9UMZa/FOyXH7sre2zOAov7cQeeHozAIrb5a81LFagFBZ1HJvszWMPbAJ1kMaYTmpS M7UH3Q+snyZ9CMCQfRTpS3fA4USzmjdU0ZtjSj3wVe1rSwVc8XDtBv8KJYT8yRmn9s4x MUfIQ3+imciOiNbfV6f0JWkERrtwzowAQ90SQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709792677; x=1710397477; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PJJx6XhDRfgPt/8OwU1WYfWX5sGRnhgvN/CrlZDuL1I=; b=vOMKDsJx4k4P3ev6b+EyDI503IVI4fitgAYSAnd5vgYbIaR2mlF1KYKqbhxiOFhGu3 grD//btJ93nd2PW+tp0c7FOPYaSEVeIo6tetQ/cUzRgPcH/r/ND4pAaFfzPuwSrJyotX TIFhJ1HMIS2yjUXjkFOjn/8niyQ3x4TItGC6woDJJzBAsgcWI17ajwKSag8GGfVE8uAS Zg7AWsxnsTz053iHwueK8QYvev7Jvm5nb3YKQu6Y8h+/FjANhKyAReM96SLC9JgU3iMJ BuXjmGE5vhGheLTWwyH5WbqzKYxL9IbDji7x5Z5EBIWgtKkluxxKyztBJSjJdiAzaXP0 0EYA== X-Forwarded-Encrypted: i=1; AJvYcCWCIghakh44ql/ZQ3WhuqQkDpUfbq4ixQbVGbAl/Q1p3ZYrA2UbZA0oieg0ZapD+/lwUg/FDyPwTTwCSnz2SHFFy/8ERvL0W1wXG03J X-Gm-Message-State: AOJu0YwD2ktK0kcJGqOlu4pIr7PgdeIPSX5s5T5IEFwl54m+KGhlbx+7 jztilPVJlKa3hePTWZeuS8iRrqz+z577UTUzpD9XtsQvazjUzg+O/sPk5mrmmaSb1rotdfbHByB aysrp5FNdtbUruhXQ2bkhlswO/mSn/7+1RcD/ X-Received: by 2002:a05:651c:198c:b0:2d3:ffa0:8782 with SMTP id bx12-20020a05651c198c00b002d3ffa08782mr718856ljb.43.1709792676971; Wed, 06 Mar 2024 22:24:36 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240306-anx7625-v3-1-9034263bf530@chromium.org> In-Reply-To: <20240306-anx7625-v3-1-9034263bf530@chromium.org> From: Chen-Yu Tsai Date: Thu, 7 Mar 2024 14:24:25 +0800 Message-ID: Subject: Re: [PATCH v3] drm/bridge: anx7625: Update audio status while detecting To: Hsin-Te Yuan Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 6, 2024 at 5:59=E2=80=AFPM Hsin-Te Yuan wrote: > > 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. > > Fixes: 566fef1226c1 ("drm/bridge: anx7625: add HDMI audio function") > Signed-off-by: Hsin-Te Yuan Reviewed-by: Chen-Yu Tsai > --- > Changes in v3: > - Add Fixes tag. > - Link to v2: https://lore.kernel.org/r/20240306-anx7625-v2-1-7138e00b25b= f@chromium.org > > Changes in v2: > - Add a space after the colons in the subject line. > - Link to v1: https://lore.kernel.org/r/20240305-anx7625-v1-1-83ed3ccfa64= c@chromium.org > --- > 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 =3D bridge_to_anx7625(bridge); > struct device *dev =3D ctx->dev; > + enum drm_connector_status status; > > DRM_DEV_DEBUG_DRIVER(dev, "drm bridge detect\n"); > > - return anx7625_sink_detect(ctx); > + status =3D 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 >