From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62FD3C388F7 for ; Mon, 9 Nov 2020 11:06:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F326620731 for ; Mon, 9 Nov 2020 11:06:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="IyyCOFHw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729228AbgKILGq (ORCPT ); Mon, 9 Nov 2020 06:06:46 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:41324 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727303AbgKILGq (ORCPT ); Mon, 9 Nov 2020 06:06:46 -0500 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 4B396B2B; Mon, 9 Nov 2020 12:06:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1604920003; bh=2svvc5akzhW3ySNEkMyY8/uJ46WMYi73daZ2k2u4S5w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IyyCOFHw8G3lg/gj7I5BydgUJ3jWkaqQ3MJlYr1gSnZii61Zml9U4oCCztjb69u7g nM2JWUWjZaCnK12AKb81UPlWVf4Qg2cE9562mGFu5RAMkU/AEGZq3+xCkmOKTyosQV LkXPGNwZhJZES+sYJkFwGwn8lBIINxG9isP3umWU= Date: Mon, 9 Nov 2020 13:06:40 +0200 From: Laurent Pinchart To: Tomi Valkeinen Cc: Sebastian Reichel , Nikhil Devshatwar , linux-omap@vger.kernel.org, dri-devel@lists.freedesktop.org, Sekhar Nori , Tony Lindgren , "H . Nikolaus Schaller" , Sebastian Reichel Subject: Re: [PATCH v3 48/56] drm/omap: drop dssdev display field Message-ID: <20201109110640.GS6029@pendragon.ideasonboard.com> References: <20201105120333.947408-1-tomi.valkeinen@ti.com> <20201105120333.947408-49-tomi.valkeinen@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201105120333.947408-49-tomi.valkeinen@ti.com> Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Hi Tomi and Sebastian, Thank you for the patch. On Thu, Nov 05, 2020 at 02:03:25PM +0200, Tomi Valkeinen wrote: > From: Sebastian Reichel > > All displays are using drm_panel instead off dssdev drm_panel or a drm_bridge that models the connected. > now, so this field is always 0 and can be dropped. > > Signed-off-by: Sebastian Reichel > Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart > --- > drivers/gpu/drm/omapdrm/dss/base.c | 2 +- > drivers/gpu/drm/omapdrm/dss/omapdss.h | 6 ------ > 2 files changed, 1 insertion(+), 7 deletions(-) > > diff --git a/drivers/gpu/drm/omapdrm/dss/base.c b/drivers/gpu/drm/omapdrm/dss/base.c > index d62713b241d2..d9a5e7b9d401 100644 > --- a/drivers/gpu/drm/omapdrm/dss/base.c > +++ b/drivers/gpu/drm/omapdrm/dss/base.c > @@ -198,7 +198,7 @@ void omapdss_device_disconnect(struct omap_dss_device *src, > } > > if (!dst->id && !omapdss_device_is_connected(dst)) { > - WARN_ON(!dst->display); > + WARN_ON(1); > return; > } > > diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss.h b/drivers/gpu/drm/omapdrm/dss/omapdss.h > index 916c55101629..c2199c4946ec 100644 > --- a/drivers/gpu/drm/omapdrm/dss/omapdss.h > +++ b/drivers/gpu/drm/omapdrm/dss/omapdss.h > @@ -298,12 +298,6 @@ struct omap_dss_device { > */ > enum omap_display_type type; > > - /* > - * True if the device is a display (panel or connector) at the end of > - * the pipeline, false otherwise. > - */ > - bool display; > - > const char *name; > > const struct omap_dss_device_ops *ops; -- Regards, Laurent Pinchart From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B68EC2D0A3 for ; Mon, 9 Nov 2020 11:06:47 +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 A5BD02067D for ; Mon, 9 Nov 2020 11:06:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="IyyCOFHw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5BD02067D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DAB018991A; Mon, 9 Nov 2020 11:06:45 +0000 (UTC) Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by gabe.freedesktop.org (Postfix) with ESMTPS id C9B8D8991A for ; Mon, 9 Nov 2020 11:06:44 +0000 (UTC) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 4B396B2B; Mon, 9 Nov 2020 12:06:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1604920003; bh=2svvc5akzhW3ySNEkMyY8/uJ46WMYi73daZ2k2u4S5w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IyyCOFHw8G3lg/gj7I5BydgUJ3jWkaqQ3MJlYr1gSnZii61Zml9U4oCCztjb69u7g nM2JWUWjZaCnK12AKb81UPlWVf4Qg2cE9562mGFu5RAMkU/AEGZq3+xCkmOKTyosQV LkXPGNwZhJZES+sYJkFwGwn8lBIINxG9isP3umWU= Date: Mon, 9 Nov 2020 13:06:40 +0200 From: Laurent Pinchart To: Tomi Valkeinen Subject: Re: [PATCH v3 48/56] drm/omap: drop dssdev display field Message-ID: <20201109110640.GS6029@pendragon.ideasonboard.com> References: <20201105120333.947408-1-tomi.valkeinen@ti.com> <20201105120333.947408-49-tomi.valkeinen@ti.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201105120333.947408-49-tomi.valkeinen@ti.com> 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: , Cc: Tony Lindgren , "H . Nikolaus Schaller" , Sekhar Nori , Sebastian Reichel , dri-devel@lists.freedesktop.org, Sebastian Reichel , linux-omap@vger.kernel.org, Nikhil Devshatwar Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Tomi and Sebastian, Thank you for the patch. On Thu, Nov 05, 2020 at 02:03:25PM +0200, Tomi Valkeinen wrote: > From: Sebastian Reichel > > All displays are using drm_panel instead off dssdev drm_panel or a drm_bridge that models the connected. > now, so this field is always 0 and can be dropped. > > Signed-off-by: Sebastian Reichel > Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart > --- > drivers/gpu/drm/omapdrm/dss/base.c | 2 +- > drivers/gpu/drm/omapdrm/dss/omapdss.h | 6 ------ > 2 files changed, 1 insertion(+), 7 deletions(-) > > diff --git a/drivers/gpu/drm/omapdrm/dss/base.c b/drivers/gpu/drm/omapdrm/dss/base.c > index d62713b241d2..d9a5e7b9d401 100644 > --- a/drivers/gpu/drm/omapdrm/dss/base.c > +++ b/drivers/gpu/drm/omapdrm/dss/base.c > @@ -198,7 +198,7 @@ void omapdss_device_disconnect(struct omap_dss_device *src, > } > > if (!dst->id && !omapdss_device_is_connected(dst)) { > - WARN_ON(!dst->display); > + WARN_ON(1); > return; > } > > diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss.h b/drivers/gpu/drm/omapdrm/dss/omapdss.h > index 916c55101629..c2199c4946ec 100644 > --- a/drivers/gpu/drm/omapdrm/dss/omapdss.h > +++ b/drivers/gpu/drm/omapdrm/dss/omapdss.h > @@ -298,12 +298,6 @@ struct omap_dss_device { > */ > enum omap_display_type type; > > - /* > - * True if the device is a display (panel or connector) at the end of > - * the pipeline, false otherwise. > - */ > - bool display; > - > const char *name; > > const struct omap_dss_device_ops *ops; -- Regards, Laurent Pinchart _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel