1. 12 Jul, 2024 5 commits
  2. 09 Jul, 2024 3 commits
  3. 03 Jul, 2024 9 commits
  4. 27 Jun, 2024 5 commits
  5. 21 Jun, 2024 12 commits
  6. 19 Jun, 2024 2 commits
  7. 13 Jun, 2024 1 commit
  8. 11 Jun, 2024 3 commits
    • Christian Marangi's avatar
      mips: bmips: BCM6358: make sure CBR is correctly set · ce5cdd3b
      Christian Marangi authored
      It was discovered that some device have CBR address set to 0 causing
      kernel panic when arch_sync_dma_for_cpu_all is called.
      
      This was notice in situation where the system is booted from TP1 and
      BMIPS_GET_CBR() returns 0 instead of a valid address and
      !!(read_c0_brcm_cmt_local() & (1 << 31)); not failing.
      
      The current check whether RAC flush should be disabled or not are not
      enough hence lets check if CBR is a valid address or not.
      
      Fixes: ab327f8a ("mips: bmips: BCM6358: disable RAC flush for TP1")
      Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
      Acked-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
      Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
      ce5cdd3b
    • Martin Schiller's avatar
      MIPS: pci: lantiq: restore reset gpio polarity · 277a0363
      Martin Schiller authored
      Commit 90c2d2eb ("MIPS: pci: lantiq: switch to using gpiod API") not
      only switched to the gpiod API, but also inverted / changed the polarity
      of the GPIO.
      
      According to the PCI specification, the RST# pin is an active-low
      signal. However, most of the device trees that have been widely used for
      a long time (mainly in the openWrt project) define this GPIO as
      active-high and the old driver code inverted the signal internally.
      
      Apparently there are actually boards where the reset gpio must be
      operated inverted. For this reason, we cannot use the GPIOD_OUT_LOW/HIGH
      flag for initialization. Instead, we must explicitly set the gpio to
      value 1 in order to take into account any "GPIO_ACTIVE_LOW" flag that
      may have been set.
      
      In order to remain compatible with all these existing device trees, we
      should therefore keep the logic as it was before the commit.
      
      Fixes: 90c2d2eb ("MIPS: pci: lantiq: switch to using gpiod API")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarMartin Schiller <ms@dev.tdt.de>
      Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
      277a0363
    • Ilpo Järvinen's avatar
      MIPS: Routerboard 532: Fix vendor retry check code · ae9daffd
      Ilpo Järvinen authored
      read_config_dword() contains strange condition checking ret for a
      number of values. The ret variable, however, is always zero because
      config_access() never returns anything else. Thus, the retry is always
      taken until number of tries is exceeded.
      
      The code looks like it wants to check *val instead of ret to see if the
      read gave an error response.
      
      Fixes: 73b4390f ("[MIPS] Routerboard 532: Support for base system")
      Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
      Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
      ae9daffd