Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp714968pxb; Wed, 20 Jan 2021 19:42:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtV93yOcEs1xSMWgEf+o7zxsLuKJ6dgrq5//guiHEZPE7e3nb7pKr/MndLz+4/Eq3PkPN7 X-Received: by 2002:a05:6402:4382:: with SMTP id o2mr9839785edc.371.1611200573735; Wed, 20 Jan 2021 19:42:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611200573; cv=none; d=google.com; s=arc-20160816; b=bdj71H2g6nN7wJiblLVj2CwqXQSfu6YfTVObaIFZBJ6KFpi1meh2azHUDSurDe9+TX fXJdp+ne39Avxk5rLWuU1YtH1k9mLOefI82hcmr6e+GJeVZKXl4cQ9qPb6yD/wf8X5uw 5td9QfBn1si33QNNgvtab7da1pbMUE9VN9SwibtT8KLbMrK43ILbGokql6JTKroHrK0E 5KPJ2ARhJGSSgm4sbzNxMJcY+7xwEJl7C0PsY3QgbvQivAVju9nCFTYM+CsUGsvAYQyA OqaipCgHsXi7qNz7BeMNQnlU8AKj2eN7sOxRy9Cwp88i3yAzgX6SUJt8wL3HtH1Ppx2Q hMTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=QNUQ4l7dRLz7xBXHoFjj4vWF9ntECZNv8BCWJPQxQfw=; b=LBlZ8XKNqXJydt72PmHN7H1USUyNkTtyCMIe72Qikjk46j9mH4d47HUoyKrYhx6O/y +qWESujAOx0d/CZCq56U8vh+IA3p3whvW1g81wu2Oults+BvGWKE3BpG5skg31jMo2eE 1idwcnQCi2pLMXsQOSXHAXd6Ln4qENSw+QtV8Etw8lG9mN1PEnCaDPHtsPaHrSdj/BDe ikdbcj/zJt7YxepCijsLD4T1mXoOGeZ8RnoJSZyBki1WEGZsbhKSTrLa111+7MJINSYv O084O7KGSu4sYdDHRrl5StOFuGQ5bcJG/Zz9jPQlSmA3OZ59rl/by7sPxWd3UfSalift 8g7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d24si1286227ejc.491.2021.01.20.19.42.29; Wed, 20 Jan 2021 19:42:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728324AbhAUDXI (ORCPT + 99 others); Wed, 20 Jan 2021 22:23:08 -0500 Received: from mail.loongson.cn ([114.242.206.163]:47628 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728698AbhAUDKa (ORCPT ); Wed, 20 Jan 2021 22:10:30 -0500 Received: from zhangzhijie.loongson.cn (unknown [10.20.41.29]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9AxtbxX8AhgxmIIAA--.10521S2; Thu, 21 Jan 2021 11:09:11 +0800 (CST) From: "ZhiJie.Zhang" To: daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@linux.ie Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, zhangzhijie@loongson.cn Subject: [PATCH v4] drm: Improve the output_poll_changed description Date: Thu, 21 Jan 2021 11:09:09 +0800 Message-Id: <20210121030909.1126643-1-zhangzhijie@loongson.cn> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf9AxtbxX8AhgxmIIAA--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00pqjv00gofq/1tbiAQAIAF3QvM4CmwABsu Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: zhangzhijie this callback was used by drm_kms_helper_hotplug_event() V2: (Thanks for Daniel's suggestions) - remove the FIXME below.since with the drm_client - infrastructure and the generic fbdev emulation we've - resolved this all very neatly now. V3: Add comments that This hook is deprecated - new implementation methods instead of this hook Signed-off-by: ZhiJie.Zhang --- include/drm/drm_mode_config.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/include/drm/drm_mode_config.h b/include/drm/drm_mode_config.h index ab424ddd7665..fbc0da25d7c5 100644 --- a/include/drm/drm_mode_config.h +++ b/include/drm/drm_mode_config.h @@ -103,14 +103,13 @@ struct drm_mode_config_funcs { * Callback used by helpers to inform the driver of output configuration * changes. * - * Drivers implementing fbdev emulation with the helpers can call - * drm_fb_helper_hotplug_changed from this hook to inform the fbdev - * helper of output changes. + * Drivers implementing fbdev emulation use drm_kms_helper_hotplug_event() + * to call this hook to inform the fbdev helper of output changes. * - * FIXME: - * - * Except that there's no vtable for device-level helper callbacks - * there's no reason this is a core function. + * This hook is deprecated, drivers should instead use + * drm_fbdev_generic_setup() which takes care of any necessary + * hotplug event forwarding already without further involvement by + * the driver. */ void (*output_poll_changed)(struct drm_device *dev); -- 2.29.2