1. 16 4月, 2020 9 次提交
    • H
      log: correct CONFIG_LOG_TEST prerequisites · d1a02f53
      Heinrich Schuchardt 提交于
      An error
      
      	undefined reference to `do_log_test'
      
      occurs for CONFIG_CMD_LOG=y, CONFIG_LOG_TEST=y, CONGIG_UNIT_TEST=n
      
      Make CONFIG_UNIT_TEST a prerequisite.
      Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      d1a02f53
    • P
      dm: core: Move "/chosen" and "/firmware" node scan · 0544ecbf
      Patrick Delaunay 提交于
      Use the new function dm_scan_fdt_ofnode_path() to scan all the nodes
      which aren't devices themselves but may contain some:
      - "/chosen"
      - "/clocks"
      - "/firmware"
      
      The patch removes the strcmp call in recursive function dm_scan_fdt_live()
      and also corrects a conflict with the 2 applied patches in
      the commit 1712ca21 ("dm: core: Scan /firmware node by default")
      and in the commit 747558d0 ("dm: fdt: scan for devices under
      /firmware too"): the subnodes of "/firmware" (optee for example)
      are bound 2 times.
      
      For example the dm tree command result on STM32MP1 is:
      
      STM32MP> dm tree
       Class     Index  Probed  Driver                Name
       -----------------------------------------------------------
       root          0  [ + ]   root_driver           root_driver
       firmware      0  [   ]   psci                  |-- psci
       sysreset      0  [   ]   psci-sysreset         |   `-- psci-sysreset
       simple_bus    0  [ + ]   generic_simple_bus    |-- soc
      ...
       tee           0  [ + ]   optee                 |-- optee
      ...
       tee           1  [   ]   optee                 `-- optee
      Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
      Tested-by: NMichal Simek <michal.simek@xilinx.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      0544ecbf
    • H
      dm: core: remove redundant assignment · 67817b3b
      Heinrich Schuchardt 提交于
      Variable count is initialized at the start of every round of the while
      loop and it is not used after the while loop. So there is no need to
      initialize it beforehand.
      
      Identified by cppcheck.
      Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      67817b3b
    • H
      dm: core: remove redundant if statement · f93a07dd
      Heinrich Schuchardt 提交于
      The value of parent is not changed in the first if statement. So we can
      merge the two if statements depending on parent.
      
      Indicated by cppcheck.
      Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      f93a07dd
    • R
      sandbox: also restore terminal settings when killed by SIGINT · 2960107a
      Rasmus Villemoes 提交于
      Hitting Ctrl-C is a documented way to exit the sandbox, but it is not
      actually equivalent to the reset command. The latter, since it follows
      normal process exit, takes care to reset terminal settings and
      restoring the O_NONBLOCK behaviour of stdin (and, in a terminal, that
      is usually the same file description as stdout and stderr, i.e. some
      /dev/pts/NN).
      
      Failure to restore (remove) O_NONBLOCK from stdout/stderr can cause
      very surprising and hard to debug problems back in the terminal. For
      example, I had "make -j8" consistently failing without much
      information about just exactly what went wrong, but sometimes I did
      get a "echo: write error". I was at first afraid my disk was getting
      bad, but then a simple "dmesg" _also_ failed with write error - so it
      was writing to the terminal that was buggered. And both "make -j8" and
      dmesg in another terminal window worked just fine.
      
      So install a SIGINT handler so that if the chosen terminal
      mode (cooked or raw-with-sigs) means Ctrl-C sends a SIGINT, we will
      still call os_fd_restore(), then reraise the signal and die as usual
      from SIGINT.
      
      Before:
      
      $ grep flags /proc/$$/fdinfo/1
      flags:  0102002
      $ ./u-boot
      # hit Ctrl-C
      $ grep flags /proc/$$/fdinfo/1
      flags:  0106002
      
      After:
      
      $ grep flags /proc/$$/fdinfo/1
      flags:  0102002
      $ ./u-boot
      # hit Ctrl-C
      $ grep flags /proc/$$/fdinfo/1
      flags:  0102002
      Signed-off-by: NRasmus Villemoes <rasmus.villemoes@prevas.dk>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      2960107a
    • T
      sandbox: Update PCI nodes in dts files · 42c64d1b
      Tom Rini 提交于
      The way the PCI nodes are written today causes a number of warnings if
      we stop disabling some of the warnings we pass to DTC.  As these
      warnings aren't disabled in current Linux Kernel builds, we should aim
      to not disable them here either, so rewrite these slightly.  Update the
      driver model doc as well.
      
      Cc: Simon Glass <sjg@chromium.org>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      42c64d1b
    • S
      sandbox: p2sb: Silence compiler warning · 8a770f9e
      Simon Glass 提交于
      Some compilers produce a warning about 'child' being used before init.
      Silence this by setting to NULL at the start.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
      8a770f9e
    • S
      serial: Set baudrate on boot · b41d4b83
      Sean Anderson 提交于
      Currently, the baud rate is never set on boot. This works ok when a previous
      bootloader has configured the baudrate properly, or when the baudrate is set to
      a reasonable default in the serial driver's probe(). However, when this is not
      the case, we could be using a different baud rate than what was configured.
      Signed-off-by: NSean Anderson <seanga2@gmail.com>
      b41d4b83
    • T
      Merge tag 'u-boot-stm32-20200415' of https://gitlab.denx.de/u-boot/custodians/u-boot-stm · 66b8669d
      Tom Rini 提交于
      - Replace STM32MP1_TRUSTED by TFABOOT flag
      - Enable bootd, iminfo, imxtract on ST defconfig
      - Rename LEDs to match silkscreen on AV96
      - Add KS8851-16MLL ethernet on FMC2
      - Define FMC2 base address
      - net: dwc_eth_qos: implement reset-gpios for stm32
      - net: dwc_eth_qos: implement phy reg and max-speed for stm32
      66b8669d
  2. 15 4月, 2020 13 次提交
  3. 14 4月, 2020 18 次提交