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 7307EC433F5 for ; Fri, 4 Mar 2022 07:48:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A8FE883CAF; Fri, 4 Mar 2022 08:48:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1646380133; bh=+dgyQZS89i3WGm/K1umVEy+jIHvM85xULW6XqxsLaDw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=IAK0Rf6ZVSZoupaCusoaKAaIRzyNd0RxpfIC+lL5rA7PT9fwwE017GHgl4fx7mtEs kRkFXffkQ4E6GVXY1G7UAY4u2CX0JqDT3Vb5cKJQdzVRBYP5qvd/XZ5CyqHhOhNXp0 Fo1zSBvtLpOiVb2uWnrb2dyghcmmY04LFhAghto/ly85LQVRpQQjGDF6b8Rza5uDtd g+YnpExvV6dcapO1BiQfdjtgeH6eYP16BbDf0VSHCcfsHnn+/8QFofzB4AeUCQGjmQ PqkFTEL4bTYb6Ee3DZDDIIkt2QUAsXkyfgUkpuLQ4UCXBr9IlG+/jw6XiuQn9F/ED9 qu0wDdAlbDWpA== Received: by phobos.denx.de (Postfix, from userid 109) id 1858C83CB4; Fri, 4 Mar 2022 08:48:52 +0100 (CET) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [IPv6:2001:67c:2050:1::465:107]) (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 3E4DE83689 for ; Fri, 4 Mar 2022 08:48:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4K90NJ5f4Hz9sW3; Fri, 4 Mar 2022 08:48:48 +0100 (CET) Message-ID: Date: Fri, 4 Mar 2022 08:48:44 +0100 MIME-Version: 1.0 Subject: Re: [PATCH u-boot-marvell 02/10] tools: kwboot: Remove msg_req_delay Content-Language: en-US To: =?UTF-8?Q?Pali_Roh=c3=a1r?= , =?UTF-8?Q?Marek_Beh=c3=ban?= , Tony Dinh Cc: u-boot@lists.denx.de References: <20220302104927.18607-1-pali@kernel.org> <20220302104927.18607-3-pali@kernel.org> From: Stefan Roese In-Reply-To: <20220302104927.18607-3-pali@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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.5 at phobos.denx.de X-Virus-Status: Clean On 3/2/22 11:49, Pali Rohár wrote: > Variable msg_req_delay is set but never used. So completely remove it. > > Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Tested-by: Stefan Roese Thanks, Stefan > --- > tools/kwboot.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/tools/kwboot.c b/tools/kwboot.c > index 5a7c53ce8929..4dfb1038b4ff 100644 > --- a/tools/kwboot.c > +++ b/tools/kwboot.c > @@ -48,11 +48,9 @@ static unsigned char kwboot_msg_debug[] = { > }; > > /* Defines known to work on Kirkwood */ > -#define KWBOOT_MSG_REQ_DELAY 10 /* ms */ > #define KWBOOT_MSG_RSP_TIMEO 50 /* ms */ > > /* Defines known to work on Armada XP */ > -#define KWBOOT_MSG_REQ_DELAY_AXP 1000 /* ms */ > #define KWBOOT_MSG_RSP_TIMEO_AXP 1000 /* ms */ > > /* > @@ -285,7 +283,6 @@ static const char kwb_baud_magic[16] = "$baudratechange"; > > static int kwboot_verbose; > > -static int msg_req_delay = KWBOOT_MSG_REQ_DELAY; > static int msg_rsp_timeo = KWBOOT_MSG_RSP_TIMEO; > static int blk_rsp_timeo = KWBOOT_BLK_RSP_TIMEO; > > @@ -1725,7 +1722,6 @@ kwboot_usage(FILE *stream, char *progname) > " -D : boot without preamble (Dove)\n"); > fprintf(stream, " -d: enter debug mode\n"); > fprintf(stream, " -a: use timings for Armada XP\n"); > - fprintf(stream, " -q : use specific request-delay\n"); > fprintf(stream, " -s : use specific response-timeout\n"); > fprintf(stream, > " -o : use specific xmodem block timeout\n"); > @@ -1804,12 +1800,11 @@ main(int argc, char **argv) > break; > > case 'a': > - msg_req_delay = KWBOOT_MSG_REQ_DELAY_AXP; > msg_rsp_timeo = KWBOOT_MSG_RSP_TIMEO_AXP; > break; > > case 'q': > - msg_req_delay = atoi(optarg); > + /* nop, for backward compatibility */ > break; > > case 's': Viele Grüße, Stefan Roese -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de