1. 31 3月, 2018 4 次提交
  2. 29 3月, 2018 3 次提交
  3. 28 3月, 2018 4 次提交
  4. 27 3月, 2018 7 次提交
  5. 26 3月, 2018 2 次提交
  6. 25 3月, 2018 1 次提交
  7. 24 3月, 2018 7 次提交
  8. 23 3月, 2018 10 次提交
  9. 22 3月, 2018 2 次提交
    • N
      MIPS: ralink: Fix booting on MT7621 · a63d706e
      NeilBrown 提交于
      Since commit 3af5a67c ("MIPS: Fix early CM probing") the MT7621 has
      not been able to boot.
      
      This commit caused mips_cm_probe() to be called before
      mt7621.c::proc_soc_init().
      
      prom_soc_init() has a comment explaining that mips_cm_probe() "wipes out
      the bootloader config" and means that configuration registers are no
      longer available. It has some code to re-enable this config.
      
      Before this re-enable code is run, the sysc register cannot be read, so
      when SYSC_REG_CHIP_NAME0 is read, a garbage value is returned and
      panic() is called.
      
      If we move the config-repair code to the top of prom_soc_init(), the
      registers can be read and boot can proceed.
      
      Very occasionally, the first register read after the reconfiguration
      returns garbage, so add a call to __sync().
      
      Fixes: 3af5a67c ("MIPS: Fix early CM probing")
      Signed-off-by: NNeilBrown <neil@brown.name>
      Reviewed-by: NMatt Redfearn <matt.redfearn@mips.com>
      Cc: John Crispin <john@phrozen.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: linux-mips@linux-mips.org
      Cc: <stable@vger.kernel.org> # 4.5+
      Patchwork: https://patchwork.linux-mips.org/patch/18859/Signed-off-by: NJames Hogan <jhogan@kernel.org>
      a63d706e
    • N
      MIPS: ralink: Remove ralink_halt() · 891731f6
      NeilBrown 提交于
      ralink_halt() does nothing that machine_halt() doesn't already do, so it
      adds no value.
      
      It actually causes incorrect behaviour due to the "unreachable()" at the
      end. This tells the compiler that the end of the function will never be
      reached, which isn't true. The compiler responds by not adding a
      'return' instruction, so control simply moves on to whatever bytes come
      afterwards in memory. In my tested, that was the ralink_restart()
      function. This means that an attempt to 'halt' the machine would
      actually cause a reboot.
      
      So remove ralink_halt() so that a 'halt' really does halt.
      
      Fixes: c06e836a ("MIPS: ralink: adds reset code")
      Signed-off-by: NNeilBrown <neil@brown.name>
      Cc: John Crispin <john@phrozen.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: linux-mips@linux-mips.org
      Cc: <stable@vger.kernel.org> # 3.9+
      Patchwork: https://patchwork.linux-mips.org/patch/18851/Signed-off-by: NJames Hogan <jhogan@kernel.org>
      891731f6