Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp100469iog; Sun, 12 Jun 2022 20:25:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypDPj36d3BvY61/+UbhHXG3C/FAIiPVVXf/r6lBI4aerfTsxh2v+zmD9FQrmrWWpACtuqa X-Received: by 2002:a17:906:c048:b0:718:ca61:e7b9 with SMTP id bm8-20020a170906c04800b00718ca61e7b9mr1174144ejb.120.1655090700255; Sun, 12 Jun 2022 20:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655090700; cv=none; d=google.com; s=arc-20160816; b=s2GVaoqF+pfgXqZEMCeZ+mcu6S9cBBi2ScdoLANfxG+vxVk7lDeB+AgdD7h0FgZTkz enHnX46rfDN2wN8aMk5f+uzi4T3h8cWWTv27XN9rJc5Y3HHG6FIr1tAGRL+rYBWWCwnI dej1meO3idtwKR8cny4jKf9nuxOEIDQyChF3fR1ylOvMbQh3ojdfFuWqz1H7jEdPFTKp fRFQqx82vj1RPudFC/cL9fFwjNgjRgO5nVTYns5WXpOCS+a+RGpQoMG/POvnqqIstsTa YxfMHMXWUGB8WXpaRIw3+PzIsU/OCQNM/w5jTW/+CMc63IPbwYLdG/tLUXBnT67f459z 8wBg== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=WestHJXGGjsYb4mvuOOjyRjkLbqVNcyoqO3iGLp57uA=; b=j8yMzxmOH4ufjGgrTCu9rtv2/ZXW4vzld2RkmDflDRuqnN6LXG2QwRQRGuZ7g1tAse 2Gw67e9OMKVpuSaJUgJko/ychKPU0uhGbL0sZXbNqVoV/7ghT6DDB4jl/Zw9Me5DrMuj ++C0DrKTF6nBpzvWL2dlhK6Z9rbdxylVxTcWoB/c4L1M7x+hwUbX9A9kg4tUFOYZdtqD JakTUrke+H/BUjSbvwZbMWa+Bx6yqPjT6RoDY61wW0EOiu4CdSlbnuujhQtx5ninJPBJ a10KbDaA85tNHI7rMOVnZXyxI+mYYMCckDTEND9cZrpsyQ0jRrF2nBPPN/zhbfPyeVIx a1fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=JPTE4RYa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz6-20020a1709077d8600b00718ccb0a135si301444ejc.507.2022.06.12.20.24.36; Sun, 12 Jun 2022 20:25:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=JPTE4RYa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236447AbiFLV2S (ORCPT + 99 others); Sun, 12 Jun 2022 17:28:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236157AbiFLV2O (ORCPT ); Sun, 12 Jun 2022 17:28:14 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 540D324F02 for ; Sun, 12 Jun 2022 14:28:13 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7E26F825; Sun, 12 Jun 2022 23:28:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1655069291; bh=wycngWnNii8KVlPbxJ+kxwurGQwoP5WgGiStwYu1zwQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JPTE4RYaFj2+s2MZYMDCiQrV+5tE9gzqS1HjsfrEzt4c33F2HJ3zLDVgIO7z+iLi8 XKiQ8e6PcM1lcxKFXXdfxqjrilyzIUYYDEt/ck/9S4tKhwtloLESFhccpOUWZVUqSE l3vH+M/LLiEcLvrz2d0+FTy/cAkRsSirNY3Dn/gM= Date: Mon, 13 Jun 2022 00:28:03 +0300 From: Laurent Pinchart To: Sam Ravnborg Cc: Venkateshwar Rao Gannavarapu , airlied@linux.ie, vgannava@xilinx.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [LINUX PATCH 2/2] drm: xlnx: dsi: driver for Xilinx DSI Tx subsystem Message-ID: References: <1652363593-45799-1-git-send-email-venkateshwar.rao.gannavarapu@xilinx.com> <1652363593-45799-3-git-send-email-venkateshwar.rao.gannavarapu@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sam, One more comment. On Fri, May 13, 2022 at 01:05:06PM +0200, Sam Ravnborg wrote: > On Thu, May 12, 2022 at 07:23:13PM +0530, Venkateshwar Rao Gannavarapu wrote: > > The Xilinx MIPI DSI Tx Subsystem soft IP is used to display video > > data from AXI-4 stream interface. > > > > It supports upto 4 lanes, optional register interface for the DPHY > > and multiple RGB color formats. > > This is a MIPI-DSI host driver and provides DSI bus for panels. > > This driver also helps to communicate with its panel using panel > > framework. > > Thanks for submitting this driver. I have added a few comments in the > following that I hope you will find useful to improve the driver. > > > Signed-off-by: Venkateshwar Rao Gannavarapu > > --- > > drivers/gpu/drm/xlnx/Kconfig | 14 ++ > > drivers/gpu/drm/xlnx/Makefile | 1 + > > drivers/gpu/drm/xlnx/xlnx_dsi.c | 456 ++++++++++++++++++++++++++++++++++++++++ > > 3 files changed, 471 insertions(+) > > create mode 100644 drivers/gpu/drm/xlnx/xlnx_dsi.c [snip] > > diff --git a/drivers/gpu/drm/xlnx/xlnx_dsi.c b/drivers/gpu/drm/xlnx/xlnx_dsi.c > > new file mode 100644 > > index 0000000..a5291f3 > > --- /dev/null > > +++ b/drivers/gpu/drm/xlnx/xlnx_dsi.c [snip] > > +static const struct drm_bridge_funcs xlnx_dsi_bridge_funcs = { > > + .mode_set = xlnx_dsi_bridge_mode_set, > > From the documentation of the mode_set operation: > * This is deprecated, do not use! > * New drivers shall set their mode in the > * &drm_bridge_funcs.atomic_enable operation. > > Please adjust accordingly. > > > + .atomic_enable = xlnx_dsi_bridge_enable, > > + .atomic_disable = xlnx_dsi_bridge_disable, > > + .attach = xlnx_dsi_bridge_attach, > > + .detach = xlnx_dsi_bridge_detach, > > +}; > > For a new bridge please implement all the mandatory atomic operations. > > You will need at least: > .atomic_get_output_bus_fmts = xlnx_dsi_bridge_get_output_bus_fmts, As this DSI encoder will never be the last bridge in the chain (there should always be a panel or another bridge afterwards), I think this function can be skipped. > .atomic_get_input_bus_fmts = xlnx_dsi_bridge_get_input_bus_fmts, > .atomic_duplicate_state = drm_atomic_helper_bridge_duplicate_state, > .atomic_destroy_state = drm_atomic_helper_bridge_destroy_state, > .atomic_reset = drm_atomic_helper_bridge_reset, > }; [snip] -- Regards, Laurent Pinchart