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 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 3CDFAC433F5 for ; Mon, 6 Dec 2021 05:43:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0E06483003; Mon, 6 Dec 2021 06:43:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.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=linaro.org header.i=@linaro.org header.b="OuEhW/sD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2D1F08306D; Mon, 6 Dec 2021 06:43:52 +0100 (CET) Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) (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 E071D80F66 for ; Mon, 6 Dec 2021 06:43:48 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masami.hiramatsu@linaro.org Received: by mail-pf1-x436.google.com with SMTP id k26so4771356pfp.10 for ; Sun, 05 Dec 2021 21:43:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=JyOEyWPFUnnxVOL9xIsSh7srJ9jlIKdkUYbsyvYuIis=; b=OuEhW/sDrLg9+MDr0sJ7Nh3KRAkh/TkfANICaqXOzVatCc2rH6YppgUo9Cra6SSBMW HkoI0jzunyV8zE+2fcoU8mzdPx9wXe7+RS24LmtXkukZ/om//kGwDfY9jLYJENj5qdSu El9J7wH7LLdFGp7mSk7S7DguMrSzfE7Ye8ovxpI/mxpweP4WlFpKxiUOW7wugMZOi0Oi 5giDs8qacGmvtiO5ZX5irC9ptgyhJ4GZltT2QEg5UY2SrBmIvl4bpWwSu677rJPHmxk/ UTwTX5NeWRhUp3ml9utskgjveMoOg3aElJceg4B/3VJS9VeJiEN57R0k9v+1x0sLSRCE QyPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=JyOEyWPFUnnxVOL9xIsSh7srJ9jlIKdkUYbsyvYuIis=; b=vlYAUGxm+txKksdyz35V2nNXPgEEtj0vUqaMqyJLpIhDS1sFMNWyIhYY++BP1TbDOR cAKJvw1NM4GhS2ITTxii51mhXldFYA9bKA9tWSr+VHEj7WA8xI2490JHFEjoNffZFfX0 BdlLnNAQY6mABONQir2L4788hTHjcOnDdv6BB4ST4J9S/HSlan9rT7Gqb7akGQjFltsg 3H6DFOaPnmqFJRV1vUpuBun3XA/do0Zn8Zesh4HGAwYbsAdN1tU6OcxkXObajENiSc/d R46SAdhBp2Dpxd9k6uiMJyMgNMaJ7L2AG1QOn8lhSKWOwn57kG9raU1Dc6TOIVbdb53U YOmA== X-Gm-Message-State: AOAM531GlXneULFC/OmzjbJRKrTKsDS9geD0WoqIVJ5zrtvnV3cJ1aNM VcI04S6yhHpgRRWoNiRnLw0ZsA== X-Google-Smtp-Source: ABdhPJzQmuuPy+W/KPjmfcfLGHwVfxuvcQU+8RhWcXGMucv7ctiTnN2KGDsFkygsX/6myuTkSlTc1w== X-Received: by 2002:a63:31ce:: with SMTP id x197mr17095676pgx.14.1638769427177; Sun, 05 Dec 2021 21:43:47 -0800 (PST) Received: from localhost.localdomain (122x208x150x49.ap122.ftth.ucom.ne.jp. [122.208.150.49]) by smtp.gmail.com with ESMTPSA id j6sm10290935pfu.205.2021.12.05.21.43.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Dec 2021 21:43:46 -0800 (PST) From: Masami Hiramatsu To: Lukasz Majewski Cc: u-boot@lists.denx.de, ilias.apalodimas@linaro.org, sughosh.ganu@linaro.org, jaswinder.singh@linaro.org Subject: [PATCH 0/5] Series short description Date: Mon, 6 Dec 2021 14:43:44 +0900 Message-Id: <163876942396.38022.1478633880622842334.stgit@localhost> X-Mailer: git-send-email 2.25.1 User-Agent: StGit/0.19 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.38 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 Hi, This series is improving DFU subsystem. This improves dfu_alt_info parser and fixing documents etc. When I was debuging my patch for updating dfu_alt_info on the DeveloperBox platform, I found that dfu_alt_info parser doesn't accept redundant spaces and tabs. Also the dfu.rst description seems wrong. Moreover, there is no way to check whether the parser parses the dfu_alt_info correctly. These patches fixes such issues. [1/5] is just for avoiding buffer overrun, [2/5] and [3/5] improves dfu_alt_info parser to accept redundant spaces and tabs, and check the number of arguments strictly so that the parser (and user) can notice any unexpected parameters. [4/5] fixes the documents (there seems some wrong description maybe coming from copy&paste). [5/5] allows user to run 'dfu list' even if the platform doesn't support DFU_OVER_USB. Thank you, --- Masami Hiramatsu (5): DFU: Do not copy the entity name over the buffer size DFU: Accept redundant spaces and tabs in dfu_alt_info DFU: Check the number of arguments and argument string strictly doc: usage: DFU: Fix dfu_alt_info document cmd/dfu: Enable 'dfu list' command without DFU_OVER_USB cmd/dfu.c | 6 +++-- doc/usage/dfu.rst | 57 ++++++++++++++++++++++++++++++++++-------------- drivers/dfu/dfu.c | 37 ++++++++++++++++++++++++------- drivers/dfu/dfu_mmc.c | 55 +++++++++++++++++++++++++++------------------- drivers/dfu/dfu_mtd.c | 34 +++++++++++++++++++---------- drivers/dfu/dfu_nand.c | 34 ++++++++++++++++++----------- drivers/dfu/dfu_ram.c | 24 ++++++++++---------- drivers/dfu/dfu_sf.c | 34 ++++++++++++++++++----------- drivers/dfu/dfu_virt.c | 5 +++- include/dfu.h | 33 ++++++++++++++++++---------- 10 files changed, 205 insertions(+), 114 deletions(-) -- Masami Hiramatsu