From patchwork Sat Oct 8 03:20:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yoko X-Patchwork-Id: 679794 X-Patchwork-Delegate: trini@ti.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 3srWqk4C9cz9ryT for ; Sat, 8 Oct 2016 14:20:50 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=LzQB6UeV; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3930EA75AA; Sat, 8 Oct 2016 05:20:48 +0200 (CEST) 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 ap0Telir-x0L; Sat, 8 Oct 2016 05:20:48 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BCA9FA7549; Sat, 8 Oct 2016 05:20:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 98FAFA7549 for ; Sat, 8 Oct 2016 05:20:44 +0200 (CEST) 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 J0YnAzaIa_rJ for ; Sat, 8 Oct 2016 05:20:44 +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 mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by theia.denx.de (Postfix) with ESMTPS id 0C882A7534 for ; Sat, 8 Oct 2016 05:20:41 +0200 (CEST) Received: by mail-pf0-f193.google.com with SMTP id 190so3751547pfv.1 for ; Fri, 07 Oct 2016 20:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ewEHUkxNSNmMvgDOjwBxOJnpd/oSPFzo+J61f4TrkQ4=; b=LzQB6UeVnDo3cmxgHVVPTbpm5eZEfyctAGJM4ehUN8APK8blHPMGKtn7J9btb26pqu cc6PzO6skKaqbz8Qibztic7vu58PXItVdiwqxBUd3s+tjiWX2sI9hH8tGT3B9eFdf+n1 SxJdGODe7E+1eRg68T53YdBiZM5biIzlxdzjlxaqrX/ogCKDAYmHV5T0JxlFkwFTD2DH SaorRRmG4zQUJNH5+t4zmeMy7Bgr43b/PBCiwCLJw9f8GMhYhai0CyrwskvJH3K7c0Eh oZsEUIbCJjAbu2WpCRCtvDz0nb2Jlgx6aGwgB0R5GmZQdS3207iQ5aHWDzULX/urUzRZ pXrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ewEHUkxNSNmMvgDOjwBxOJnpd/oSPFzo+J61f4TrkQ4=; b=NIa6nJ6ZG+K2n+7QmWAEAHV6eQE45fb2G7D/v2ZRAXEwV88iGCoMAAIadipg1Da2RV Obim0WtuQYGM/YpDqORnCHXqOzJgu3i5lr4Rqxo7GsWU2OelieTCo8ieI99QWv935jA6 QC0n2mqalPcu9CRXHoKGekcmXi3xvQUW78o+95nXjoayd65OxGM/iZT+6a3gP25e9n3C sCTdM3K/WUC+SqN+qfGs7pgkdhBJyRm16EcjRKKwC0WzBmGcFSHpHh7WviinQ29yKQX6 vP51WCPNwxBvLedFrjUXmHrFT7XiX9LcOmcVfvBkMeSUJSOR641zbgraQWqeGBMIedfo xYsQ== X-Gm-Message-State: AA6/9RnAnnG9KVDuwG6mpdJ2mSMg2Wj2Vp7ZfgZqNR32CM1/zhh468yve5npMz6+gO54kw== X-Received: by 10.98.157.210 with SMTP id a79mr34655198pfk.179.1475896839153; Fri, 07 Oct 2016 20:20:39 -0700 (PDT) Received: from localhost.localdomain (nthrsm046215.hrsm.nt.ngn.ppp.infoweb.ne.jp. [220.145.167.215]) by smtp.gmail.com with ESMTPSA id y1sm17228850pfi.46.2016.10.07.20.20.37 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 07 Oct 2016 20:20:38 -0700 (PDT) From: yoko To: u-boot@lists.denx.de Date: Sat, 8 Oct 2016 12:20:21 +0900 Message-Id: <20161008032021.8559-1-jr4qpv@gmail.com> X-Mailer: git-send-email 2.8.4 (Apple Git-73) In-Reply-To: <20161007010614.GA5684@bill-the-cat> References: <20161007010614.GA5684@bill-the-cat> Cc: yoko Subject: [U-Boot] [PATCH v2] fs:When 'go' run the program by 'fatload', added the cache flush to prevent cache mismatch. X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Signed-off-by: yoko --- Changes for v2: - The commit message is changed. fs/fs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/fs.c b/fs/fs.c index 595ff1f..7607230 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -417,6 +417,8 @@ int do_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], } puts("\n"); + flush_cache(addr, len_read); + setenv_hex("fileaddr", addr); setenv_hex("filesize", len_read); @@ -535,4 +537,3 @@ int do_fs_type(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) return CMD_RET_SUCCESS; } -