From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E9CE188A3A; Thu, 3 Apr 2025 15:27:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743694031; cv=none; b=HIczmll+9RrJhQi25MSFqP4S+oaRoErb/prT7erBBbCbSo7aQmr1JwBNiFRrDUc9ymY6/MYs9jdtU7TG0/DFsbf4/PMmD1g/bhnC0JF8a4GszmI4HLnTUYB15WkPyXjrPrqmVMvCVhbd5sdrA9InCgV6ripDp5jtRTQlDegLSTM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743694031; c=relaxed/simple; bh=x7yJljl0FuX2ULe3/tWYYeMQDlKJ7Z0cfPoDXlt0Aj8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PInwUHdKE34eb69Z82Jukm6sh5TO8U170krgz3nbp2H1zUpyftDjHaD6JrFTOkmyLnB/XhAT8NabThEcd6sdIbtSIH+b3q+gjKCam0znS+g+1WsOownAPj8sAuMn60/7Kl+bZ5xwAk1GYzhtGOaep//pnNkPYB9p6KQpubgMTEk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xffhSyde; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="xffhSyde" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 296E2C4CEE3; Thu, 3 Apr 2025 15:27:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743694031; bh=x7yJljl0FuX2ULe3/tWYYeMQDlKJ7Z0cfPoDXlt0Aj8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xffhSyde6MpnWDahBk3sGvwdQsLv8m0th96RVfVnn1SmaxznFjsmQDP1uvzZaucLh OWRSNL6Wlpk1wVT9oVgRc//Gwrcp0jzVTU7ZukNTmwkO2VLuEOZcZ0cpPf5CQidLZK bB1lZBfuwEVH43QfS13BdJf7vk9KPchmNQmIw38k= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Lyude Paul , dri-devel@lists.freedesktop.org, Imre Deak , Thadeu Lima de Souza Cascardo Subject: [PATCH 6.6 08/26] drm/dp_mst: Factor out function to queue a topology probe work Date: Thu, 3 Apr 2025 16:20:29 +0100 Message-ID: <20250403151622.655368926@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250403151622.415201055@linuxfoundation.org> References: <20250403151622.415201055@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Imre Deak commit e9b36c5be2e7fdef2cc933c1dac50bd81881e9b8 upstream. Factor out a function to queue a work for probing the topology, also used by the next patch. Cc: Lyude Paul Cc: dri-devel@lists.freedesktop.org Reviewed-by: Lyude Paul Signed-off-by: Imre Deak Link: https://patchwork.freedesktop.org/patch/msgid/20240722165503.2084999-2-imre.deak@intel.com Signed-off-by: Thadeu Lima de Souza Cascardo Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/display/drm_dp_mst_topology.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/display/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/display/drm_dp_mst_topology.c @@ -2692,6 +2692,11 @@ static void drm_dp_mst_link_probe_work(s drm_kms_helper_hotplug_event(dev); } +static void drm_dp_mst_queue_probe_work(struct drm_dp_mst_topology_mgr *mgr) +{ + queue_work(system_long_wq, &mgr->work); +} + static bool drm_dp_validate_guid(struct drm_dp_mst_topology_mgr *mgr, u8 *guid) { @@ -3643,7 +3648,7 @@ int drm_dp_mst_topology_mgr_set_mst(stru /* Write reset payload */ drm_dp_dpcd_write_payload(mgr, 0, 0, 0x3f); - queue_work(system_long_wq, &mgr->work); + drm_dp_mst_queue_probe_work(mgr); ret = 0; } else { @@ -3766,7 +3771,7 @@ int drm_dp_mst_topology_mgr_resume(struc * state of our in-memory topology back into sync with reality. So, * restart the probing process as if we're probing a new hub */ - queue_work(system_long_wq, &mgr->work); + drm_dp_mst_queue_probe_work(mgr); mutex_unlock(&mgr->lock); if (sync) {