Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp310825lqp; Wed, 12 Jun 2024 02:14:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVq16Mqf/Bvqp9IGoXSBhEqkOw8zRSTaBho0LXLr4tmCpH8rMhibI2bHdeM9Mjp7AqxR3CPlSaosyaQnCJnzR4/7UJiJ+axtXgJ3CmshA== X-Google-Smtp-Source: AGHT+IFV7RJ6hHok2Fds9QI+F55Y/ZWD7BJV18OnfMEUkmxf1W0qzAV9YFOTzPjSiCRy4vqXKBzI X-Received: by 2002:a25:8542:0:b0:dfe:f4e3:72cb with SMTP id 3f1490d57ef6-dfef4e39514mr213540276.27.1718183673222; Wed, 12 Jun 2024 02:14:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718183673; cv=pass; d=google.com; s=arc-20160816; b=CA6jfi9Pundp+tZV99JqL6nkwIk9Piyjq8M9h2QOy5XA/CFVMGNw5kVBSZ5yEtdSv6 y2hgEBD+JwgvLeSwOzZ9D5AYOzmt3Am5/7abZB6bKPIqJih4twbStpB2x1FwbCw6Irn1 rJdr4juzl/Wmv0k58ZRDGDkwjiljgim9lO0dI0Hb0YHh/8jVNhGxSsmMvA6RSA6cVB06 S2+c+VJcdlmswwKt7T4s1AtYe0+eTToaQ4FMaEEPr2vJgFEWawYGtCMkfY/y9izOsW3y FeYcK3v/O9AtCFWpVv0UP5tCYUdok4JPe6Riu6IIq9LOt5X7gLTILAXIwg8950TCMue7 mv+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=C7+3ehk3k80azJprWFHz12j2AqrrZqNt2dQt3W1z4is=; fh=Oahwq00O6nONC3l/5C+nqf8lgZ0iTgcCmXvwod0+DBQ=; b=UpwJO2kuigEXhZaGn0B53u9S2qEwi8q/6f0mKxTTpSBCt0KX6Cut7d4Hu+GWg6KEN2 hgy2coKAFo2Jr8Zl0Fhh9m4rZvuxj+e0Guq49r44A5vU3xB2+eLBmjAmOyPg1UtS7b5C kMHaodv1cmqgoLEPHEdNM+ahuKEV7LU/NQT058wT/uBdziy5Dcz6F6vpj7bPVmnKNHFN 7ZtPmrR7rNym86D1LKbAjN1cUaQdJjfPXkflFUWafMLBm6jHUtEcaO0A02KfxtYfEFK3 lLS3yIknYh6fYBZRChHtipVQjjrHU96GINERAum/RZm4R2FY0A5e4YlEEQpfDJX4Moyp YY5w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=POlHn2K8; 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-211241-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211241-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b07db76554si70052326d6.414.2024.06.12.02.14.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 02:14:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211241-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=POlHn2K8; 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-211241-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211241-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D9ACC1C2108C for ; Wed, 12 Jun 2024 09:14:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5EB316D9BA; Wed, 12 Jun 2024 09:14:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="POlHn2K8" Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.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 2BF3516D9AE for ; Wed, 12 Jun 2024 09:14:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718183659; cv=none; b=drAIjfUtEu0jR9YFL+KOysws43uoUnOJ9h+v47v4NJRDxCIj7bNq0wR8sOGH2wnK1bHNDn8c7SV6V5xbRZRioIz9FzsN8FBCWccVTxs5NDabapOyizs5gBylMOVAXRg6iYqOITWGliePZVNhrNmnabCvr6pX9qlcnoAKEnJCzA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718183659; c=relaxed/simple; bh=lq1eU0vpMLl56ol1AwiLEckTSeXqVCaUqwWvJlzswOI=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=ZPibo52HQ30ZcCAy92lEKQNnl1BEAWJRp1qXXRpjiFrfrNy3aBhSAdlOuxAkM24bUSH8Hs7Rv4UkdPh1rns/wC8sJZFY+h03AQCfqREoLntrRvRJV7cc6OhxOBWO63JRK4Tv73sp8ZJo94iUEYJgsclSy+mlzVfz1Bz907SZXc8= 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=POlHn2K8; arc=none smtp.client-ip=209.85.128.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-wm1-f44.google.com with SMTP id 5b1f17b1804b1-421b9068274so28018935e9.1 for ; Wed, 12 Jun 2024 02:14:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718183656; x=1718788456; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=C7+3ehk3k80azJprWFHz12j2AqrrZqNt2dQt3W1z4is=; b=POlHn2K8/DlgfTqG23+P6w8WoptK9AicCXx4S8FAA9GqkBSDfLatQ/8Uk7FOxreGuo 3SbRAwgBfOuKgPD0Dg6KE4HMGDABxx1oJF9AzB55B0LJNzM2JbTXwh/pKWdSSiGqhz09 9IeUE7ssNM25WVs4EsMEtfSe2zlJwVAXat0FjUj5jPwGvXne9ldV5ZboFbiZMaUJ6eWD Q+6mlcp3MVmtqzu2/6ge1YyP7t1J2XoaaoQ5QPQOoirdfIr9wxKdoNe2In28uZ3kXm3p bLShShV69Yg1hjCjNQpH1dcg0Twv+OL7YACRPZ8uH7mziyjPc7wBsit2FHgCq6XSmya2 UF6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718183656; x=1718788456; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=C7+3ehk3k80azJprWFHz12j2AqrrZqNt2dQt3W1z4is=; b=v/h/hkNkG5j2uz4mL/XmzmMqV7f0ANq067NAt981FRbCSYIWjvicQfWRo1hr4BQbVJ 5oy84H33SoMf5yFZnHpI815VKP6Qk75Lh0v2CxgUiH0zI6F/QqyyqRLUz8y7mjezL6go NPTmHB+f4SVG8DneE8afAKdb39mbQ6rp2G2lMBxBPDZuGRy5vPYBMHDY9BPkwgf+jNt5 s2HwVWzdzrJvk0pkR33IHKP7CWtHSs+JszIneZ+PKEXFsuOr1VPpkjNqwwZ+QxKVm4ic aaunUrMG67dwD9+EVHdTdYYLECKfFyVn0dK4eLMVqnhEasFwEvPXZ5JJjAihu8gXRFZv fiJA== X-Forwarded-Encrypted: i=1; AJvYcCUeKCxqksYGMNljEqhirNO1s2CxQ7zywzluoQGpR6taVp+xZesAXbzmRCNMoObpgprCdezfFSK8dwCy0msX2Nf6N3xXr/oI2+oiA5gU X-Gm-Message-State: AOJu0Yw4InaZI++95MiDaiIadSjkd0lYbUPBQp4JEfr7dpjvGIdWhELQ E6pEB/p2FKPJm24Ie8MnLjtVxUyTX2xhNphlVq7Iuga2FeA0yAp4BPf4ldecc04= X-Received: by 2002:a05:600c:1d01:b0:421:2df2:2850 with SMTP id 5b1f17b1804b1-422865ad643mr9257465e9.31.1718183656306; Wed, 12 Jun 2024 02:14:16 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:30bd:bf21:eed1:8aeb? ([2a01:e0a:982:cbb0:30bd:bf21:eed1:8aeb]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4229c60f758sm4633975e9.20.2024.06.12.02.14.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jun 2024 02:14:15 -0700 (PDT) Message-ID: <6c78b68b-cdce-493e-bd26-0329a61607c0@linaro.org> Date: Wed, 12 Jun 2024 11:14:14 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: neil.armstrong@linaro.org Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH v2] drm/panel : truly-nt35521: transition to mipi_dsi wrapped functions To: Doug Anderson , Dmitry Baryshkov Cc: Tejas Vipin , quic_jesszhan@quicinc.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <3288287d-8344-4b37-a333-722cf12fef13@gmail.com> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat7Gkz/iuBQJk Q5wSAhkBAAoJEBaat7Gkz/iuyhMIANiD94qDtUTJRfEW6GwXmtKWwl/mvqQt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type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 11/06/2024 23:12, Doug Anderson wrote: > Hi, > > On Tue, Jun 11, 2024 at 2:10 PM Dmitry Baryshkov > wrote: >> >> On Tue, Jun 11, 2024 at 08:57:48AM -0700, Doug Anderson wrote: >>> Hi, >>> >>> On Tue, Jun 11, 2024 at 7:44 AM Tejas Vipin wrote: >>>> >>>> Use functions introduced in commit 966e397e4f60 ("drm/mipi-dsi: Introduce >>>> mipi_dsi_*_write_seq_multi()") and commit f79d6d28d8fe >>>> ("drm/mipi-dsi: wrap more functions for streamline handling") for the >>>> sony tulip truly nt35521 panel. >>>> >>>> Signed-off-by: Tejas Vipin >>>> --- >>>> >>>> Changes in v2: >>>> - Fix patch format >>>> - Fix code style >>>> >>>> v1: https://lore.kernel.org/all/485eef24-ddad-466a-a89f-f9f226801bb7@gmail.com/ >>>> >>>> --- >>>> .../panel/panel-sony-tulip-truly-nt35521.c | 435 +++++++++--------- >>>> 1 file changed, 209 insertions(+), 226 deletions(-) >>>> >>>> diff --git a/drivers/gpu/drm/panel/panel-sony-tulip-truly-nt35521.c b/drivers/gpu/drm/panel/panel-sony-tulip-truly-nt35521.c >>>> index 6d44970dccd9..5a050352c207 100644 >>>> --- a/drivers/gpu/drm/panel/panel-sony-tulip-truly-nt35521.c >>>> +++ b/drivers/gpu/drm/panel/panel-sony-tulip-truly-nt35521.c >>>> @@ -44,248 +44,231 @@ static void truly_nt35521_reset(struct truly_nt35521 *ctx) >>>> static int truly_nt35521_on(struct truly_nt35521 *ctx) >>>> { >>>> struct mipi_dsi_device *dsi = ctx->dsi; >>>> - struct device *dev = &dsi->dev; >>>> - int ret; >>>> + >>>> + struct mipi_dsi_multi_context dsi_ctx = { .dsi = dsi }; >>> >>> It's not a huge deal, but normally in the kernel all the variable >>> declarations are cuddled together. AKA no blank line between the >>> declaration of "dsi" and the declaration of "dsi_ctx". It would be >>> awesome if you could send a v3 fixing that. When you send v3, feel >>> free to add this above your own Signed-off-by: >>> >>> Reviewed-by: Douglas Anderson >>> >>> ...with that, the patch will probably sit on the mailing lists for a >>> week or two and then get applied. Neil may want to apply it, but if >>> he's busy I can do it too. >>> >>> I believe you were planning on tackling some more of the panels. Since >>> you're still getting started sending patches, maybe keep it to a >>> smaller batch for now and send another 10 or so? Probably best to keep >>> it as one panel driver per patch. >>> >>> -Doug >> >> Do we want to delay this until the mipi_dsi_msleep() is fixed? > > Yeah, that's a good point. I saw the mipi_dsi_msleep() problem after I > reviewed this patch, but you're right that it should be fixed first. Yeah it should wait after mipi_dsi_msleep is fixed. Neil > > -Doug