From patchwork Mon Oct 18 08:47:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Ser X-Patchwork-Id: 12565367 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7CBC5C433EF for ; Mon, 18 Oct 2021 08:47:47 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4CA9960F02 for ; Mon, 18 Oct 2021 08:47:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4CA9960F02 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=emersion.fr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8113A6E99E; Mon, 18 Oct 2021 08:47:42 +0000 (UTC) Received: from mail-40136.proton.ch (mail-40136.proton.ch [185.70.40.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 805BC6E863 for ; Mon, 18 Oct 2021 08:47:40 +0000 (UTC) Date: Mon, 18 Oct 2021 08:47:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1634546858; bh=AqZrLz2VN/83fP01hhtFuIxcRXjNQUIEhxswPOHOGis=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=d71doQL5A42fl/CdgmBYCVjleamLp5nXyrGaQjXzAAAogJvKpBMzAXfW5lFreU/VN fIBa8vBXX0eQRWaWpjx3dUofA+IzGDMq3sp85iL91r0DGVI6vTscDbmzJyMOUH+jRj 3NHMTjRE0MHcpr9zOlugkweQmu8snTUX6pJDfuX4hoOj9TNQZbzf1RBU3AhIGFU3Yr SOvCf51RCLAkQQo8yMcbxkn3wPjLYn3skLBqSIf6qnip0eYJYUVMxDGH17+RPsGQVM WMF0CnvsQvN5lrfGDcGJz9bKVT9rpsAz6eWPFR/Z6N1m3qmfR4hYkrytXM9sBRNl5W Hh8ioN5D7fNHQ== To: dri-devel@lists.freedesktop.org From: Simon Ser Cc: Ville Syrjala Subject: [PATCH v4 6/6] i915/display/dp: send a more fine-grained link-status uevent Message-ID: <20211018084707.32253-7-contact@emersion.fr> In-Reply-To: <20211018084707.32253-1-contact@emersion.fr> References: <20211018084707.32253-1-contact@emersion.fr> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Simon Ser Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" When link-status changes, send a hotplug uevent which contains the connector ID. That way, user-space can more easily figure out that only this connector has been updated. Changes in v4: avoid sending two uevents (Ville) Signed-off-by: Simon Ser Cc: Ville Syrjala Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 04175f359fd6..8b81a709d33b 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -5263,7 +5263,7 @@ static void intel_dp_modeset_retry_work_fn(struct work_struct *work) DRM_MODE_LINK_STATUS_BAD); mutex_unlock(&connector->dev->mode_config.mutex); /* Send Hotplug uevent so userspace can reprobe */ - drm_kms_helper_hotplug_event(connector->dev); + drm_kms_helper_connector_hotplug_event(connector); } bool