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 E24DDECAAD2 for ; Sat, 27 Aug 2022 14:30:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E94598412C; Sat, 27 Aug 2022 16:30:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com 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=konsulko.com header.i=@konsulko.com header.b="ZpkC+7kd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6E45184220; Sat, 27 Aug 2022 16:30:13 +0200 (CEST) Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 51B528412C for ; Sat, 27 Aug 2022 16:30:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x829.google.com with SMTP id x5so3249261qtv.9 for ; Sat, 27 Aug 2022 07:30:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=amIrPLUY0q1gtA0asYDbwzJ2lNWEr4aYmhe9uA7W35Y=; b=ZpkC+7kdH1TKH96T0ZnavuepfhREbg6nHub9TseTOX+PmZUv6V4r7PDYU0HrkiMhEl wOnwrPPyYjQNbRk9XsdNw9tcp5mIgvx2jlqQIWONc7hsN/PCc18vhM4mF6UBiALRkSnT zx6pu6TxytYqHW8sSurV+zRWzDrZuQzQ9ju7c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=amIrPLUY0q1gtA0asYDbwzJ2lNWEr4aYmhe9uA7W35Y=; b=Am+n5pJUdb3DnnQ85sgZMrNkNL1nP47f6gb2ZWqOvStnonBRy+z//WN4fgSxVBoFmf ZPjbzFDn1WL23Tm+8+nF88j+FQfAthcTZ1YU/81o3QjFNvB/bMLe9hdpF9wfrQpUUnpa gIyzks6IFF/dyLfEs6042GsAj6P+x/3lSlyOKEa3PZSF7NDSH6BPITRoTntuot9wFs4e oG5u9P1f8DP2lxKeC293DSFhdhZ462NWsCNZZjapwEqoCcLc+hZfR8Wk2GdXsbi5vYZb 7FIy5RV/gjsVCqVjWFPS5/LzQ2fYpBYyy0W5jSkTva0EWIRZoHs5vPCI9mAQVkTkJshE 7wzQ== X-Gm-Message-State: ACgBeo0u4HQpzFQkeeHbTajm0zWa2Ltz00UmzhLLu6ddgKsoOc7R/H/R qoW9CM7whlC82+ucFuVmAcBcng== X-Google-Smtp-Source: AA6agR69c/t8ts6a0StxqNySuezxu3w7ddVGP1jBT9vtY5I04E0C7Sih6Dh/vj3icbJqmucV51/2UA== X-Received: by 2002:a05:622a:1701:b0:343:74dd:5d1e with SMTP id h1-20020a05622a170100b0034374dd5d1emr3615600qtk.6.1661610608915; Sat, 27 Aug 2022 07:30:08 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id u6-20020a05620a430600b006b949afa980sm1998113qko.56.2022.08.27.07.30.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Aug 2022 07:30:08 -0700 (PDT) Date: Sat, 27 Aug 2022 10:30:05 -0400 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Wolfgang Denk , Simon Glass , Heinrich Schuchardt , u-boot@lists.denx.de Subject: Re: [PATCH v2] xyz-modem: Allow to configure initial timeout for loadx and loady Message-ID: <20220827143005.GJ7942@bill-the-cat> References: <20210910204653.3066-1-pali@kernel.org> <20220827114835.22584-1-pali@kernel.org> <20220827125308.GI7942@bill-the-cat> <20220827125615.t4obqj43vb53raiy@pali> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Guq+xBHXhbnAFmh4" Content-Disposition: inline In-Reply-To: <20220827125615.t4obqj43vb53raiy@pali> X-Clacks-Overhead: GNU Terry Pratchett 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 --Guq+xBHXhbnAFmh4 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 27, 2022 at 02:56:15PM +0200, Pali Roh=E1r wrote: > On Saturday 27 August 2022 08:53:08 Tom Rini wrote: > > On Sat, Aug 27, 2022 at 01:48:35PM +0200, Pali Roh=E1r wrote: > >=20 > > > Now when loadx and loady commands could be aborted / cancelled by CTR= L+C, > > > allow to configure timeout for initial x/y-modem packet via env varia= ble > > > $loadxy_timeout and by default use value from new compile-time config > > > option CONFIG_CMD_LOADXY_TIMEOUT. Value is in seconds and zero value = means > > > infinite timeout. Default value is 90s which is the measured value us= ed > > > before this change for loadx and loady commands. > > >=20 > > > Other load commands loadb and loads already waits infinitely. Same be= havior > > > for loadx and loady commands can be achieved by setting $loadxy_timeo= ut or > > > CONFIG_CMD_LOADXY_TIMEOUT to 0. > > >=20 > > > Signed-off-by: Pali Roh=E1r > > > --- > > > Changes in v2: > > > * Allow to set timeout via env instead of permanent infinite timeout > >=20 > > This breaks platforms like "porter" where we have SPL_YMODEM support but > > do not have environment support. >=20 > By "breaks" do you mean compile error? Because if env is not set then > CONFIG_CMD_LOADXY_TIMEOUT is used. Just I'm not sure if env_get() > function returns NULL or what when there is no environment support. Yes, it fails to link. --=20 Tom --Guq+xBHXhbnAFmh4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmMKKmYACgkQFHw5/5Y0 tyz0UQv/Vi4rCssQ9x/qkSY1eycjAg2t5/ZROC3R475NvcgEf7zYfurHxrH0I3dK 0YKYfQkBscxcO7pA5Z7MoYAOFaKXhJo5U8vX0Rpv6NUB8++SJG5ZhNKUjTiZizmR JWiGOBwufh/uc7lp3f/Mj+ZgCjNmzcg153vn2nbHG0aInEMIrL65K92/erhZBzzU hTrUGnC/N5ZI2JS0bViXhOjhStAMp6m854Obeol7T9hzUn+BH3ISZrKhhELO7W7B YliyK+Jn3RnEonTRw8r0ijN3jPKkgLVVSmB8pj6aeCLqVdtm76E1SW9AVXCVXYRo luqN8USETLWkCoszPxh9BvIxFtyp1Cc+JLm5wWz5AFPqETbWuy5bvfBfN5aZbZkB GerzY9Ke4rKYHbd7FIXveEzcJZ6s0A8nhtjmNJqYz93CnkTlTxOXzkH9KiIVR+z7 uUl2AuV1i1HPOzJzWL8USn+AzBa0eB5estBUmYFIKSh1lE9RnjFwCDm0XWj+C4Dc Nvp8Xrkb =X5dh -----END PGP SIGNATURE----- --Guq+xBHXhbnAFmh4--