Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1233148rdg; Fri, 13 Oct 2023 14:43:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHVS7nu1mkAHdESJ4UA7gV78Al/TLCvZ5Kf9pZNF4qwFwqulzJYij4IcKlOOhxQiHcCtglf X-Received: by 2002:a17:90a:e610:b0:27d:8ad:c4e1 with SMTP id j16-20020a17090ae61000b0027d08adc4e1mr8590858pjy.19.1697233432626; Fri, 13 Oct 2023 14:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697233432; cv=none; d=google.com; s=arc-20160816; b=duocAPiD2xUZ+8bIH2eo2pzX0yKLB0gM9C4OWcmKnKP0ZW8dLxPtnUXcYmqmjJodng xpL0N5Tptui2IIE3ptH26v6M9WTkIhDM4W0fx3TfYDhn3YSGGMG/aBeRo7lMVzSP2/CU G8Ak4a3HXybj/1um4GmxMZq5sprDbW3QCsfsXxgnRQzH8LU8eqswXB+zhG98MzAymAV3 gJKdQYH0QkXLz4CENpDoU3GGoIKxIBS7WluMKPR5OjriCFoKc42s2lJZImP7UsNQBzOO Bm/oA0NDFyEr2HoLjboPPrVaJ9cagf/mwIxBIYiQaq5YnYlZpY42UUiK+Yo9ZxVCbUdy KFqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=t3zoiWUdkneBEaFk5I7hrAkCBa7NtffBoDcVnMT2q3A=; fh=dr62qdri0naaBXN8udU8DAXTqV165m3QhYlhprE7QnU=; b=sAPAJxhrdEYAr49ngUozNNko3L7qcVXQw1H0wrHKXPUU8bQbNJLON6zuV0c/fwvsK6 oyo2Zzmd5oOu7nDrpAQrMG1VkXoBnFls/jr1KgPgltIp3hYWyv75iRkfXtWVVWoR3kgE HYr/iA2iwC+X76Svt577Ln44pTdnlHM+yeIA8XL1ur0xF4V4jG3Jro+sWC1oZQm+siAC G10omI1O2jF8XGVIu+XRBvsnNmwxMbAq5VbwNMOXDmhyLSqMVh5WAbGn5mj8Ukhe6vBj 8y2Y1iCY2SEl6zDD3uuZW05x958yAYO0HVf2jWKMU0U7O6yMpXrddNiCmxtE/1P4XKgH fl5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=tNHg9Ika; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id n6-20020a17090a9f0600b00278f79e4fabsi914498pjp.93.2023.10.13.14.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 14:43:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=tNHg9Ika; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 0A51382F3067; Fri, 13 Oct 2023 14:43:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229830AbjJMVnh (ORCPT + 99 others); Fri, 13 Oct 2023 17:43:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbjJMVng (ORCPT ); Fri, 13 Oct 2023 17:43:36 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6CB9BE for ; Fri, 13 Oct 2023 14:43:34 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-405459d9a96so8375e9.0 for ; Fri, 13 Oct 2023 14:43:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697233413; x=1697838213; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=t3zoiWUdkneBEaFk5I7hrAkCBa7NtffBoDcVnMT2q3A=; b=tNHg9IkarHtwex26EQje5icpzQNnK3ambPpCUGxgPZi1qKTFVGuNHSK41XkUxZ4Yrn /pQoVWv6j4L2P/No55OSE7qtRQYWHfrJ0REUzN3d3Rhe6FJKV16j9iJbhRtMbVU06hAX 8LAbWjyMCu5Yp9P9FZczd68WJL6YaFUIAUo7eDC0yS6BrqJ5rudKLdFRwOilENxymofN IgCLEGrEPFppZKZ8XHnPz5XOqK0JVLFfMX+CijXMNipW+7kRaqcX03dUlxS+G9BR/+fA ZadMpQukzYmspKt3gC7RU5PP21f4BpyKiuOl40ya4Rfi1Hved6dQlKWI7idc0CIEBSI7 K1oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697233413; x=1697838213; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t3zoiWUdkneBEaFk5I7hrAkCBa7NtffBoDcVnMT2q3A=; b=ihP5mK/hT3ADrBe/R8H5VzdU+YBJQ7es5toTHQyTIcWsys59MTSwBT1o1vcnNZb8+h O0P2HLv/Qddv8bRO3PTg7a81ZJId+fOmaLhfY49whD4r5jROGux+VeQMaClli3RwrB+D Tnx1eOz6XN1Y2CHELHygb8jKXlbl4P/Fu41rYe4zaMm/7e8R7TrSGl4ssKlYl7x93mXa YGms1y3vV+UIPQg//i3NLFt0cDu4sg/BKuRnNFOw/yHImLjPBRzmKThNHOWblF0tB5+M yuKYxv06pxdKsUpPo9+O6FlUu/8rqmaTNmXWcSI5yug4hul6rKHAzQkNqCJ/bwkjbOch CaWg== X-Gm-Message-State: AOJu0Yyj2zM42jyy/SK4oK95iNX14BKaS2SIAxpzUS8zQzTVQQ1U6Jm1 /hdqsBFtUKQt74g0n0UleGd2QjvWsdSI8joDpvg2Aw== X-Received: by 2002:a05:600c:4e09:b0:3fe:eb42:7ec with SMTP id b9-20020a05600c4e0900b003feeb4207ecmr5476wmq.1.1697233412882; Fri, 13 Oct 2023 14:43:32 -0700 (PDT) MIME-Version: 1.0 References: <20231013091844.804310-1-yangcong5@huaqin.corp-partner.google.com> <20231013091844.804310-3-yangcong5@huaqin.corp-partner.google.com> In-Reply-To: <20231013091844.804310-3-yangcong5@huaqin.corp-partner.google.com> From: Doug Anderson Date: Fri, 13 Oct 2023 14:43:12 -0700 Message-ID: Subject: Re: [v4 2/3] drm/panel: ili9882t: Avoid blurred screen from fast sleep To: Cong Yang Cc: sam@ravnborg.org, neil.armstrong@linaro.org, daniel@ffwll.ch, hsinyi@google.com, linus.walleij@linaro.org, swboyd@chromium.org, airlied@gmail.com, catalin.marinas@arm.com, will@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 13 Oct 2023 14:43:50 -0700 (PDT) Hi, On Fri, Oct 13, 2023 at 2:19=E2=80=AFAM Cong Yang wrote: > > At present, we have found that there may be a problem of blurred > screen during fast sleep/resume. The direct cause of the blurred > screen is that the IC does not receive 0x28/0x10. Because of the > particularity of the IC, before the panel enters sleep hid must > stop scanning, as i2c_hid_core_suspend before ili9882t_disable. > If move the ili9882t_enter_sleep_mode function to ili9882t_unprepare, > touch reset will pull low before panel entersleep, which does not meet > the timing requirements.. So in order to solve this problem, the IC > can handle it through the exception mechanism when it cannot receive > 0x28/0x10 command. Handling exceptions requires a reset 50ms delay. > Refer to vendor detailed analysis [1]. > > Ilitek vendor also suggested switching the page before entering sleep to > avoid panel IC not receiving 0x28/0x10 command. > > Note: 0x28 is display off, 0x10 is sleep in. > > [1]: https://github.com/ILITEK-LoganLin/Document/tree/main/ILITEK_Power_S= equence > > Signed-off-by: Cong Yang > --- > drivers/gpu/drm/panel/panel-ilitek-ili9882t.c | 22 ++++++++++++++++++- > 1 file changed, 21 insertions(+), 1 deletion(-) As talked about in response to the previous version [1], we can work to see if we can improve the sequencing. However, for now this seems fine. Reviewed-by: Douglas Anderson [1] https://lore.kernel.org/r/CAD=3DFV=3DW_LT9mPYKjaKP3OvUDeNpsZxkhVN9NP_hQ= +Es6Fe3dVw@mail.gmail.com