From patchwork Tue Oct 11 17:39:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 77508 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp106974qge; Tue, 11 Oct 2016 10:39:30 -0700 (PDT) X-Received: by 10.194.171.225 with SMTP id ax1mr6566378wjc.48.1476207570277; Tue, 11 Oct 2016 10:39:30 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id lc1si6224247wjc.11.2016.10.11.10.39.30; Tue, 11 Oct 2016 10:39:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE dis=NONE) header.from=ti.com Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 56542A7558; Tue, 11 Oct 2016 19:39:28 +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 96BgcJ4y0l3c; Tue, 11 Oct 2016 19:39:28 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 06CBA4BD3D; Tue, 11 Oct 2016 19:39:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B9AAD4B951 for ; Tue, 11 Oct 2016 19:39:16 +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 lrzY58N05KXK for ; Tue, 11 Oct 2016 19:39:16 +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 arroyo.ext.ti.com (arroyo.ext.ti.com [198.47.19.12]) by theia.denx.de (Postfix) with ESMTPS id 308F04B6B3 for ; Tue, 11 Oct 2016 19:39:13 +0200 (CEST) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id u9BHd9wT022970; Tue, 11 Oct 2016 12:39:10 -0500 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id u9BHd9sD028020; Tue, 11 Oct 2016 12:39:09 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.294.0; Tue, 11 Oct 2016 12:39:09 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id u9BHd98p023538; Tue, 11 Oct 2016 12:39:09 -0500 From: Nishanth Menon To: Lokesh Vutla , Tom Rini Date: Tue, 11 Oct 2016 12:39:03 -0500 Message-ID: <20161011173905.26208-2-nm@ti.com> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20161011173905.26208-1-nm@ti.com> References: <20161011173905.26208-1-nm@ti.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Brad Griffis Subject: [U-Boot] [PATCH 1/3] ti: common: board_detect: Replace hardcoded value with macro 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" We should have used TI_DEAD_EEPROM_MAGIC in the first place. Fixes: d3b98a9eb941 ("ti: common: dra7: Add standard access for board description EEPROM") Signed-off-by: Nishanth Menon --- board/ti/common/board_detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.10.0 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/board/ti/common/board_detect.c b/board/ti/common/board_detect.c index e0ae1a51a6a4..7c552d20656a 100644 --- a/board/ti/common/board_detect.c +++ b/board/ti/common/board_detect.c @@ -171,7 +171,7 @@ int __maybe_unused ti_i2c_eeprom_dra7_get(int bus_addr, int dev_addr) goto already_read; /* Initialize with a known bad marker for i2c fails.. */ - ep->header = 0xADEAD12C; + ep->header = TI_DEAD_EEPROM_MAGIC; ep->name[0] = 0x0; ep->version[0] = 0x0; ep->serial[0] = 0x0;