Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3282720pxk; Mon, 5 Oct 2020 06:06:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkD3qtR07afQBghQ7a4xOiOJOP6qX41Nj7BPUs6K1xfP7PAcZQEDkOAat/HjfxhUZTqYGT X-Received: by 2002:a5d:5751:: with SMTP id q17mr18014818wrw.409.1601903187966; Mon, 05 Oct 2020 06:06:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601903187; cv=none; d=google.com; s=arc-20160816; b=JOnqBs8PCOxn3U7RhT+DwZQSXersOjBXrxEvVlhxNnGWDPcpmbIVBWUHDv43jX31e/ I/mgN6pd17Tx/4vDf+0l/sahAsn9/SSBDTd39J7S5DqnmGZJq80D/mDkTWyjOfBFz92i EvE13xcOGaJ0q1stUzCny5IqON82632GR/nbOYF1LL8W3l9g9wimID5qcIM5b1il5t+H ry9LO4n+MtvO1X02IrFxzZk8dcUri5BMjBdyfHV9X6i+umSeF5NxDCSvbCt6gaghYDqX 59voV9fU3xEpt2Sursi68mQ0xevdS9DElFJgRCafgZNVr3TRR6Ss/Ow3sgXEDyFSlGFm nUKA== 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=JVenZdX/bYrpXzrrKI033mHNmqikvH8upN6Y3AEMpFJOKaC4p8eLtXjxIfnz82Jc+7 JmM8WWbYSaNE+KgOrZiQnHf1v8MwtnlvrZP01kzbxgb8fx+56pI3odjKC98J9HkaZC7/ raXn/mSXPE4iT6ar8xHuKO8N7+vrUDi5uu2lQRu1fNPm+sxPO4VgvOPi+t7Fyb5Oh2XB xw2CeYnj+UU9aI3dUlLByNB4ISeuMkMTAq55FTgHGihZqoacC6tddEgwchmla/Sszv+w gJIQRrh23bIrrXADZipkYg0K3Sm0okFeMnmKeU8VZWAv+xwW6R7uhlr76zpnI5XqwLxp E2fQ== 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 o9si7525634edj.182.2020.10.05.06.06.03; Mon, 05 Oct 2020 06:06:27 -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 S1726670AbgJENCg (ORCPT + 99 others); Mon, 5 Oct 2020 09:02:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726432AbgJENBq (ORCPT ); Mon, 5 Oct 2020 09:01:46 -0400 Received: from smtp3.goneo.de (smtp3.goneo.de [IPv6:2001:1640:5::8:37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3518C0610CF for ; Mon, 5 Oct 2020 06:01:45 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.goneo.de (Postfix) with ESMTP id 762552402A1; Mon, 5 Oct 2020 15:01:44 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -2.954 X-Spam-Level: X-Spam-Status: No, score=-2.954 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=-0.054, BAYES_00=-1.9] autolearn=ham Received: from smtp3.goneo.de ([127.0.0.1]) by localhost (smtp3.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 76m9is3wG2YP; Mon, 5 Oct 2020 15:01:42 +0200 (CEST) Received: from lem-wkst-02.lemonage.de. (hq.lemonage.de [87.138.178.34]) by smtp3.goneo.de (Postfix) with ESMTPA id 537982402D3; Mon, 5 Oct 2020 15:01:42 +0200 (CEST) From: poeschel@lemonage.de To: Miguel Ojeda Sandonis , linux-kernel@vger.kernel.org (open list) Cc: Lars Poeschel Subject: [PATCH v4 26/32] auxdisplay: hd44780_common: Reduce clear_display timeout Date: Mon, 5 Oct 2020 15:01:22 +0200 Message-Id: <20201005130128.3430804-14-poeschel@lemonage.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005130128.3430804-1-poeschel@lemonage.de> References: <20201005130128.3430804-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