1. 17 Dec, 2019 36 commits
  2. 16 Dec, 2019 2 commits
    • Tony Lindgren's avatar
      bus: ti-sysc: Fix iterating over clocks · 2c81f0f6
      Tony Lindgren authored
      Commit d878970f ("bus: ti-sysc: Add separate functions for handling
      clocks") separated handling of optional clocks from the main clocks, but
      introduced an issue where we do not necessarily allocate a slot for both
      fck and ick clocks, but still assume fixed slots for enumerating over the
      clocks.
      
      Let's fix the issue by ensuring we always have slots for both fck and ick
      even if we don't use ick, and don't attempt to enumerate optional clocks
      if not allocated.
      
      In the long run we might want to simplify things a bit by only allocating
      space only for the optional clocks as we have only few devices with
      optional clocks.
      
      Fixes: d878970f ("bus: ti-sysc: Add separate functions for handling clocks")
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      2c81f0f6
    • Tony Lindgren's avatar
      ARM: OMAP2+: Fix ti_sysc_find_one_clockdomain to check for to_clk_hw_omap · 90bdfa0b
      Tony Lindgren authored
      We must bail out early if the clock is not hw_omap. Otherwise we will
      try to access invalid address with hwclk->clkdm_name:
      
      Unable to handle kernel paging request at virtual address ffffffff
      Internal error: Oops: 27 [#1] ARM
      ...
      (strcmp) from [<c011b348>] (clkdm_lookup+0x40/0x60)
      [<c011b348>] (clkdm_lookup) from [<c011cb84>] (ti_sysc_clkdm_init+0x5c/0x64)
      [<c011cb84>] (ti_sysc_clkdm_init) from [<c03680a8>] (sysc_probe+0x948/0x117c)
      [<c03680a8>] (sysc_probe) from [<c03d0af4>] (platform_drv_probe+0x48/0x98)
      ...
      
      Fixes: 2b2f7def ("bus: ti-sysc: Add support for missing clockdomain handling")
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      90bdfa0b
  3. 12 Dec, 2019 1 commit
    • Tony Lindgren's avatar
      bus: ti-sysc: Fix missing reset delay handling · e709ed70
      Tony Lindgren authored
      We have dts property for "ti,sysc-delay-us", and we're using it, but the
      wait after OCP softreset only happens if devices are probed in legacy mode.
      
      Let's add a delay after writing the OCP softreset when specified.
      
      Fixes: e0db94fe ("bus: ti-sysc: Make OCP reset work for sysstatus and sysconfig reset bits")
      Cc: Keerthy <j-keerthy@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      e709ed70
  4. 11 Dec, 2019 1 commit