From patchwork Tue Sep 10 13:29:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?=C5=81ukasz_Majewski?= X-Patchwork-Id: 273872 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 1062B2C027A for ; Tue, 10 Sep 2013 23:30:30 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 55ED24A0AD; Tue, 10 Sep 2013 15:30:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PpsXn-r24Dmi; Tue, 10 Sep 2013 15:30:26 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9815D4A063; Tue, 10 Sep 2013 15:30:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9BD7D4A068 for ; Tue, 10 Sep 2013 15:30:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1cAaYSh7EfdE for ; Tue, 10 Sep 2013 15:30:05 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by theia.denx.de (Postfix) with ESMTP id 000FC4A060 for ; Tue, 10 Sep 2013 15:30:04 +0200 (CEST) Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MSW008CQW5PSNF0@mailout1.samsung.com> for u-boot@lists.denx.de; Tue, 10 Sep 2013 22:30:03 +0900 (KST) X-AuditID: cbfee61a-b7f7a6d00000235f-a7-522f1eda8d22 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id C6.A6.09055.ADE1F225; Tue, 10 Sep 2013 22:30:02 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MSW00KJLW5HFV70@mmp1.samsung.com>; Tue, 10 Sep 2013 22:30:02 +0900 (KST) From: Lukasz Majewski To: u-boot@lists.denx.de Date: Tue, 10 Sep 2013 15:29:23 +0200 Message-id: <1378819765-20159-3-git-send-email-l.majewski@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1378819765-20159-1-git-send-email-l.majewski@samsung.com> References: <1378819765-20159-1-git-send-email-l.majewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBLMWRmVeSWpSXmKPExsVy+t9jAd1bcvpBBv9fW1nsuHOf2eLNI26L Nw83M1q8aWtktNh1ezKLxeTF85kt3u7tZHdg95j3cyKTx7xZJ1g8zt7ZweixbtpbZo++LasY PY7f2M4UwBbFZZOSmpNZllqkb5fAlfHodjdzwVf2isf73rM3MB5h62Lk4JAQMJGYOsG1i5ET yBSTuHBvPRuILSSwiFHiyy//LkYuILuLSWL7id+sIAk2AT2Jz3efMoHYIgISEr/6rzKCFDEL 3GOUeNSxAaxIWCBcYuKtJWA2i4CqxPdV28AaeAXcJI7/O8gIsU1e4un9PrBtnALuEgv/7GeB 2Owm8XH5DpYJjLwLGBlWMYqmFiQXFCel5xrqFSfmFpfmpesl5+duYgSH1zOpHYwrGywOMQpw MCrx8Gq80w0SYk0sK67MPcQowcGsJMLLJa4fJMSbklhZlVqUH19UmpNafIhRmoNFSZz3QKt1 oJBAemJJanZqakFqEUyWiYNTqoGR0Z/tMeuOCOE9hQePZ3P4tBTkeB1gev5EsTT6+oSM8Ci5 VVv+7j5heiuz9cD6dVE6LvYcj6vXPfw276uws93yruZFiS+fW8h03KyYr+QoWP3t+uZbPMs+ LTgvLts/WST2YuF2TrnyLi2N1icG8+Vq9os/zHM9so6f4Ur8jpDa+K7uNGP2FnclluKMREMt 5qLiRABTPLraKwIAAA== Cc: Marek Vasut , Pantelis Antoniou , Tom Rini Subject: [U-Boot] [PATCH 2/4] dfu: Make maximum DFU file size equal to default DFU data buffer X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Up till now the DFU maximum file size (to be written to e.g. eMMC) was different from the DFU data buffer size. It caused errors when one buffer was smaller than data to be written. Now, the maximum DFU file size is equal to default DFU buffer size. In spite of this, user is still able to manually adjust those default values. Change-Id: Ied75d0f7b59588ebd79dae9a22af801d36622216 Signed-off-by: Lukasz Majewski Tested-by: Heiko Schocher --- include/dfu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dfu.h b/include/dfu.h index 47b9055..7779710 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -62,7 +62,7 @@ static inline unsigned int get_mmc_blk_size(int dev) #define CONFIG_SYS_DFU_DATA_BUF_SIZE (1024*1024*8) /* 8 MiB */ #endif #ifndef CONFIG_SYS_DFU_MAX_FILE_SIZE -#define CONFIG_SYS_DFU_MAX_FILE_SIZE (4 << 20) /* 4 MiB */ +#define CONFIG_SYS_DFU_MAX_FILE_SIZE CONFIG_SYS_DFU_DATA_BUF_SIZE #endif struct dfu_entity {