Skip to content
Snippets Groups Projects
  1. May 12, 2011
    • Luca Ceresoli's avatar
      net/net.c: cosmetic: fix brace issues · d3c65b01
      Luca Ceresoli authored
      
      This removes the following checkpatch issues:
       - WARNING: braces {} are not necessary for single statement blocks
       - WARNING: braces {} are not necessary for any arm of this statement
      
      Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Ben Warren <biggerbadderben@gmail.com>
      d3c65b01
    • Luca Ceresoli's avatar
      net/net.c: cosmetic: fix whitespace issues · 4f63acd0
      Luca Ceresoli authored
      
      This removes the following checkpatch issues:
       - ERROR: space prohibited after that open parenthesis '('
       - ERROR: space prohibited before that close parenthesis ')'
       - ERROR: space prohibited after that open square bracket '['
       - ERROR: space prohibited after that '&' (ctx:WxW)
       - ERROR: spaces required around that '=' (ctx:VxW)
       - ERROR: space required before the open parenthesis '('
       - ERROR: space required after that ',' (ctx:VxV)
       - ERROR: need consistent spacing around '+' (ctx:WxV)
       - WARNING: unnecessary whitespace before a quoted newline
       - WARNING: please, no spaces at the start of a line
       - WARNING: space prohibited between function name and open
         parenthesis '('
      
      Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Ben Warren <biggerbadderben@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      4f63acd0
    • Luca Ceresoli's avatar
      net/net.c: cosmetic: variable initializations · c586ce6e
      Luca Ceresoli authored
      
      This removes the following checkpatch errors:
       - ERROR: do not initialise globals to 0 or NULL
       - ERROR: spaces required around that '=' (ctx:VxV)
       - ERROR: that open brace { should be on the previous line
      
      Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Ben Warren <biggerbadderben@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      c586ce6e
    • Luca Ceresoli's avatar
      net/net.c: cosmetic: fix lines over 80 characters · 3e38e429
      Luca Ceresoli authored
      
      This removes the following checkpatch warning:
       - WARNING: line over 80 characters
      
      There are three such warnings left.
      
      The first is hard to fix with cosmetic-only changes without compromising code
      readability, so I'm leaving it as it is for now:
        WARNING: line over 80 characters
        #1537: FILE: net.c:1537:
        + [4 tabs] memcpy(((Ethernet_t *)NetArpWaitTxPacket)->et_dest, ...
      
      The other two cannot be fixed without splitting string literals, so it is
      preferred to keep them longer than 80 characters.
      
      Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Ben Warren <biggerbadderben@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      3e38e429
    • Heiko Schocher's avatar
      lib, vsprintf: introduce strict_strtoul · a7fd0d9f
      Heiko Schocher authored
      
      as checkpatch proposes to use strict_strtoul instead of
      simple_strtoul, introduce it.
      
      Ported this function from Linux 2.6.38 commit ID:
      521cb40b0c44418a4fd36dc633f575813d59a43d
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      cc: Wolfgang Denk <wd@denx.de>
      cc: Detlev Zundel <dzu@denx.de>
      cc: Valentin Longchamp <valentin.longchamp@keymile.com>
      cc: Holger Brunck <holger.brunck@keymile.com>
      Signed-off-by: default avatarValentin Longchamp <valentin.longchamp@keymile.com>
      a7fd0d9f
    • Wolfgang Denk's avatar
      Fix incorrect use of getenv() before relocation · f0c0b3a9
      Wolfgang Denk authored
      
      A large number of boards incorrectly used getenv() in their board init
      code running before relocation.  In some cases this caused U-Boot to
      hang when certain environment variables grew too long.
      Fix the code to use getenv_r().
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: The LEOX team <team@leox.org>
      Cc: Michael Schwingen <michael@schwingen.org>
      Cc: Georg Schardt <schardt@team-ctech.de>
      Cc: Werner Pfister <Pfister_Werner@intercontrol.de>
      Cc: Dirk Eibach <eibach@gdsys.de>
      Cc: Peter De Schrijver <p2@mind.be>
      Cc: John Zhan <zhanz@sinovee.com>
      Cc: Rishi Bhattacharya <rishi@ti.com>
      Cc: Peter Tyser <ptyser@xes-inc.com>
      f0c0b3a9
    • Wolfgang Denk's avatar
      cmd_nvedit.c: make error message more helpful · a02a884b
      Wolfgang Denk authored
      
      When calling getenv_f() with a too small buffer, it would print an
      error message like this:
      
      	env_buf too small [32]
      
      This is not really helpful as it does not give any indication which of
      the calls might have failed.  Change this into:
      
      	env_buf [32 bytes] too small for value of "hwconfig"
      
      so we know at least which variable caused the overflow; this usually
      allows to quickly find the related code as well.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      a02a884b
    • Luca Ceresoli's avatar
      NET: pass source IP address to packet handlers · 03eb129f
      Luca Ceresoli authored
      
      This is needed for the upcoming TFTP server implementation.
      
      This also simplifies PingHandler() and fixes rxhand_f documentation.
      
      Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
      Cc: Wolfgang Denk <wd@denx.de>
      Acked-by: default avatarDetlev Zundel <dzu@denx.de>
      03eb129f
    • Luca Ceresoli's avatar
      README: remove spurious line · 8eccee7a
      Luca Ceresoli authored
      
      Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
      Cc: Wolfgang Denk <wd@denx.de>
      Acked-by: default avatarDetlev Zundel <dzu@denx.de>
      8eccee7a
    • Wolfgang Denk's avatar
      MPC8260: Fix compile problems with "hymod" board · 9e2b5176
      Wolfgang Denk authored
      
      Commit 9d8fbd1b "powerpc, 8xx: Fixup all 8xx u-boot.lds scripts" broke
      building of the MPC8260 based "hymod" board.  Fix this.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Murray Jensen <Murray.Jensen@csiro.au>
      Cc: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
      9e2b5176
    • Mike Frysinger's avatar
      zlib: fix DEBUG build · f18185ab
      Mike Frysinger authored
      
      The previous commit imported a little too much from upstream.  We need
      to disable stdio.h when using U-Boot.
      
      Reported-by: default avatarWolfgang Denk <wd@denx.de>
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      f18185ab
    • Wolfgang Denk's avatar
    • Wolfgang Denk's avatar
      162eee41
    • Simon Guinot's avatar
      netconsole: remove `serverip' check · 8b6bbe10
      Simon Guinot authored
      
      Netconsole use the environment variable `ncip' to configure the
      destination IP. `serverip' don't need to be defined.
      
      Signed-off-by: default avatarSimon Guinot <sguinot@lacie.com>
      8b6bbe10
    • John Rigby's avatar
      Serial: p1011: new vendor init options · 910f1ae3
      John Rigby authored
      
      Two new options:
      
      CONFIG_PL011_SERIAL_RLCR
      
      Some vendor versions of PL011 serial ports (e.g. ST-Ericsson U8500)
      have separate receive and transmit line control registers.  Set
      this variable to initialize the extra register.
      
      CONFIG_PL011_SERIAL_FLUSH_ON_INIT
      
      On some platforms (e.g. U8500) U-Boot is loaded by a second stage
      boot loader that has already initialized the UART.  Define this
      variable to flush the UART at init time.
      empty fifo on init
      
      Signed-off-by: default avatarJohn Rigby <john.rigby@linaro.org>
      Signed-off-by: default avatarRabin Vincent <rabin.vincent@stericsson.com>
      910f1ae3
    • Steven A. Falco's avatar
      PPC405EX CHIP_21 erratum · 644362c4
      Steven A. Falco authored
      
      APM errata CHIP_21 for the 405EX/EXr (from the rev 1.09 document dated
      4/27/11) states that rev D processors may wake up with the wrong feature
      set.  This patch implements the APM-proposed workaround.
      
      To enable this patch for your board, add the appropriate define for your
      CPU to your board header file.  See kilauea.h for more information.  The
      following variants are supported:
      
      #define CONFIG_SYS_4xx_CHIP_21_405EX_NO_SECURITY
      #define CONFIG_SYS_4xx_CHIP_21_405EX_SECURITY
      #define CONFIG_SYS_4xx_CHIP_21_405EXr_NO_SECURITY
      #define CONFIG_SYS_4xx_CHIP_21_405EXr_SECURITY
      
      Please note that if you select the wrong define, your board will not
      boot, and JTAG will be required to recover.
      
      Tested on custom boards using:
      
      CONFIG_SYS_4xx_CHIP_21_405EX_NO_SECURITY  <sfalco@harris.com>
      CONFIG_SYS_4xx_CHIP_21_405EX_SECURITY     <eibach@gdsys.de>
      
      Signed-off-by: default avatarSteve Falco <sfalco@harris.com>
      Acked-by: default avatarDirk Eibach <eibach@gdsys.de>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      644362c4
  2. May 11, 2011
  3. May 10, 2011
Loading