Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp99848iog; Sun, 12 Jun 2022 20:23:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5Imp/CWdKwhkqrNjarqmo1Ac2nK9i1SiqBwkdXbGp9aWDIEWQo3GBNfecYILsrfEx8Z5O X-Received: by 2002:a05:6402:4255:b0:431:34c3:6018 with SMTP id g21-20020a056402425500b0043134c36018mr48326664edb.146.1655090600848; Sun, 12 Jun 2022 20:23:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655090600; cv=none; d=google.com; s=arc-20160816; b=mGJV7ihD23MA2SZjOMQ0WBDHRyLI+E0ezR7lo7zqu9RbuF1Icl8fUDu5p8uPJ+itM9 RBzGVq1c/1lbwV/9PNZAeukWyGzNAopBByfGkdfx+4/QAyXA0wtuFf+nfxodssymVHVl nnCX31xB+1idesIEp1Z/bayurCXUidUH0q3iL+wD0xINsnnfLK1t83ij20+GhYdK8c5t ita4nNWrk7oWekLjCffMi169EYb9idesAyPzD223WwJEixkgLUH0Kxa4KZfpJctaX7iT QqwZZkMx4Wk6k2a20hB1cVp2+PvuwwbAqER3pKde/ejonKqAdxpG1Gr8sbE8T0gF1pjs mPgw== 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=O7hZSYo84N4Pj5XWA9YZQNDmeHn06uF7sr5uxLl8gZ4=; b=SDLH4WvmggZVQq8dXPaf7L8iLZGRdtjmvnjCq8wivlDxDap4tjEvVgjdCiOMlFNMJb mEvn0Kmi/4K0YU8ODWaqVn/T0IaQYWvP9pdu1I+nwNb4iVKIkj7Iye2JAlqwj2g9GYOE 3zqhsO8Sl5J8A7+Es0R8nlXZaRhD9gHf0qVskucDmXduqDkW3Fl3SPuWy5E5aIQ3kT0y ZbrXkQhrK47IW3Q4JJ+bt/KDFmCaTiTGh4t91W0utmRv/osAsYbkuXt7Mg0yv4aO+/xQ hH7H6fKVGvZEClCCA6ErxrGJ7jHOscakub69GWPp/PV3MtWfinblEtfUvLBesdpvJguf 2mvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=rbpmSsi5; 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 go16-20020a1709070d9000b00711fd7e0800si7347312ejc.934.2022.06.12.20.22.56; Sun, 12 Jun 2022 20:23:20 -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=rbpmSsi5; 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 S235770AbiFLVVt (ORCPT + 99 others); Sun, 12 Jun 2022 17:21:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231491AbiFLVVr (ORCPT ); Sun, 12 Jun 2022 17:21:47 -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 CB6521146F for ; Sun, 12 Jun 2022 14:21:46 -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 72911825; Sun, 12 Jun 2022 23:21:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1655068904; bh=ltDVV/FNzrC9IY/lw+6fQdMuSHJmmwoYyLRASzOYSs8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rbpmSsi5y28tyLJ+Zls/lTdm/TvvlymFVLz1bQBc32std4ExoNtt0IyBYkzXMP9b9 80s8rV2wtK/SSa6HdPY0iRXdRWIFUSSmwdEF1qahIOsHL5xqdoJEsL3mlldCY0rpp7 M2PESCRnq01p5sSc74azeG/XRk+aqYZ7p6Qk6Rto= Date: Mon, 13 Jun 2022 00:21:37 +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, 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 inline void xlnx_dsi_writel(void __iomem *base, int offset, u32 val) > > +{ > > + writel(val, base + offset); > > +} > > + > > +static inline u32 xlnx_dsi_readl(void __iomem *base, int offset) > > +{ > > + return readl(base + offset); > > +} > > When I see implementations like this I wonder if a regmap would be > beneficial? regmap often seems overkill to me when the driver only needs plain 32-bit mmio read/write, given the overhead it adds at runtime. Is it just me ? [snip] -- Regards, Laurent Pinchart