From patchwork Mon Oct 18 08:47:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Ser X-Patchwork-Id: 12565363 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 91CC2C433F5 for ; Mon, 18 Oct 2021 08:47:43 +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 6141860F02 for ; Mon, 18 Oct 2021 08:47:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6141860F02 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 3C57F6E99C; Mon, 18 Oct 2021 08:47:41 +0000 (UTC) Received: from mail-4317.proton.ch (mail-4317.proton.ch [185.70.43.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 04E976E863 for ; Mon, 18 Oct 2021 08:47:38 +0000 (UTC) Date: Mon, 18 Oct 2021 08:47:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1634546857; bh=Jx0zqIs5J+6c24AqW5pjPuGzBZVQzXp/EKgdk/kIofA=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=ULbcMOroDHSJJ+13v4bZUf+sAUWy7AAzcI5wtlYtrZrH6c42tuzV2I+BR5wwLlrW2 CGJvPX9Z79dtIIJW4dic1UQn0EnGZoI6D0TUtpT5lOVAGOaScll455qKSBBj5HXfyG 9IBZtrmwv4vdMn63UcZ/ado9GMXazK+GefD5sTeeFWuq8pwIc8/ERrymKCf5F0oq08 BIhELUWtwgWW51xbidMyNPePX3VyU2Hb7jLYzDhM5/ewwZIITVpTbC3v96ceeaGpjy 9X5JGnMthtbS5SUCIE4zrZzj8QMNsOLloaseHeyxu23h0i/kmnOs7MnvdwaDdxzXH5 7TtmD0WlPiSfQ== To: dri-devel@lists.freedesktop.org From: Simon Ser Cc: Sam Ravnborg , Harry Wentland Subject: [PATCH v4 3/6] drm/connector: use drm_sysfs_connector_hotplug_event Message-ID: <20211018084707.32253-4-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" In drm_connector_register, use drm_sysfs_connector_hotplug_event instead of drm_sysfs_hotplug_event, because the hotplug event only updates a single connector. Signed-off-by: Simon Ser Reviewed-by: Sam Ravnborg Acked-by: Harry Wentland --- drivers/gpu/drm/drm_connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index ec3973e8963c..a50c82bc2b2f 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -547,7 +547,7 @@ int drm_connector_register(struct drm_connector *connector) connector->registration_state = DRM_CONNECTOR_REGISTERED; /* Let userspace know we have a new connector */ - drm_sysfs_hotplug_event(connector->dev); + drm_sysfs_connector_hotplug_event(connector); if (connector->privacy_screen) drm_privacy_screen_register_notifier(connector->privacy_screen,