Skip to content
Snippets Groups Projects
  1. Apr 24, 2017
    • John Crispin's avatar
      mediatek: fix sysupgrade board detection · da352c46
      John Crispin authored
      
      boardnames were changed with the recent target update. the sysupgrade board
      detection was not updated properly.
      
      Signed-off-by: default avatarJohn Crispin <john@phrozen.org>
      da352c46
    • John Crispin's avatar
    • John Crispin's avatar
      mediatek: add support for the NAND-ePHY board · a02cb1f3
      John Crispin authored
      
      This is the same as the NAND board but gmac1 is wired to an external phy.
      
      Signed-off-by: default avatarJohn Crispin <john@phrozen.org>
      a02cb1f3
    • John Crispin's avatar
      mediatek: add DSA multi cpu port support · 4c6ae885
      John Crispin authored
      
      Signed-off-by: default avatarJohn Crispin <john@phrozen.org>
      4c6ae885
    • John Crispin's avatar
      f3bae0fa
    • Thomas Reifferscheid's avatar
      ipq8064: fix dwc3-of-simple module unloading for Netgear R7500 · 956e31b1
      Thomas Reifferscheid authored
      Without patch unloading the dwc3-of-simple module went stuck after
      successfully removing hcd.1 during the hcd.0 removal:
      
      root@LEDE:/# rmmod dwc3-of-simple
      [   21.391846] xhci-hcd xhci-hcd.1.auto: remove, state 1
      [   21.391931] usb usb4: USB disconnect, device number 1
      [   21.397038] xhci-hcd xhci-hcd.1.auto: USB bus 4 deregistered
      [   21.401111] xhci-hcd xhci-hcd.1.auto: remove, state 1
      [   21.406685] usb usb3: USB disconnect, device number 1
      [   21.412848] xhci-hcd xhci-hcd.1.auto: USB bus 3 deregistered
      [   21.417248] xhci-hcd xhci-hcd.0.auto: remove, state 1
      [   21.422521] usb usb2: USB disconnect, device number 1
      followed by nothing.
      
      Sometimes a stall CPU was detected, or a kernel panic,
      or a reboot occurred after a couple of minutes.
      
      At the same time unloading the dwc3 module followed by dwc3-of-simple
      module was working repeatedly.
      
      root@LEDE:/# rmmod dwc3
      [   53.827328] xhci-hcd xhci-hcd.1.auto: remove, state 1
      [   53.827412] usb usb4: USB disconnect, device number 1
      [   53.832630] xhci-hcd xhci-hcd.1.auto: USB bus 4 deregistered
      [   53.836452] xhci-hcd xhci-hcd.1.auto: remove, state 1
      [   53.842314] usb usb3: USB disconnect, device number 1
      [   53.848412] xhci-hcd xhci-hcd.1.auto: USB bus 3 deregistered
      [   53.852542] xhci-hcd xhci-hcd.0.auto: remove, state 1
      [   53.857882] usb usb2: USB disconnect, device number 1
      [   53.863956] xhci-hcd xhci-hcd.0.auto: USB bus 2 deregistered
      [   53.867875] xhci-hcd xhci-hcd.0.auto: remove, state 1
      [   53.873696] usb usb1: USB disconnect, device number 1
      [   53.879742] xhci-hcd xhci-hcd.0.auto: USB bus 1 deregistered
      root@LEDE:/# rmmod dwc3-of-simple
      root@LEDE:/#
      
      For the non-working case, the code was stuck in a readl() in
      http://lxr.free-electrons.com/source/drivers/usb/host/xhci.c#L91
      because
      http://lxr.free-electrons.com/source/drivers/usb/dwc3/dwc3-of-simple.c#L126
      
      
      was disabling the wrong clocks when removing hcd.1 (it was disabling
      the clock of hcd.0). That's why the readl() went stuck when removing
      hcd.0
      
      The patch however addresses the clock assignment from the Netgear R7500
      dts file and backs off the previous attempt.
      
      Now unloading and repeated module loading is working just fine.
      
      root@LEDE:/# rmmod dwc3-of-simple
      [   24.089679] xhci-hcd xhci-hcd.1.auto: remove, state 1
      [   24.089765] usb usb4: USB disconnect, device number 1
      [   24.094856] xhci-hcd xhci-hcd.1.auto: USB bus 4 deregistered
      [   24.098963] xhci-hcd xhci-hcd.1.auto: remove, state 1
      [   24.104522] usb usb3: USB disconnect, device number 1
      [   24.111194] xhci-hcd xhci-hcd.1.auto: USB bus 3 deregistered
      [   24.115086] xhci-hcd xhci-hcd.0.auto: remove, state 1
      [   24.120396] usb usb2: USB disconnect, device number 1
      [   24.126503] xhci-hcd xhci-hcd.0.auto: USB bus 2 deregistered
      [   24.130347] xhci-hcd xhci-hcd.0.auto: remove, state 1
      [   24.135948] usb usb1: USB disconnect, device number 1
      [   24.142085] xhci-hcd xhci-hcd.0.auto: USB bus 1 deregistered
      root@LEDE:/#
      
      Fixes: dwc3-of-simple module unloading for Netgear R7500
      
      Signed-off-by: default avatarThomas Reifferscheid <thomas@reifferscheid.org>
      956e31b1
    • Thomas Reifferscheid's avatar
      ipq8064: Fix dwc3 module unloading · 8db079a9
      Thomas Reifferscheid authored
      
      The patch follows the qualcomm code comments setting
      SSUSB_CTRL_TEST_POWERDOWN to 0x1 and is testing and clearing the
      bit during USB superspeed PHY init. According to Andy Gross it
      needs to be BIT(26).
      
      Signed-off-by: default avatarThomas Reifferscheid <thomas@reifferscheid.org>
      Acked-by: default avatarAndy Gross <andy.gross@linaro.org>
      8db079a9
  2. Apr 23, 2017
    • Álvaro Fernández Rojas's avatar
      kernel: use skb_cow_head() to deal with cloned skbs · 2db05cd1
      Álvaro Fernández Rojas authored
      
      We need to ensure there is enough headroom to push extra header,
      but we also need to check if we are allowed to change headers.
      
      skb_cow_head() is the proper helper to deal with this.
      
      Fixes Ethernet<->WiFi bridge for Raspberry Pi and probably other devices.
      
      Signed-off-by: default avatarÁlvaro Fernández Rojas <noltari@gmail.com>
      2db05cd1
    • Yousong Zhou's avatar
      scripts/qemustart: initial version · 50fcfd4b
      Yousong Zhou authored
      
      The script can be used to quickly spin up QEMU virtual machines with lan
      and wan network.  Please read the initial part of the script for
      instructions about how to configure host machine
      
      Signed-off-by: default avatarYousong Zhou <yszhou4tech@gmail.com>
      50fcfd4b
    • Yousong Zhou's avatar
      armvirt: merge arm64 as subtarget 64 · 88468f7e
      Yousong Zhou authored
      
      Original armvirt target is now subtarget 32.  Other than that the built
      result should remain the same as before
      
      Besides old features already available with arm64, the new armvirt/64
      subtarget will also have those features originally enabled for
      armvirt/32 with commit 44ecfc26 ("armvirt: new target")
       - pl011, uart
       - pl031, rtc
       - pl061, gpio
       - pci-host-generic
       - virtio_{mmio,pci,net,blk,scsi,9p,console,balloon}
       - smp with NR_CPUS=4
       - cpu-hotplug
       - ext4
       - DEBUG_BUGVERBOSE for debug purposes
      
      Signed-off-by: default avatarYousong Zhou <yszhou4tech@gmail.com>
      88468f7e
    • Yousong Zhou's avatar
      build: fix aarch64 default cpu selection · b889d1e3
      Yousong Zhou authored
      
      Not sure since when the issue emerged, but according to the current doc of gcc
      and as, armv8-a is intended as argument of -march
      
      The change will affect at the moment arm64 and layerscape/64b
      
      Below is the relevant error messages when building toolchain
      
          Assembler messages:
          Error: unknown cpu `armv8-a'
          Error: unrecognized option -mcpu=armv8-a
          /home/yousong/git-repo/lede-project/lede/build_dir/toolchain-aarch64_armv8-a_gcc-5.4.0_musl/gcc-5.4.0/libgcc/libgcc2.c:1:0: error: unknown value 'armv8-a' for -mcpu
      
      Signed-off-by: default avatarYousong Zhou <yszhou4tech@gmail.com>
      b889d1e3
  3. Apr 22, 2017
  4. Apr 21, 2017
  5. Apr 20, 2017
  6. Apr 19, 2017
  7. Apr 18, 2017
  8. Apr 17, 2017
  9. Apr 15, 2017
  10. Apr 14, 2017
  11. Apr 13, 2017
  12. Apr 12, 2017
Loading