1. 27 1月, 2018 7 次提交
  2. 19 1月, 2018 5 次提交
  3. 11 1月, 2018 6 次提交
    • S
      clk: mediatek: adjust dependency of reset.c to avoid unexpectedly being built · bc27360b
      Sean Wang 提交于
      Changes from v1->v2:
      Add 'select RESET_CONTROLLER' under COMMON_CLK_MEDIATEK and enable
      reset.c to be built when COMMON_CLK_MEDIATEK is selected. That should
      be quite reasonable because the reset controller is tightly embedded
      inside and exported from these clock subsystems. At least it can be found
      on infracfg and pericfg subsystem that both are really fundamental block
      lots of devices must depend on.
      
      commit 74cb0d6d ("clk: mediatek: fixup test-building of MediaTek clock
      drivers") can let the build system looking into the directory where the
      clock drivers resides and then allow test-building the drivers.
      
      But the change also gives rise to certain incorrect behavior which is
      reset.c being built even not depending on either COMPILE_TEST or
      ARCH_MEDIATEK alternative dependency. To get rid of reset.c being built
      unexpectedly on the other platforms, it would be a good change that the
      file should be built depending on its own specific configuration rather
      than just on generic RESET_CONTROLLER one.
      Signed-off-by: NSean Wang <sean.wang@mediatek.com>
      Cc: Jean Delvare <jdelvare@suse.de>
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      bc27360b
    • D
      clk: fix reentrancy of clk_enable() on UP systems · a12aa8a6
      David Lechner 提交于
      Reentrant calls to clk_enable() are not working on UP systems. This is
      caused by the fact spin_trylock_irqsave() always returns true when
      CONFIG_SMP=n (and CONFIG_DEBUG_SPINLOCK=n) which causes the reference
      counting to not work correctly when clk_enable_lock() is called twice
      before clk_enable_unlock() is called (this happens when clk_enable()
      is called from within another clk_enable()).
      
      This fixes the problem by skipping the call to spin_trylock_irqsave() on UP
      systems and relying solely on reference counting. We also make sure to set
      flags in this case so that we are not returning an uninitialized value.
      Suggested-by: NStephen Boyd <sboyd@codeaurora.org>
      Signed-off-by: NDavid Lechner <david@lechnology.com>
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      a12aa8a6
    • W
      clk: meson-axg: fix potential NULL dereference in axg_clkc_probe() · 9d548d80
      weiyongjun (A) 提交于
      platform_get_resource() may return NULL, add proper
      check to avoid potential NULL dereferencing.
      
      This is detected by Coccinelle semantic patch.
      
      @@
      expression pdev, res, n, t, e, e1, e2;
      @@
      
      res = platform_get_resource(pdev, t, n);
      + if (!res)
      +   return -EINVAL;
      ... when != res == NULL
      e = devm_ioremap(e1, res->start, e2);
      Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com>
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      9d548d80
    • S
      clk: Simplify debugfs registration · db3188fa
      Stephen Boyd 提交于
      We don't need a goto here. Drop it.
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      db3188fa
    • G
      clk: Fix debugfs_create_*() usage · 4c8326d5
      Geert Uytterhoeven 提交于
      When exposing data access through debugfs, the correct
      debugfs_create_*() functions must be used, matching the data
      types.
      
      Remove all casts from data pointers passed to debugfs_create_*()
      functions, as such casts prevent the compiler from flagging bugs.
      
      clk_core.rate and .accuracy are "unsigned long", hence casting
      their addresses to "u32 *" exposed the wrong halves on big-endian
      64-bit systems. Fix this by using debugfs_create_ulong() instead.
      
      Octal permissions are preferred, as they are easier to read than
      symbolic permissions. Hence replace "S_IRUGO" by "0444"
      throughout.
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      [sboyd@codeaurora.org: Squash the octal change in too]
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      4c8326d5
    • G
      clk: Show symbolic clock flags in debugfs · a6059ab9
      Geert Uytterhoeven 提交于
      Currently the virtual "clk_flags" file in debugfs shows the numeric
      value of the top-level framework flags for the specified clock.
      Hence the user must manually interpret these values.
      
      Moreover, on big-endian 64-bit systems, the wrong half of the value is
      shown, due to the cast from "unsigned long *" to "u32 *".
      
      Fix both issues by showing the symbolic flag names instead.
      Any non-standard flags are shown as a hex number.
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      a6059ab9
  4. 05 1月, 2018 3 次提交
  5. 04 1月, 2018 1 次提交
  6. 03 1月, 2018 5 次提交
  7. 29 12月, 2017 12 次提交
  8. 27 12月, 2017 1 次提交
新手
引导
客服 返回
顶部