From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10B8AC4338F for ; Tue, 3 Aug 2021 14:29:32 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 7F74A60BD3 for ; Tue, 3 Aug 2021 14:29:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7F74A60BD3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D184482DD7; Tue, 3 Aug 2021 16:29:28 +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="EZhNMFJk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1B1D782DEE; Tue, 3 Aug 2021 16:29:27 +0200 (CEST) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 34F5780EEA for ; Tue, 3 Aug 2021 16:29:24 +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: by mail.kernel.org (Postfix) with ESMTPSA id 7FDA060ED6; Tue, 3 Aug 2021 14:29:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628000962; bh=1bQ6blgcxvWF4O9DSeTJQRPteGLgy2pFN57tKHyE/3o=; h=From:To:Cc:Subject:Date:From; b=EZhNMFJkfMjJ4chQBy3mZ/J2m3nOqvf7+N7brZB91/cq/sxP6og9O46ey0o0RL7kr opupHHRdvo3/CliF0aRHFIiL1aoZx8Ja5hKxVsKITugqXGMXbZAM6vBU1J/gJbs+nr zbIha3yfxaBu4yREJm5Dnrz2HS9WLPo9+3fXwcVIlsGk/w+tEt/8WWifwegfcyyDit SAdyzSVnlPWarbhictIp1JTN2+7eSjc85ulNBA8kRahkWdYiCuYz7LF44CPrRMh+XW zxhn+51ozHWbN86rTIhr6xP/vIY/S6RhTM7nfmw3kuhBUw0AewF+qInWAYajJ8LqQs +MlbH8SdrtOww== Received: by pali.im (Postfix) id 242AB7F1; Tue, 3 Aug 2021 16:29:20 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Simon Glass , Heinrich Schuchardt , Michal Simek , =?UTF-8?q?Marek=20Beh=C3=BAn?= Cc: u-boot@lists.denx.de Subject: [PATCH 0/7] xyz-modem: Fix cancelling and closing transfers Date: Tue, 3 Aug 2021 16:28:37 +0200 Message-Id: <20210803142844.19455-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean This patch series fixes U-Boot crash during cancellation of x/y-modem transfers and contains other various fixes related to finishing transfers. Pali Rohár (7): xyz-modem: Fix crash after cancelling transfer xyz-modem: Fix x-modem "xyzModem_eof error" at the end of file xyz-modem: Put xyzModem_stream_close debug diagnostic message into ZM_DEBUG() xyz-modem: Close stream after processing/sending terminate sequence xyz-modem: Properly abort/terminate transfer on error xyz-modem: Show information about finished transfer xyz-modem: Allow to cancel transfer also by CTRL+C cmd/load.c | 32 ++++++++++++++++++++++++++++++-- common/xyzModem.c | 12 ++++++++---- 2 files changed, 38 insertions(+), 6 deletions(-) -- 2.20.1