1. 08 8月, 2020 1 次提交
  2. 04 8月, 2020 1 次提交
  3. 12 6月, 2020 1 次提交
    • M
      dm: uclass: don't assign aliased seq numbers · be1a6e94
      Michael Walle 提交于
      If there are aliases for an uclass, set the base for the "dynamically"
      allocated numbers next to the highest alias.
      
      Please note, that this might lead to holes in the sequences, depending
      on the device tree. For example if there is only an alias "ethernet1",
      the next device seq number would be 2.
      
      In particular this fixes a problem with boards which are using ethernet
      aliases but also might have network add-in cards like the E1000. If the
      board is started with the add-in card and depending on the order of the
      drivers, the E1000 might occupy the first ethernet device and mess up
      all the hardware addresses, because the devices are now shifted by one.
      
      Also adapt the test cases to the new handling and add test cases
      checking the holes in the seq numbers.
      Signed-off-by: NMichael Walle <michael@walle.cc>
      Reviewed-by: NAlex Marginean <alexandru.marginean@nxp.com>
      Tested-by: NAlex Marginean <alexandru.marginean@nxp.com>
      Acked-by: NVladimir Oltean <olteanv@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Tested-by: Michal Simek <michal.simek@xilinx.com> [on zcu102-revA]
      be1a6e94
  4. 20 5月, 2020 1 次提交
  5. 19 5月, 2020 1 次提交
  6. 12 8月, 2019 1 次提交
  7. 25 1月, 2019 1 次提交
  8. 11 10月, 2018 3 次提交
    • J
      net: Don't overwrite waiting packets with asynchronous replies · ac3f26cc
      Joe Hershberger 提交于
      Peter originally sent a fix, but it breaks a number of other things.
      This addresses the original reported issue in a different way.
      
      That report was:
      
      > U-Boot has 1 common buffer to send Ethernet frames, pointed to by
      > net_tx_packet.  When sending to an IP address without knowing the MAC
      > address, U-Boot makes an ARP request (using the arp_tx_packet buffer)
      > to find out the MAC address of the IP addressr. When a matching ARP
      > reply is received, U-Boot continues sending the frame stored in the
      > net_tx_packet buffer.
      >
      > However, in the mean time, if U-Boot needs to send out any network
      > packets (e.g. replying ping packets or ARP requests for its own IP
      > address etc.), it will use the net_tx_packet buffer to prepare the
      > new packet. Thus this buffer is no longer the original packet meant
      > to be transmitted after the ARP reply. The original packet will be
      > lost.
      
      This instead uses the ARP tx buffer to send async replies in the case
      where we are actively waiting for an ARP reply.
      Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
      Reported-by: NTran Tien Dat <peter.trantiendat@gmail.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
      Tested-by: NBin Meng <bmeng.cn@gmail.com>
      ac3f26cc
    • J
      test: eth: Add a test for the target being pinged · 72ff0042
      Joe Hershberger 提交于
      The target will respond to pings while doing other network handling.
      Make sure that the response happens and is correct.
      
      This currently corrupts the ongoing operation of the device if it
      happens to be awaiting an ARP reply of its own to whatever serverip it
      is attempting to communicate with. In the test, add an expectation that
      the user operation (ping, in this case) will fail. A later patch will
      address this problem.
      Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
      72ff0042
    • J
      test: eth: Add a test for ARP requests · 45988dae
      Joe Hershberger 提交于
      This tests that ARP requests made to this target's IP address are
      responded-to by the target when it is doing other networking operations.
      
      This currently corrupts the ongoing operation of the device if it
      happens to be awaiting an ARP reply of its own to whatever serverip it
      is attempting to communicate with. In the test, add an expectation that
      the user operation (ping, in this case) will fail. A later patch will
      address this problem.
      Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
      45988dae
  9. 07 5月, 2018 1 次提交
    • T
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini 提交于
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      83d290c5
  10. 28 4月, 2018 1 次提交
  11. 06 10月, 2017 1 次提交
  12. 16 8月, 2017 2 次提交
  13. 05 4月, 2017 1 次提交
  14. 30 10月, 2015 1 次提交
  15. 09 9月, 2015 1 次提交
  16. 21 5月, 2015 3 次提交
  17. 06 5月, 2015 1 次提交
  18. 19 4月, 2015 8 次提交