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 CD2CDC54E76 for ; Tue, 17 Jan 2023 18:46:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BDC2C855CE; Tue, 17 Jan 2023 19:46:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.b="vs5fvJeL"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="7Tuqxwe5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F2C58855E0; Tue, 17 Jan 2023 19:46:16 +0100 (CET) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (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 7D583855CB for ; Tue, 17 Jan 2023 19:46:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=msuchanek@suse.de Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 4911935100; Tue, 17 Jan 2023 18:46:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1673981173; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=upRuKudrhHJLu5RtbjaQLIZfKx/pfobOFWU2q7DbBrk=; b=vs5fvJeLD6W1BP/+nBLQT+3Rp5Zx2l8lN1/GcCs/j75B134hoQOP3vANmFqArQN4FJWush e0sg6tko+UN7etQEeROoT7UnK/NFq+Yz9wmLXmBctoD58PL/4JHaygiDBx/OD2w6+MfCWi uV3KMoA4U3xliW9viEcpOr5SczIQqlE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1673981173; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=upRuKudrhHJLu5RtbjaQLIZfKx/pfobOFWU2q7DbBrk=; b=7Tuqxwe5UQqFgpCMa4n5KRlz1tWMTQ0uqW7BlWwjWnMQTA8yt5MTADNDrs4B0MzqqzEOdP 0BxkaoERNoI/k0Aw== Received: from kitsune.suse.cz (kitsune.suse.cz [10.100.12.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 2281C2C141; Tue, 17 Jan 2023 18:46:13 +0000 (UTC) Date: Tue, 17 Jan 2023 19:46:11 +0100 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Filip =?utf-8?Q?=C5=BDaludek?= Cc: u-boot@lists.denx.de, sjg@chromium.org, twatson52@icloud.com, marex@denx.de Subject: Re: [PATCH v3] console: usb: kbd: Limit poll frequency to improve performance Message-ID: <20230117184611.GK16547@kitsune.suse.cz> References: <6434bd15-88e5-c5af-6267-77d504d7cf49@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6434bd15-88e5-c5af-6267-77d504d7cf49@oracle.com> User-Agent: Mutt/1.10.1 (2018-07-13) 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.6 at phobos.denx.de X-Virus-Status: Clean Hello, On Sat, Dec 17, 2022 at 01:49:47PM +0100, Filip Žaludek wrote: > > > Hello, > change seems to be unfriendly to RPi3B+, it allows to enter 'U-Boot>' shell but usb keyboard > does not respond. Keyboard is detected by 'usb info' in v2023.01-rc3, not in v2022.10. > When reverted, usb keyboard works as expected. > > Anybody sitting front of RPi3B+ care to confirm? For me an USB keyboard connected to a Raspberry Pi 3B+ is only detected when something is typed during the probe. The message usb_kbd usb_kbd: Timeout poll on interrupt endpoint is a sign of nothing typed on the keyboard and then it does not work. It is limitation of the dwc2 hardware with hardwired USB hub. Same on both v2022.10 & v2023.01 rpiarm64 and rpi_3 configs. Thanks Michal > > > Regards, > Filip > > > > > > Patch: > https://github.com/u-boot/u-boot/commit/96991e652f541323a03c5b7e075d54a117091618 > > > Debug: > USB KBD: found interrupt EP: 0x81 > USB KBD: set boot protocol > dwc2_submit_control_msg: dev='usb@7e980000', udev=000000003af4be00, > udev->dev='usb_kbd', portnr=3 > USB KBD: set idle interval... > dwc2_submit_control_msg: dev='usb@7e980000', udev=000000003af4be00, > udev->dev='usb_kbd', portnr=3 > USB KBD: enable interrupt pipe... > usb_kbd usb_kbd: Timeout poll on interrupt endpoint > > > Tested: > SW: v2022.10 & v2023.01-rc3 compiled from sources as 'rpiarm64' > HW: USB 1.1 and 2.0 keyboards, RPi3B+ > JeOS: > http://download.opensuse.org/ports/aarch64/tumbleweed/appliances/openSUSE-Tumbleweed-ARM-JeOS-raspberrypi.aarch64-2022.10.11-Snapshot20221112.raw.xz > (u-boot-rpiarm64-2022.10-1.1.aarch64) > >