Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4169860ioo; Wed, 25 May 2022 17:13:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLAQnsBIPaVQXDidCLIQmB/tCxpWy4bMu78PXgCYks/6RPBIeJ8PFEE4ADotMFPdAFqwq5 X-Received: by 2002:a17:907:7b9a:b0:6fe:c383:8559 with SMTP id ne26-20020a1709077b9a00b006fec3838559mr19284887ejc.580.1653524034400; Wed, 25 May 2022 17:13:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653524034; cv=pass; d=google.com; s=arc-20160816; b=bD1cRP9oZazVAO+F0qSiCpLbM03XaPBx42lvnI3mOC4AQZLiqlSDA4Z6U3+j6cVgeI GkMT/QfvRMzHPolO7QqgwlSJ6PymQiJXdgeej6Jyu7isRQV7uOkyjwEI4+QyGuuMQOJ7 Br35DR3HhhJnpDYNP+ZjGI8DsAnWL8XJbkGfQc8cn/zYnmb47Zpw5px7CR3sr64hdfZ2 Xf+QDZCSeRazDiXOuV5OHIDXqCmyfWEdeg9GUdrX64dZekT5UHhBiVH0gSHI+r40qemW 241ajAKEzbBcv0WzuKuJ92qIRJ4ij58BBd9uUie2qgUPm8F9YUBrKvPnJXgPEJ6ci1Cx KbUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:content-language:references:cc:to:subject:from :user-agent:date:message-id; bh=t8wr6wl/CCBGhOuJDN2GHKtgz9DrY8qxIHlWYDCAPjc=; b=dqYBiBzMMgkJKlP3g7Q6tRc04sD55RaIDsZarsLHhIxohol4TBlkv4eWsuzJpMOcaW nHqOB/01kSAajtNr2tW9jufpwdHuvQs5FA3F/Bx6/NAlEZ3tcVkqMuLu99CFo0nddyGK S97vkETrIyk7IVFSkcPayDGjgssvaYKK3s5FWtJSWAv4+y8Wq5Y9V1olx3T9GlgyD2bQ f9T4VwdVnv5eb1/bdrz/HoofWPi3wUkNkuf/nJ5yCpfaT0zuvWae7QJrc9W2db935sWH RBuePhPVhb7UU+JCn+Q+wrcBjq13U1nzqN4BsncsREEAXBjG6zgtEEFFBovAuoag2bfv EKgQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jsfamily.in Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u20-20020a509514000000b0042bcb0a590esi93571eda.181.2022.05.25.17.13.28; Wed, 25 May 2022 17:13:54 -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; arc=pass (i=1); 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jsfamily.in Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243672AbiEYNEM (ORCPT + 99 others); Wed, 25 May 2022 09:04:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233151AbiEYNEL (ORCPT ); Wed, 25 May 2022 09:04:11 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12olkn2095.outbound.protection.outlook.com [40.92.23.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7031E75; Wed, 25 May 2022 06:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lJmpA0zXd0dr2yzhoZ5x210LPQXJnwzOsiFxPqU8nxFWNCvyjJvacb8HcM+5wCjEre90hcx/l1t2sPR1wNhzZBAQU7rZYJVcvmAqjl0CP7ahigYjRYOxEBVcbY2BGDS3oULr3MY1k26l52ybzme3Wyu8Bk3B//nGquhPs6iefohnmS/7jZFHuWjgbN8erLgvHVMcG2j2ayWU2gKuXUxMKHAzH1sG8BblyO9+ZNcot1QZCrNsVV4sjNdlpXLd5QtRK6IUV2KDe6OTQTLjjkqtTzzDeszm+erOsGr8dIiuZEpL+0hZH5MD+wIpunKCkvlZBXk8ZGepU6eV5Q57RUyuwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=t8wr6wl/CCBGhOuJDN2GHKtgz9DrY8qxIHlWYDCAPjc=; b=KcaQS+Lr93RxMx94/ymnBCpKFT+jaq1luaP5HfEx4xyeo6H2tuR5GllDbTzWbUibkWTkzCSwPSAzVXgdWJZeGBlhwsj8BM8NGoL570ZreoyY+9wCwxYzO5WjSELPrHch4J5tVh2SOIHTKRSoNS0uCD2h5xej5lIXJaTHCZ31jlh1gljjmZZA+m2B54+GDjDrRqefICrp9TFoxz6wmNORndmXW0eTenkqKQIL8dPkr4fQBTtkc083S7lXFXpexy2cHO0w3ofnI3vBRdEcCtWbpgqsVFt5U5zLXTnGlrP7hYLVPAtb8roowSV3NJqbUUKbl5OU7XlDpaUrmeMAyd7JRw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from BY5PR02MB7009.namprd02.prod.outlook.com (2603:10b6:a03:236::13) by BYAPR02MB4743.namprd02.prod.outlook.com (2603:10b6:a03:43::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.15; Wed, 25 May 2022 13:04:06 +0000 Received: from BY5PR02MB7009.namprd02.prod.outlook.com ([fe80::303a:ab1:17c1:2d16]) by BY5PR02MB7009.namprd02.prod.outlook.com ([fe80::303a:ab1:17c1:2d16%9]) with mapi id 15.20.5273.023; Wed, 25 May 2022 13:04:06 +0000 Message-ID: Date: Wed, 25 May 2022 18:33:52 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 From: Joel Selvaraj Subject: Re: [PATCH 3/3] drm/panel: introduce ebbg,ft8719 panel To: Linus Walleij Cc: devicetree@vger.kernel.org, Hao Fang , David Airlie , Sam Ravnborg , ~postmarketos/upstreaming@lists.sr.ht, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Oleksij Rempel , Rob Herring , Thierry Reding , Krzysztof Kozlowski , phone-devel@vger.kernel.org, Shawn Guo , Stanislav Jakubek , Corentin Labbe References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [MH0SfL2yaLWPYC8YG5PuYySeDO4bUJ2z4f+gTErKT6p763BPRR4OamapwxW16J09] X-ClientProxiedBy: PN3PR01CA0055.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:99::10) To BY5PR02MB7009.namprd02.prod.outlook.com (2603:10b6:a03:236::13) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ef49c964-2ea9-462d-482c-08da3e4f0ba1 X-MS-TrafficTypeDiagnostic: BYAPR02MB4743:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UAERbL+/T4rBvrW3n9EIw1g7p7MdMVUdyb1jMjqlU3CL+DnSLxd/qWycYbzVPe0Sa/kuav73jJ7VfpRAuSZ11XFhriGE5i4ClDtwUwxO0hrwbRna/P7liJ25xllCL0Mdodh+r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XTUt3V3B6eGNHKzdXNVp3aFJzWXBnVUZhcmxFSmgvTWto?= =?utf-8?B?L3FoT0FnQ1FudmxMMFEvMXNBaDZkSHZIcTN4ZFF1dEpOOUFoczgySUtFbjRX?= =?utf-8?B?QnJQcWNSblZqcVpOb3VlTEx2OWFjRHZxWmlEOTFiYjhBM1R3WEV4eStKaVVa?= =?utf-8?B?MldURTlHVnJFeUo4VDZMNHNZMm9oa3E0MWdCckwyVDdyUmg1NVBEdVFJWTJ2?= =?utf-8?B?dzlWQnBzKzg1T2FzdmYzRWptWnk0a0pCcjFxa2NkNkd4WU1ZOFl2NXFaOTZ0?= =?utf-8?B?aGdvTzNoem1EK3ZGQ1NJcTFNVm05UUpoQWlaWWhxVzNHeW5zdXY5bVVoVncv?= =?utf-8?B?WnQxTUtXRUtRcUdDVnpFczhDWnAxZzNyTER3MEVUbTV5WUZ1ckJRVTFkZXda?= =?utf-8?B?aHdMZkkybmJJZ2hlZ3NSeHhnOER1S2pmT2E0WXdBUW85QWR3MmlJVzJlbnhZ?= =?utf-8?B?Q2d0eHNlVTZPemliWWh6QzRjNDZZL2VWZlpaMjdDRVVRUWRWZWdQWC83aWN2?= =?utf-8?B?S0s2VTBoS2xLSDRmVXJ1dTQyeEtVbWN5Wk1jNElJY0EyYzJ2VTVZTVU1RHND?= =?utf-8?B?Qm1Nbi9sdmwra0tMSDNRVnZyL0M3eXhvSzI0ZFYvcXNCRHF4aDVMbDFKN3F6?= =?utf-8?B?dkEwMWo3c253PT0=?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-99c3d.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: ef49c964-2ea9-462d-482c-08da3e4f0ba1 X-MS-Exchange-CrossTenant-AuthSource: BY5PR02MB7009.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2022 13:04:06.8563 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB4743 X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Linus Walleij On 19/05/22 14:39, Linus Walleij wrote: > Nope. But add the rate limited error print please! Will do. >>> Lots of magic numbers. You don't have a datasheet do you? >>> So you could #define some of the magic? >> >> Unfortunately, I don't have a datasheet and the power on sequence is >> taken from downstream android dts. It works pretty well though. So I >> don't think I can #define any of these magic. > > If you know which display controller the display is using (usually > Novatek nnnnn, Ilitek nnnn etc someting like that) there is often > a datasheet for the display controller available but the display per > se often obscures the display controller. Well, I recently figured that the panel works perfectly without all the magic commands. So, no need for #defines of those magics/documentation for now. >> > Doesn't it work to combine them into one call for each >> > pair? >> >> + dsi_dcs_write_seq(dsi, ); >> >> + dsi_generic_write_seq(dsi, 0xff, 0x87, 0x19); >> >> By using a macro? We can... but I am not sure what (0x00, 0x80), (0x00, >> 0xa0),etc type of commands signify without the datasheet, so I am not >> sure what to name them in the macro and make any sensible meaning out of it. > > I meant just sending dsi_generic_write_seq() with everything in > it: > > dsi_generic_write_seq(dsi, 0x00, 0x80, 0xff, 0x87, 0x19); > > Instead of two writes. Doesn't this work? I am not sure about whether it will work. Can multiple DCS commands can be combined into single write? Don't know much about this. Anyways since the panel works without all these magic commands, these will be removed in the next version. > Yours, > Linus Walleij Thanks and Regards Joel Selvaraj