From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Mon, 8 Aug 2016 16:45:53 +0200 Subject: [U-Boot] [PATCH 2/2] x86: i2c: Avoid using BSS before it is available In-Reply-To: References: <1470454528-26998-1-git-send-email-sjg@chromium.org> <1470454528-26998-2-git-send-email-sjg@chromium.org> Message-ID: <57A89B21.7020206@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Simon, Am 07.08.2016 um 08:54 schrieb Bin Meng: > On Sat, Aug 6, 2016 at 11:35 AM, Simon Glass wrote: >> If intel_i2c_bind() is called before relocation there is no BSS section >> available. Use the data section instead, which is always available. >> >> A better fix might be to use global_data, perhaps a new member in >> x86's struct arch_global_data. Comments welcome. >> >> Signed-off-by: Simon Glass >> --- >> >> drivers/i2c/intel_i2c.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> > > Reviewed-by: Bin Meng Hmm... I see no i2c_bind() in mainline U-Boot drivers/i2c/intel_i2c.c driver ? Is this patch and also patch: http://patchwork.ozlabs.org/patch/656335/ dependend on another patch(or patchserie) ? bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany