Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3249166pxk; Mon, 5 Oct 2020 05:15:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy25w//S9B+C+AC9C9NMxC7gLM1pb4jSn+eShyKtq73Oeb6f/Uc/m06nISyn8dtHXaTtroQ X-Received: by 2002:a50:d68a:: with SMTP id r10mr17508556edi.9.1601900120240; Mon, 05 Oct 2020 05:15:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601900120; cv=none; d=google.com; s=arc-20160816; b=u32L1M2FA83FO2sBhuO0XQhAzZXKjE68znUg5j48OKS+7x5wLBUMgNCi9ntB5eY/ze /haxaTH+RsivVN/Ji0a7YYVta/J04tmolgyQeweBXm47rlbtRZfAeP+N5VYCzDowfRjz x2+oxY/FQwZmdF8X6RkAh4alLqZxP3N2/PXrf3sppQqPPMSXf6YJVgYsLIgV5wRp83D2 hAuWxgWvwkFzfRLb82BwCUf/Ej0YCYNd3oJQMocbs9NHeR/FDB6UbDLtaROIwWgNW7Lj W9D8JhPxpZUS2J3Fva+5RSflRrMEUdSB8AC3fcEko37UcFgEq7BexnlMaKABAs+OGb7k Ea6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=btmlk8PpJgg9lbU2ZCqFQ1oRjwnLgLfq07filEX0Uvg=; b=TAjQ8udofx+pYyoTA/srAdU44zn9Hv8y5sCtTkZuHxokN1W50WR4Zdx0W2Ya+dY2MU izgCZagmprVdw/mkNvXebaIi41uude1MF1nr2g6+zJ4MBADS6uMZAf/j2xH4C5eiwkRt Lpv/G/hmx+StWe32u/Vke9gt/BDmUpCkQMXEE8V9oPcwtrZlJhTQgARL/0qDptcnxdZP 3bRN4bIn1EmU81K6jjm54GJ8xfZ1LUJ2LgxNcUFmYmttcBuQ/u+jfXIGAMrarNun19ae TycMK8dsBBzsH3iaz036gxLB3v41rdLCL/dt7tBnJJdrGEA/3CyoL4DtnpOxj5ajqPm1 QiqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i20si1666662ejx.686.2020.10.05.05.14.57; Mon, 05 Oct 2020 05:15:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726645AbgJEMNS (ORCPT + 99 others); Mon, 5 Oct 2020 08:13:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726431AbgJEMMi (ORCPT ); Mon, 5 Oct 2020 08:12:38 -0400 Received: from smtp2-2.goneo.de (smtp2.goneo.de [IPv6:2001:1640:5::8:33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77AB6C0613CE for ; Mon, 5 Oct 2020 05:12:38 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.goneo.de (Postfix) with ESMTP id 5D3E7241E23; Mon, 5 Oct 2020 14:12:37 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -2.983 X-Spam-Level: X-Spam-Status: No, score=-2.983 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.083, BAYES_00=-1.9] autolearn=ham Received: from smtp2.goneo.de ([127.0.0.1]) by localhost (smtp2.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g1CzRiA395l0; Mon, 5 Oct 2020 14:12:35 +0200 (CEST) Received: from lem-wkst-02.lemonage.de. (hq.lemonage.de [87.138.178.34]) by smtp2.goneo.de (Postfix) with ESMTPA id 621AB23FFD0; Mon, 5 Oct 2020 14:12:35 +0200 (CEST) From: poeschel@lemonage.de To: Miguel Ojeda Sandonis , linux-kernel@vger.kernel.org (open list) Cc: Lars Poeschel Subject: [PATCH v3 26/32] auxdisplay: hd44780_common: Reduce clear_display timeout Date: Mon, 5 Oct 2020 14:11:54 +0200 Message-Id: <20201005121200.3427363-27-poeschel@lemonage.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005121200.3427363-1-poeschel@lemonage.de> References: <20201005121200.3427363-1-poeschel@lemonage.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lars Poeschel Digging in the hd44780 datasheet revealed that the timeout needed after clearing the whole display is only 1,64ms not 15ms. So we can reduce that timeout. Link: https://lore.kernel.org/lkml/20200922092121.GG16421@1wt.eu/ Link: https://www.crystalfontz.com/controllers/Hitachi/HD44780/433/ Signed-off-by: Lars Poeschel --- Changes in v3: - This patch is new in v3 --- drivers/auxdisplay/hd44780_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/auxdisplay/hd44780_common.c b/drivers/auxdisplay/hd44780_common.c index 82afae78f46e..fbce8835a650 100644 --- a/drivers/auxdisplay/hd44780_common.c +++ b/drivers/auxdisplay/hd44780_common.c @@ -83,8 +83,8 @@ int hd44780_common_clear_display(struct charlcd *lcd) struct hd44780_common *hdc = lcd->drvdata; hdc->write_cmd(hdc, LCD_CMD_DISPLAY_CLEAR); - /* we must wait a few milliseconds (15) */ - long_sleep(15); + /* datasheet says to wait 1,64 milliseconds */ + long_sleep(2); return 0; } EXPORT_SYMBOL_GPL(hd44780_common_clear_display); -- 2.28.0