Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp443808lqp; Tue, 11 Jun 2024 08:52:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVR2pW3tLiGkMKLJbTE1NgnYXE/FuXrg/Eza23g9ygGJo93uZDLE7Gn80lVvRfpQrbM9B5dGP8e5qM7h4GorBDevPLfDRmutuuD0VNRQA== X-Google-Smtp-Source: AGHT+IFShMFYOHx9vRalUwwQ6sLwJsu5JOQF/c09T55SqRG6e9ABSJNV13eIGDrhreD0Ux3+NyYl X-Received: by 2002:a17:907:1c05:b0:a6d:de5b:5b1d with SMTP id a640c23a62f3a-a6dde5b5d36mr1216431066b.18.1718121146876; Tue, 11 Jun 2024 08:52:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718121146; cv=pass; d=google.com; s=arc-20160816; b=c9NNH3mDoHeqI0ZOAoxi3Y1qP6CCPdyEZ0o0/AZlDvL/vEKK+mAD/ViOzjDMM60UyU NfFfEOebxo4U55yT8UhyBP02vRwHYbQfg+cPqR0dAK0HIWEYs6ZfMZ6dS2Ywkig5sM1g bR3fI2SzrEYmsEL0p0NGm8s4B3CW/u5HQKosyMkYPfE0XMm0Hkkkns37tk4qoF+PZEcx Byv/pxOKidkctIyWna58V91TnPde3DMfLU3tLuU9Z3v6zS59Dph4fJ9cYiLaLmkswbZP BN/JRzeWbIntWDd7DT4dNbp4tI7z3FJ1G82CgOIbg8Wwn88NMfjBzZs4o1E67MUiQdOZ bQyQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=OS3NU+RvpotAQqpVjqqkbRKiRgEhuSmytUWvvgOanmg=; fh=RlYB0Y2md8rdYnrKVoTlrEmdiF5i9yjfnLS+nw4nIUU=; b=ec+OUvwGYB1CdxSE4LPcaWscnjOe9r8QB/9w1CDQoJ353MrVuuc0IQPlKj4Z9DauQU 8CzCoKqlU+sw/LYillPNPVg06t4KIxgcgNtGScY3bHcUz9YX5tKQHIFGSBGqs4gwUc1r 1W2avekV+f2SNq9i54FCjtgbzEqpJAy1RaVcNS5Vwt0x/sApBgEIWG+RrHWU+dMiwpN+ yEXdqjJzC5HeMD3B3TOcQu2E85Uj5fGpvwzsCtXt1Eno4+Wrv+VQ9bH49lDZyXTKsekj 9NBLJP0C4GE4bO7JYuBC87ZU11Ji9nc0vkO/uO1507sApFQUssJYMX9+0hQRAad6UEGx gSFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=v05AxTpp; 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-210182-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae265995si6222929a12.557.2024.06.11.08.52.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 08:52:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210182-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=v05AxTpp; 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-210182-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210182-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9512E1F230BB for ; Tue, 11 Jun 2024 15:52:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7758B38FA0; Tue, 11 Jun 2024 15:52:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b="v05AxTpp" Received: from smtp.forwardemail.net (smtp.forwardemail.net [167.172.40.54]) (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 7505B38F82 for ; Tue, 11 Jun 2024 15:52:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=167.172.40.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718121122; cv=none; b=EGEnsx5twh37II5NaS6yHDvI+Gc3UdxDNJgPNcDA2jEPbJwV+mjKA+GhFCeB9ROWCQ87VWEmqwAS8yriAOMshp2+aefaRRX+DEBFLEpKqQBehMzGGnS6E7MEOVpSEMI8Br01ejmdI1a1pchKm4yeQUZ/0tORe9w0ksFHolRLTGI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718121122; c=relaxed/simple; bh=jjoPpoRjL3DOZo4yXBvOoton5pxjTMU09QetBxLUSxY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kBKHchrws2jh6euF+7ScZCbLFGYMsjMRQs3abeB/1OvR9yqV9g/c4Au9w3B8sxKcY7a5PHw94JsbLXsuHg94pz7GnG7qY/E/jCaYHkRdWDHax4WRq1pXQggnk1tkVaRtt1OpLA9PhBmkjc8d0Jz4fmsGegRq5Z92D5+utUY51cM= 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=v05AxTpp; arc=none smtp.client-ip=167.172.40.54 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: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1718121105; bh=OS3NU+RvpotAQqpVjqqkbRKiRgEhuSmytUWvvgOanmg=; b=v05AxTppFIZAnx6pivBSAocoIXCSk72tNXct89QH0vLTjj2N9Fedkxsim6hpGp8t/La0s9q9w rPBOve6d6peAr5cnMtsANUd4VvCRUjgHfYSXwdC8zrackxQDlpj45/pMcIvn9jIQYkAnxRzeK3h dm5FHbTTMrS7sIEwtzESyymn91LsZUW9Kvi4gs+R1peWmsvVUnmrnrTHPz1lwb/iDlcNTYUPhzd OfA7Q3/zB6oBogbX4K7t1RUWp+Ha0JisskoPqNzdYnp9yWSAQnrR9xFwDiemvfipKTWcIGCcfU5 apGdY+6rX8Lk5+F39j+82pbynb2zHwR2PhRFKEdYvE1w== From: Jonas Karlman To: Andrzej Hajda , Neil Armstrong , Robert Foss , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Laurent Pinchart , Jonas Karlman , Jernej Skrabec Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/8] drm: bridge: dw_hdmi: Remove cec_notifier_mutex Date: Tue, 11 Jun 2024 15:50:58 +0000 Message-ID: <20240611155108.1436502-7-jonas@kwiboo.se> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240611155108.1436502-1-jonas@kwiboo.se> References: <20240611155108.1436502-1-jonas@kwiboo.se> 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, 167.172.40.54 X-ForwardEmail-ID: 6668728fb913b04293b6dc8a With CEC phys addr invalidation moved away from the irq handler there is no longer a need for cec_notifier_mutex, remove it. Signed-off-by: Jonas Karlman --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 0814ca181f04..256e00a97a9a 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -189,7 +189,6 @@ struct dw_hdmi { void (*enable_audio)(struct dw_hdmi *hdmi); void (*disable_audio)(struct dw_hdmi *hdmi); - struct mutex cec_notifier_mutex; struct cec_notifier *cec_notifier; hdmi_codec_plugged_cb plugged_cb; @@ -2459,11 +2458,8 @@ dw_hdmi_connector_detect(struct drm_connector *connector, bool force) status = dw_hdmi_detect(hdmi); - if (status == connector_status_disconnected) { - mutex_lock(&hdmi->cec_notifier_mutex); + if (status == connector_status_disconnected) cec_notifier_phys_addr_invalidate(hdmi->cec_notifier); - mutex_unlock(&hdmi->cec_notifier_mutex); - } return status; } @@ -2577,9 +2573,7 @@ static int dw_hdmi_connector_create(struct dw_hdmi *hdmi) if (!notifier) return -ENOMEM; - mutex_lock(&hdmi->cec_notifier_mutex); hdmi->cec_notifier = notifier; - mutex_unlock(&hdmi->cec_notifier_mutex); return 0; } @@ -2877,10 +2871,8 @@ static void dw_hdmi_bridge_detach(struct drm_bridge *bridge) { struct dw_hdmi *hdmi = bridge->driver_private; - mutex_lock(&hdmi->cec_notifier_mutex); cec_notifier_conn_unregister(hdmi->cec_notifier); hdmi->cec_notifier = NULL; - mutex_unlock(&hdmi->cec_notifier_mutex); } static enum drm_mode_status @@ -3303,7 +3295,6 @@ struct dw_hdmi *dw_hdmi_probe(struct platform_device *pdev, mutex_init(&hdmi->mutex); mutex_init(&hdmi->audio_mutex); - mutex_init(&hdmi->cec_notifier_mutex); spin_lock_init(&hdmi->audio_lock); ret = dw_hdmi_parse_dt(hdmi); -- 2.45.2