Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2512353lqt; Mon, 22 Apr 2024 12:53:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQuP1gBnZ4pLkxgAhl1yzdSRy9DuqjD5O5fPsxwRdWsHmklGfK4aUER657FJQAIFViKXaMsjU/CjW/KLMj+mE413JugH7iLrJPdCDpng== X-Google-Smtp-Source: AGHT+IEeEHQaKOuoWPVZuBsr0xzS6agUjBHHxXlJ5f/uBf/uguX8H7xWfwP5zAwXbDTLH9j1Wka+ X-Received: by 2002:a05:6a20:4307:b0:1a9:55bd:95f6 with SMTP id h7-20020a056a20430700b001a955bd95f6mr11206891pzk.31.1713815581431; Mon, 22 Apr 2024 12:53:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713815581; cv=pass; d=google.com; s=arc-20160816; b=m66PwmRvohMGEzKAxKFPhLTaIOTtjHA4qNJtMvHnOnVJ/J53Gglev8as6VkEmEHni7 sauIn6vq87WlaJRg7mQukZ2DT6B0h879WwJx48JPg7pOfTA/kdu+jSpA0L12bNwaXL1Z QNhNTgWHpTknvoDGHFlDM5tItulkpNUS5pMYPL84hHLUq0WQZO7dxL2HedntkuvBPOXj E2WE18JCTrB4BaL5d1MFZjFEEbfPkz3JR0WqzSnraTGw5q9/ZUMgbS/+NyB6e1Q94iYI JIRVT9qONih5e/vJyaxbqy9Budzpz9nLFYZ5hR8v05cgtOy4rKS4PpGzjItz/GfI5KlT l9ug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=h1ey6L2csyRt+gTq+IESmLKOnnLpd2+PnL3t5tu0kbA=; fh=Nv2MmDEbJxmIJSqp9reT8nKbZCzG+mP6wpyOd6KrN6Y=; b=mmlQ/kkOFiCs35nsE+lPKpEWk4jYRenigCjBAVAN08PPCCwoiVRaVWHXf6FJLhLVDO dPwQYTnYKjaNWvVBlUcIiU7mD5SQ389UL96akpQblkwzQh1Z2xz/qy2H5OLkDQhqJGST RdMheM8MGnVRD4tIjG5rLS47zBjWbeT+7+IeKVu2hWkNWnzlpFWBMYodCFS6r9seD4V0 RIXl7gSGdrUNpBKXHSWeKi3XVsbHBX6TWbWBfM+Nsmdf0I6eFmM1hXbSEFGDRMF7nIbc PFyzL6IQbMOcj64dd5sDB6ViT7WS8CvZ3kiDVBo9Dooc2A+muMYNBJaR1LuRB9weXapH G81A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=goZuQyMj; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-153930-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153930-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y190-20020a638ac7000000b005f80094f5dasi5861047pgd.688.2024.04.22.12.53.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 12:53:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153930-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=goZuQyMj; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-153930-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153930-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8B615284529 for ; Mon, 22 Apr 2024 19:44:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C8C9155354; Mon, 22 Apr 2024 19:43:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="goZuQyMj" Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C0B8155346 for ; Mon, 22 Apr 2024 19:43:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713815031; cv=none; b=aDp0GZlTyMPyY6TPeO2In2HZdd3wmdTuFaQvcnyjnzXle89jpetsyxiFAyUYzOveafTre73NqJzMiAguq9TEx4fBIlgbetaMTiRiM7VRpPy6TvwA8qOtJwXudgw0ilgbrixxxEqkzK09+s9Zeob7wN0FIpDHeWYELZaNmoOedY0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713815031; c=relaxed/simple; bh=VJ5gsQjKohl4OTel83tK1x5fN8lYDcKtYI/XPbA72XA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NkRVJodMTmJtbEt5qdh9BQh1ocaS/BkxS2lONmM/bn5QtCjQgoWx5mWg3uRyehGV0JeNGjiBlYBQw+tPfunCQXI759IIjZmtkr+ynruT8NBoyCPjEkQ4qH/AfHEPur3+MhrWdsh7LMyikGjmc+RzWZTm//WYvqK8JLs/1bQ2m0E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=goZuQyMj; arc=none smtp.client-ip=209.85.167.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-516d3a470d5so5907428e87.3 for ; Mon, 22 Apr 2024 12:43:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713815028; x=1714419828; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=h1ey6L2csyRt+gTq+IESmLKOnnLpd2+PnL3t5tu0kbA=; b=goZuQyMjSRunTdWGcATyGIF/FHDPslxTk3LR+nMyIVsZhi3yaCoFcDgWOqUw9M5XBN 4GvqllmtYa+APDgCzW96HFDFGDg/a7irwR7LNLXoB1IjLT4ZWvO6/6DI6fH67HjqcfeR qGOP5Nrgu9dRdnl9naRJ3SUJ1beUklopWNcdItcpZ5/KZtuamoaqkrffdFoYMqwDNXkL 6PSHdCG4s4xakdQ/REqszmI6h69DuaAA/R2Xjn1eOSOv1PbgO611w2eW4MKNHu6yrwNT xQMkdifX/T3dTfkKbXrRdISDd/FjVg3f+35+S30xyI00OoHonPYc6AOankhV9hFEQLi5 HH+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713815028; x=1714419828; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=h1ey6L2csyRt+gTq+IESmLKOnnLpd2+PnL3t5tu0kbA=; b=MaQ7fvvzfetu1NH4gwKH74ZdGCwu93jYX9wUlFbcbdBkToEak0lRcOATVGnhnxcVkZ BWsNNM4ob8ywMItfQ4C8RtHNnzjsLqQlbUEn7CKrJUFF2y1OdLRUIJn8yN5I+3v7EmpV lT5j2/pIggsqcape9845E0/8bGQhagfsFRx+Cj8OTm4qNOKlmT5ywmw2oV3dF3Si1OO3 rj2NEC7TL+7FG6CZyv5dw20s+EGaMpm+I79WpRBMGTUY5MRJdzMt3+IKcdQA88dTHU+s NxudgC1f9Jws+NmWhT2PUMFtZkNSIoKYPdj6F+jXVVR7ewUR2O0q9GPYgO+psYhn8eYu WGOQ== X-Forwarded-Encrypted: i=1; AJvYcCVTgBkDKc1XmxFpqWCf7dYYwwbmW8kSplZDbjnCni3YwTqTiQoVjQOFOFNAPMQvFQ8jTKGt6wsdnE4QzG4neMdyTqmQAGuxkq+uy6UQ X-Gm-Message-State: AOJu0YwccbcMxJrebu9M1UtnfYkjduUPSdtM5VNsIs9v+bB6QYf+9V5g VsqHkJF2zgKs45Q4PwgR4nV92cCab7iKR8xX1yPvGEKv1ToZ6sMtpkT2UtN1yiM= X-Received: by 2002:a05:6512:ba0:b0:51a:b955:4014 with SMTP id b32-20020a0565120ba000b0051ab9554014mr9729079lfv.18.1713815027508; Mon, 22 Apr 2024 12:43:47 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::8a5]) by smtp.gmail.com with ESMTPSA id v14-20020ac2558e000000b0051891b7578esm1802167lfg.198.2024.04.22.12.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 12:43:47 -0700 (PDT) Date: Mon, 22 Apr 2024 22:43:45 +0300 From: Dmitry Baryshkov To: Johan Adolfsson Cc: Krzysztof Kozlowski , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , kernel Subject: Re: [PATCH 1/2] drm/panel: panel-simple: Add generic panel-dsi driver Message-ID: References: <20240418-foo-fix-v1-0-461bcc8f5976@axis.com> <20240418-foo-fix-v1-1-461bcc8f5976@axis.com> <76b46467-6a27-4f07-8a3e-cdd51e2e28bb@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Apr 22, 2024 at 02:05:01PM +0000, Johan Adolfsson wrote: > Hi, > Sorry for delayed response, still investigating why these mails didn't reach my inbox as expected.. > > -----Original Message----- > From: Krzysztof Kozlowski > Sent: den 19 april 2024 01:06 > To: Johan Adolfsson ; Neil Armstrong ; Jessica Zhang ; Sam Ravnborg ; Maarten Lankhorst ; Maxime Ripard ; Thomas Zimmermann ; David Airlie ; Daniel Vetter ; Rob Herring ; Krzysztof Kozlowski ; Conor Dooley ; Thierry Reding > Cc: dri-devel@lists.freedesktop.org; linux-kernel@vger.kernel.org; devicetree@vger.kernel.org; kernel > Subject: Re: [PATCH 1/2] drm/panel: panel-simple: Add generic panel-dsi driver > > On 18/04/2024 16:01, Johan Adolfsson wrote: > > Add generic panel-dsi panel, similar to panel-dpi that can have it's > > timing, lanes and flags overridden by devicetree. > > Add some dev_err() and dev_warn() calls. > > > > ... > > >> /* sentinel */ > >> } > >> @@ -4992,17 +5051,28 @@ static int panel_simple_dsi_probe(struct mipi_dsi_device *dsi) > >> return -ENODEV; > >> > >> err = panel_simple_probe(&dsi->dev, &desc->desc); > >> + if (err) > >> + dev_err(&dsi->dev, "%s: err %i\n", __func__, err); > > >This looks like debugging code. > I added it since you don't really get any good hints on where things fails if they do it. > Debugging code or not depends on the definition I guess - it helps the user track down a faulty devicetree, > or as in the case below mismatch with the DSI driver. > > ... > >> dsi->format = desc->format; > >> dsi->lanes = desc->lanes; > >> + of_property_read_u32(dsi->dev.of_node, "lanes", &dsi->lanes); > > > >Is this defined in the binding? > > Apparently not which I assumed. Other bindings mentions dsi-lanes, but I guess "num-dsi-lanes" would be more correct. Please use drm_of_get_data_lanes_count() and corresponding property from the bindings. > > >> err = mipi_dsi_attach(dsi); > >> if (err) { > >> struct panel_simple *panel = mipi_dsi_get_drvdata(dsi); > >> > >> + dev_err(&dsi->dev, "probe attach err: %i", err); > > > >Do not introduce unrelated code changes. > > As before, it helps the user who has a messed up devicetree find out, since we now gets some more configurability using devicetree. > Would it be acceptable as a separate commit, or should I simply skip this? > > > >Best regards, > >Krzysztof > > Thanks! > > Best regards > /Johan > > -- With best wishes Dmitry