Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp307921pxb; Fri, 3 Sep 2021 02:34:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhJYTIZm85eyyXnKEhTQUbHGdkzlm7uH1XmRwF1O3YZBvjUGETMsll6I7VQuCPkE/OmFrC X-Received: by 2002:aa7:d95a:: with SMTP id l26mr3003768eds.305.1630661675908; Fri, 03 Sep 2021 02:34:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630661675; cv=none; d=google.com; s=arc-20160816; b=0kNYIVy0J12MZ84tiYHTi99susIJjhDkv2vV2XIYoFQRwLWE1FvPBQhoYB0eUprHE/ baGNcCqLLnpBxZu4lUUrr6lvP48UrH2mTBJxnYFZ8GubcYziVRKbMWDxGMKX8PF7gAtV qOBWrPBcsyWcNWHEI1zTMqiFx5ngXgogHGZehnU3U5w8sIj698xoxavfkM987UHt1XY9 mrdhEKS/XrmcsJEEiBBJ06VjgNxzJi0iSv+edmQ6cMJqXnLV3mNPQBSoeb9r1Lb0dBKT yiVqCVZ1xnft6RksixBpjKKqwI8BxgqkGTi+bPas3o9ziOdtCuHrFWMAMukKDedndA7P oxLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=+2zVhYW2JhNFC6ivmbY+NMg91kMXNKRAFmGUAVihMLE=; b=EAsLV+AwrzB7ExFHvQrWxJ3T136H8VNkbjCVIkMY77EGChExZdhWyf3YzX+MhGDt9e npMr5GK9yXoZKaMGpdBlKVhIZTRAPank9eWpeBHPHHUROkYeXg6+Hzp3X0yZBfV/AEuM LOTmVdxMxjqwyIrkI5dXr+pPy1BiwNc+5WDbZXVYLqsyug25evt18Fm5sUBkB+HVuf+K YxK8i+LxsDivWg0rzl9FKk7xKMflHKsuaf6e+dH4VR1VUteQIhjtBZbMnLAWhXjKAH6F aNsxxWeIhEIk6nmlraaP9TMBUKgHqqc2E03xLs+fAiWo3FolPggW6fZ+ALesXPMCTzY9 wTVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=egJYq0hT; 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 hv17si4772517ejc.403.2021.09.03.02.34.08; Fri, 03 Sep 2021 02:34:35 -0700 (PDT) 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; dkim=pass header.i=@ffwll.ch header.s=google header.b=egJYq0hT; 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 S1348783AbhICJcm (ORCPT + 99 others); Fri, 3 Sep 2021 05:32:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348819AbhICJce (ORCPT ); Fri, 3 Sep 2021 05:32:34 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C180DC061575 for ; Fri, 3 Sep 2021 02:31:34 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id me10so10770969ejb.11 for ; Fri, 03 Sep 2021 02:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=+2zVhYW2JhNFC6ivmbY+NMg91kMXNKRAFmGUAVihMLE=; b=egJYq0hTL6e9zJ4V7sjc1cKL1hklggrK8sGHWrY5YYrrs9k9qB1aZGHCaGN2QE1qRE pfXwPcTs5GPZATJtSx/1BOg8pyR+/tDUrGKuA72LMtQD+EHdPlT3fUlCw9LHoMxWXQmV /+A6/pEfvoidDXhA5wbd6OTrVot0ls7umSqbU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=+2zVhYW2JhNFC6ivmbY+NMg91kMXNKRAFmGUAVihMLE=; b=RXex01mJTYCZp0YLkWmeZSm3moM/Lvyozpy4RLfU0j2ESEp3PlR5jsXT1dIsErzBgs DsyXsVAQ3Wy7KtFJNi3Ms/82kPn5Vfh9m8GAWZN6tFI1cOTZgiyLY1YDfhVZ5IxAC4za rUu+g7ocTAdyu1eZjGCunVRm5jFSUBS4pEHs100xjs79OYIZ9ajMTnXwFJiEjX7op5l4 M8/MArdjsRZUvVFA89Iehw1HXenmWneeV3zahdy275FMjAAT46QD/uGH4XbOl3P3QCyG STh/vycpSGPKbJNmfDPi2YiX6itRAqyFkXegn8aEm31JoYHPVlr7OK4tK4wUpwKB8Rvp ytkw== X-Gm-Message-State: AOAM531vjDZWe4RBherD1JukPoHlAnxnfuxYKmTznNCaVFi+jJ2U+BLe 2R5ir0tHUwSTBOc+KI7sYAqzNg== X-Received: by 2002:a17:906:354a:: with SMTP id s10mr3182477eja.357.1630661493357; Fri, 03 Sep 2021 02:31:33 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id p8sm2415031ejo.2.2021.09.03.02.31.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Sep 2021 02:31:32 -0700 (PDT) Date: Fri, 3 Sep 2021 11:31:30 +0200 From: Daniel Vetter To: "ZhiJie.Zhang" Cc: daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, botton_zhang@163.com Subject: Re: [PATCH v4] drm: Improve the output_poll_changed description Message-ID: Mail-Followup-To: "ZhiJie.Zhang" , maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, botton_zhang@163.com References: <20210903032402.11935-1-zhangzhijie@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210903032402.11935-1-zhangzhijie@loongson.cn> X-Operating-System: Linux phenom 5.10.0-8-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 03, 2021 at 11:24:02AM +0800, ZhiJie.Zhang wrote: > 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 > > v4: used by drm_kms_helper_hotplug_event() > - drm_fb_helper_hotplug_changed() is not found > instead by drm_kms_helper_hotplug_event() > > Signed-off-by: ZhiJie.Zhang Applied to drm-misc-next, thanks for the patch. -Daniel > --- > 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 1ddf7783fdf7..48b7de80daf5 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.33.0 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch