Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3099564pxb; Tue, 12 Jan 2021 06:24:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXgegz+sOifgSgHqv5aG3I6wq+S09OR3obZIuKLAJsrxR7zywFv4Bds1DoBgJdSyqDualO X-Received: by 2002:a17:906:3b56:: with SMTP id h22mr3275355ejf.491.1610461485065; Tue, 12 Jan 2021 06:24:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610461485; cv=none; d=google.com; s=arc-20160816; b=F+UEqg5EyH3XBhHZMNemQj7J3WoThNxsVpA032+/+SDygbEJpa6IJdvVxhA6YdaggK kMGQLV6uZUnBu+XvDh6AI9NHmysCF1jt0r5a38CLlIUIVhKTe4Vk2aMjN3GT3FqV6Ra7 WW+8WKuSKRIp9zF9BhIVgyNouIwH6Enp98rfsh8gIaASQkqbvUL9T3Xn34mv8zWs2uG3 //sOebEml+PPr1DAPjEHJuOCrK9mdGZ0a71O6xiMrGlsZhVnVg6Qb5cXs+LnLC3IdY9Q q1/pJC5zy6OyAgNkYDatCiiwIENJoP5mxcMK7Gb1Dh2JY2O8tjo2ELoziBFf8MHbQS/W oHEA== 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=lRZ3d22RXi2ViyjCaIZIVlAwq5J2EBopCK/yoHar0tk=; b=dQfsI4uumKOqenZfUQ/A4ssboiLmZ+FjYgqsWj/qDzj1MuCP5El0dibG9vc89qBmQR MCWER727b8GZk7FQ27CbTLy7QDBy1jmkOb06L8njfBz6T+nsugF/BdXTTerbTmrwmdnK LQ2ZLadItcC5Y/W9iYLGgdJt3QeLXpNm4En9JZdmnnNo5hTQfa9THb4eMFz6+t4WpG8A 7Q+PpA1zeZNvkezScmAmfpyq98Q5GldIkxs4xRNJBnxiLnZl0XDRktYx7x/6GBP1YPWI ZZiDx/DPEwA/K98s9rdrIl7ZuyHmvwK6vyxWP3AM82QR3g2G2PqKh6B6EWzCg0TBoK9C +lBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=Tnor6Wwe; 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 q8si1194953ejj.24.2021.01.12.06.24.19; Tue, 12 Jan 2021 06:24:45 -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; dkim=pass header.i=@ffwll.ch header.s=google header.b=Tnor6Wwe; 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 S1729395AbhALOVW (ORCPT + 99 others); Tue, 12 Jan 2021 09:21:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726119AbhALOVV (ORCPT ); Tue, 12 Jan 2021 09:21:21 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F124DC061786 for ; Tue, 12 Jan 2021 06:20:40 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id r4so2263806wmh.5 for ; Tue, 12 Jan 2021 06:20:40 -0800 (PST) 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=lRZ3d22RXi2ViyjCaIZIVlAwq5J2EBopCK/yoHar0tk=; b=Tnor6WweTI6EMJ3JkUSAheTZoPtMvnhHIrNwk2GPdLYm+l8vUhui0OTuLf3VW2t7Zp LmrhMjocBU+y7mPLZkHzqBtelT3BCd/Js5+749EuC9BVTQcRZF3m0dMQyyg4QMYbGqze Wp+YMC/JMjblo0QMU4DCnvhZ+mVZmdkN7PQog= 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=lRZ3d22RXi2ViyjCaIZIVlAwq5J2EBopCK/yoHar0tk=; b=FOv8VfEJDcybLoCAH3ypa769CxwveHYESs/srj8vwJAcmn0m/XhKYRzIFJP8u4DHBw jDWPCX+QkXm+EbYA6Agez4EelrWf6rd5NxN17LRrtxq9PYxyy+M704zqq8ijWufwt5Dn I5Q0wEatP38/Dfl46gjAIPJbzkZAM0qdzboKXMWf7PPHSxLPe5GCKyqs56TKkCs1kq/3 kdMgQ7m+39kwUJAYEvquyjtVqnnRaYkOqGzJpFrDNPNCIVaJpVMXG57OdMnRaaGW4mJX 34sg5laD20453ieLAG7Ipp9l2Nk27iJHsM4BFUlU6AXiBUvSrrHhnU3F6VY8XZF7lcy2 QC/A== X-Gm-Message-State: AOAM530bbhYGF1axLW+17rwkLPKd0GzqVmDGD1Ej4EzmckIUVN5Oct2l 14+EvY0CmEkTYiQvlNKMNE6CQ9MIQMJdyivy X-Received: by 2002:a1c:a501:: with SMTP id o1mr3840543wme.44.1610461239793; Tue, 12 Jan 2021 06:20:39 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id a17sm5486318wrs.20.2021.01.12.06.20.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jan 2021 06:20:38 -0800 (PST) Date: Tue, 12 Jan 2021 15:20:36 +0100 From: Daniel Vetter To: "ZhiJie.Zhang" Cc: maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] 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 References: <20210112104644.341345-1-zhangzhijie@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210112104644.341345-1-zhangzhijie@loongson.cn> X-Operating-System: Linux phenom 5.7.0-1-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 12, 2021 at 06:46:44PM +0800, ZhiJie.Zhang wrote: > From: zhangzhijie > > codeview the implementation of few Drivers. I'm not really understanding what you're trying to say here. > this callback was used by drm_kms_helper_hotplug_event() > > Signed-off-by: zhangzhijie > --- > include/drm/drm_mode_config.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/drm/drm_mode_config.h b/include/drm/drm_mode_config.h > index ab424ddd7665..e01c4d0f07d1 100644 > --- a/include/drm/drm_mode_config.h > +++ b/include/drm/drm_mode_config.h > @@ -104,7 +104,7 @@ struct drm_mode_config_funcs { > * changes. > * > * Drivers implementing fbdev emulation with the helpers can call > - * drm_fb_helper_hotplug_changed from this hook to inform the fbdev > + * drm_kms_helper_hotplug_event() from this hook to inform the fbdev > * helper of output changes. I think since we touch this, maybe better to revamp it complete. The best way to handle all this is by registering a struct drm_client, since that provides the &drm_client_funcs.hotplug callback. Also for fbdev support drivers shouldn't even use that, but instead use the drm_fbdev_generic_setup() function, which takes care of everything. I think we can also remove the FIXME below, since with the drm_client infrastructure and the generic fbdev emulation we've resolved this all very neatly now. Can you please respin with my suggestions taking into account somehow? Thanks, Daniel > * > * FIXME: > -- > 2.29.2 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch