Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp3446258imc; Sun, 24 Feb 2019 05:27:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IYW1xnxJMUhVVIeQ8WjbA85abLyBpAX5pvS1H2IYeEi8caZpn0WeNE0hP0jjNwHHxqhVTxU X-Received: by 2002:aa7:87c6:: with SMTP id i6mr13895344pfo.208.1551014874347; Sun, 24 Feb 2019 05:27:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551014874; cv=none; d=google.com; s=arc-20160816; b=i9OWwJqfVYHNfUnN04z9vMWf/vTwh77jJJSEFSKKmFwYZDCBKhTKmXoPfD7MNupzWo 56MeqyAZ99GcXewKnwqQYkPZE5Gw2MXv+69mPiAOZwvl/sIA7kMjwDzHV47WpacbLtLA EDXTCKtzEffh+H5wnv/zISu3UvvQ/ESdX3uL9VIuQ8XCtz436vHs9fjFymAdeKHjHOq3 LP2EUG+o2M+zh2NVi1WMRxtDErKJxhQU9+DCbeVDj5V+LFSxXE7tQgsXvGDqneMM9XWL //XxGDKr/0FWvZsJVYHdjwHpfYmoZfCNP9C11tJs49VGIDvYsD53kcOgkWIJY5DcUJlO wxWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ixoqYfUuH/JDMT9Cf7yMr0l5fVi8Mtpi5gBWEoA5KIM=; b=d/YojlSrupAgrNdl6cwOO6QEdmUv6p1nOYyeMaGPKUy+scrYze2UxTdeCf7GPSCMIc c2HyU3yGZD6WejFdeSmuhWOM4IDrCtzCtwvszN3bY1XsZf7g+ec86lTLYgTHyZH5uhVj UMm40pKOaLTywnhyi1hvtY/yOC1OEEW2TfuaVOXdLV7Lm5BicnZF6TZm7tkwf8BJxKeI pSO+Ra+BTkdu8sCmiMJnYww6MOUbc4j3Sa+7IHVtW+6AJ9JUT/cjshEHLe5qLI3a7/MA 9N7hgb/6RhCCYQDXtUkkYCsAfbhY5Hyv1yf/uu/kFnE4SpZyvSP1GqwMC2uvCOKXl6H9 A45w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cs19si6757086plb.431.2019.02.24.05.27.38; Sun, 24 Feb 2019 05:27:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728359AbfBXNZ5 (ORCPT + 99 others); Sun, 24 Feb 2019 08:25:57 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:55403 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728121AbfBXNZ4 (ORCPT ); Sun, 24 Feb 2019 08:25:56 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 64ADDFB03; Sun, 24 Feb 2019 14:25:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yJyajUATgFw1; Sun, 24 Feb 2019 14:25:49 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 9532F43558; Sun, 24 Feb 2019 14:25:48 +0100 (CET) Date: Sun, 24 Feb 2019 14:25:48 +0100 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Sam Ravnborg Cc: Thierry Reding , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 3/3] drm/panel: Add Rocktech jh057n00900 panel driver Message-ID: <20190224132548.GA6007@bogon.m.sigxcpu.org> References: <79858664af8ee2f725e53d902ce46b447ac8fcfc.1550943220.git.agx@sigxcpu.org> <20190223220304.GA20290@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190223220304.GA20290@ravnborg.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sam, On Sat, Feb 23, 2019 at 11:03:04PM +0100, Sam Ravnborg wrote: > Hi Guido. > > Thanks for this patch. > See below for some review feedback. Thanks for having look! This is what I've folded in for v2: Changes from v1 * As per review comments from Sam Ravnborg * Make SPDX-License-Identifier match MODULE_LICENSE * Sort include files alphabetically * Drop drmP.h and use individual includes * Drop superfuous 'x' in mode printout on error path * Allpixelson_set: Add proper space around '*' * Drop superfluous put_device(&ctx->backlight->dev); * Add /* Sentinel */ in jh057n_of_match * Drop jh057n->enabled * Drop drm_display_info_set_bus_formats * Kconfig: Depend on BACKLIGHT_CLASS_DEVICE which somehow got lost * Move jh057n_enable close to jh057n_disable I'll hold off a v2 in case there are further comments. > The driver includes the "allpixelson_set" debugfs feature. > Is this a debug leftover, or is there a real need for this? > If this is a debug feature that is no logner needed then no > need to add it to the mainline driver. That debugfs entry is a life saver when staring at a blank screen and trying to figure out what is broken. If a echo 1 > /sys/kernel/debug/jh057n00900/allpixelson lights up the screen then DSI LP mode communication is working. One can then focus on the video mode (pixel clock, polarity, ...). So if at all possible I'd leave that in since it might help to diagnose problems not only in the driver but in upper DSI layers (phy, dsi host). Cheers, -- Guido > > Sam > > On Sat, Feb 23, 2019 at 06:39:44PM +0100, Guido G?nther wrote: > > Support Rocktech jh057n00900 5.5" 720x1440 TFT LCD panel. It is a MIPI > > DSI video mode panel. > > > > The panel seems to use a Sitronix ST7703 look alike (most of the > > commands look similar to the ST7703's data sheet but use a different > > number of parameters). The initial version of the DSI init sequence > > (including sleeps) were provided by the vendor. Sleeps were reduced > > considerably though to speed up initialization. > > > > Signed-off-by: Guido G?nther > > --- > > +++ b/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c > > @@ -0,0 +1,414 @@ > > +// SPDX-License-Identifier: GPL-2.0+ > > +/* > > + * Rockteck jh057n00900 5.5" MIPI-DSI panel driver > > + * > > + * Copyright (C) Purism SPC 2019 > > + */ > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include