From patchwork Fri Oct 15 16:33:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Ser X-Patchwork-Id: 12562509 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 A2137C433FE for ; Fri, 15 Oct 2021 16:34:05 +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 6A37E61242 for ; Fri, 15 Oct 2021 16:34:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6A37E61242 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 0635A6ED85; Fri, 15 Oct 2021 16:34:02 +0000 (UTC) Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) by gabe.freedesktop.org (Postfix) with ESMTPS id 466636EDA3 for ; Fri, 15 Oct 2021 16:33:53 +0000 (UTC) Date: Fri, 15 Oct 2021 16:33:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1634315631; bh=XLIJ55ALy/8LCOy7rJgXHOmSSFsu4ET0domvXc9V4Dg=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=zBy5gvoudi+M4pgSf0t+jx4GL1Yw9q2Q0+BYvo91gPYlKPTYKjVsWTcgAu7L24fPA 0iWlSKoAAsakpghGNuOyD/Nbr1J5+w+UWgvu80o8e4jxXustongN6jd42l8bivpihO xbvIdvhzL0WR5rduZllwcFltDcMskbc9a7HfrnDcIgw803IIsj14uxmo0yoDQrGzzq eDjcdsZc7lwKXmwiY5u2mIfWCsY1xpO6qkweTYkus7RwRlbvODh7WAoT2Bgkr2ID6g ttGgzvF5JK1KvWED4F/S6Cb3ZvFq5RR3Nw5CR3LxAJmP5p74VM3XYpuX5LCtqRa4YF 8nOJgOpnnmVcA== To: dri-devel@lists.freedesktop.org From: Simon Ser Subject: [PATCH v3 3/6] drm/connector: use drm_sysfs_connector_hotplug_event Message-ID: <20211015163336.95188-4-contact@emersion.fr> In-Reply-To: <20211015163336.95188-1-contact@emersion.fr> References: <20211015163336.95188-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: Pekka Paalanen --- 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,