Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9EDB8EB64D9 for ; Mon, 10 Jul 2023 14:03:07 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D8E28859AD; Mon, 10 Jul 2023 16:03:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="QWuI8jaS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9BF10865D7; Mon, 10 Jul 2023 16:03:04 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C523F8466A for ; Mon, 10 Jul 2023 16:03:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1EF9360FB5; Mon, 10 Jul 2023 14:03:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5DFD9C433C7; Mon, 10 Jul 2023 14:02:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688997779; bh=HLz78rrlPJivf+OAtCuUOigmcNp9XAWiuBICRonIr9s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QWuI8jaSJstIYa7PxC3qSfdepZOGjxdf+VF2wuMkSNXFHbmOAPpgQDNW/+812qnME M8IZR3Va6kOkdwVpWgIpMpM1AE0QN+DBs6wSfnO0/DOfWhJt4pXV8y93FTfBXiA0ch qBZhIJtBRhRZekFBGPRQOU/KbGMD02lx4fU4OF1WV5OqL77EJT+PhpTKjVpefqYCTt VjrMewbCfwD4Sz5gojiYvLHJig7l8spqlbuN/o3Mvt14YEMzhvAoAoq4E8upFc+Xqh LHfOeSYaLs2S0GUJE5ABquHoYp0PZmX7d4vZCQgCgNROTI9riVonh9cRiZHGXBCBob cbOR4QNpiSy0Q== Received: by pali.im (Postfix) id 8B1257AB; Mon, 10 Jul 2023 16:02:56 +0200 (CEST) Date: Mon, 10 Jul 2023 16:02:56 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Simon Glass Cc: U-Boot Mailing List Subject: Re: [PATCH 0/6] nokia_nx51: Attempts to debug keyboard Message-ID: <20230710140256.bsufdyysnml4kg5u@pali> References: <20230617104956.1402370-1-sjg@chromium.org> <20230624084414.znxp6kvwr7qy73yg@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On Monday 26 June 2023 10:07:35 Simon Glass wrote: > Hi Pali, > > On Sat, 24 Jun 2023 at 09:44, Pali Rohár wrote: > > > > On Saturday 17 June 2023 11:49:47 Simon Glass wrote: > > > This series is an attempt to get the keyboard working properly with > > > bootmenu. > > > > > > It fixes the board's tstc() function, which should be in drivers/input > > > > > > It also adjusts stopping of the menu autodelay - it should only stop when > > > a whole escape sequence is received, not when the first escape character > > > is received. That is pretty minor, so we could drop that patch. > > > > > > This series also adds some debugging output. This seems to make things > > > work correctly, suggesting that there is some other problem. > > > > > > I also see this message fairly often: > > > > > > cyclic function rx51_watchdog took too long: 10000us vs 1000us max > > > > > > > > > Simon Glass (6): > > > menu: Re-enable the ANSI codes > > > nokia_rx51: Correct tstc() implementation > > > bootmenu: Cancel delay only when a real key is pressed > > > boobtmenu: Add debugging > > > getch: debugging > > > menu: Add debugging > > > > > > board/nokia/rx51/rx51.c | 3 +++ > > > cmd/bootmenu.c | 19 ++++++++++++------- > > > common/cli_getch.c | 23 ++++++++++++++++++++--- > > > common/menu.c | 7 ++++++- > > > 4 files changed, 41 insertions(+), 11 deletions(-) > > > > > > -- > > > 2.41.0.162.gfafddb0af9-goog > > > > > > > Hello, it looks like that this patch series is not finish yet (contains > > some commented code, etc.). Anyway, I have tested it and it makes it > > even worse. For example PAGE DOWN key in bootmenu on emulated UART > > terminal completely stopped working and do nothing. So this patch series > > still does not fix this problem. > > Indeed, but I was hoping it would help you to find the problem. > > The keyboard driver is currently returning 0 from tst() even when > characters are available (i.e. a call to getc() will return valid > chars but tstc() returns 0. No, look again, rx51 tstc is returning 1 if there is something in SW buffer. > I attempted to fix this, but perhaps you > can do a proper fix? With that bug in place, it cannot work properly > with the menu. > > See the docs for tstc: > > /** > * tstc() - check if a key is available > * > * @dev: Device to check > * @return 0 if no key is available, 1 if a key is available, -ve on > * error > */ > int (*tstc)(struct udevice *dev); > > Regards, > Simon I think it matches doc; I do not see issue here.