1. 28 7月, 2015 2 次提交
    • B
      clk: fix some determine_rate implementations · 57d866e6
      Boris Brezillon 提交于
      Some determine_rate implementations are not returning an error
      when they failed to adapt the rate according to the rate request.
      Fix them so that they return an error instead of silently
      returning 0.
      Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
      CC: Jonathan Corbet <corbet@lwn.net>
      CC: Tony Lindgren <tony@atomide.com>
      CC: Ralf Baechle <ralf@linux-mips.org>
      CC: "Emilio López" <emilio@elopez.com.ar>
      CC: Maxime Ripard <maxime.ripard@free-electrons.com>
      Cc: Tero Kristo <t-kristo@ti.com>
      CC: Peter De Schrijver <pdeschrijver@nvidia.com>
      CC: Prashant Gaikwad <pgaikwad@nvidia.com>
      CC: Stephen Warren <swarren@wwwdotorg.org>
      CC: Thierry Reding <thierry.reding@gmail.com>
      CC: Alexandre Courbot <gnurou@gmail.com>
      CC: linux-doc@vger.kernel.org
      CC: linux-kernel@vger.kernel.org
      CC: linux-arm-kernel@lists.infradead.org
      CC: linux-omap@vger.kernel.org
      CC: linux-mips@linux-mips.org
      CC: linux-tegra@vger.kernel.org
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      57d866e6
    • B
      clk: change clk_ops' ->determine_rate() prototype · 0817b62c
      Boris Brezillon 提交于
      Clock rates are stored in an unsigned long field, but ->determine_rate()
      (which returns a rounded rate from a requested one) returns a long
      value (errors are reported using negative error codes), which can lead
      to long overflow if the clock rate exceed 2Ghz.
      
      Change ->determine_rate() prototype to return 0 or an error code, and pass
      a pointer to a clk_rate_request structure containing the expected target
      rate and the rate constraints imposed by clk users.
      
      The clk_rate_request structure might be extended in the future to contain
      other kind of constraints like the rounding policy, the maximum clock
      inaccuracy or other things that are not yet supported by the CCF
      (power consumption constraints ?).
      Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
      CC: Jonathan Corbet <corbet@lwn.net>
      CC: Tony Lindgren <tony@atomide.com>
      CC: Ralf Baechle <ralf@linux-mips.org>
      CC: "Emilio López" <emilio@elopez.com.ar>
      CC: Maxime Ripard <maxime.ripard@free-electrons.com>
      Acked-by: NTero Kristo <t-kristo@ti.com>
      CC: Peter De Schrijver <pdeschrijver@nvidia.com>
      CC: Prashant Gaikwad <pgaikwad@nvidia.com>
      CC: Stephen Warren <swarren@wwwdotorg.org>
      CC: Thierry Reding <thierry.reding@gmail.com>
      CC: Alexandre Courbot <gnurou@gmail.com>
      CC: linux-doc@vger.kernel.org
      CC: linux-kernel@vger.kernel.org
      CC: linux-arm-kernel@lists.infradead.org
      CC: linux-omap@vger.kernel.org
      CC: linux-mips@linux-mips.org
      CC: linux-tegra@vger.kernel.org
      [sboyd@codeaurora.org: Fix parent dereference problem in
      __clk_determine_rate()]
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      Tested-by: NRomain Perier <romain.perier@gmail.com>
      Signed-off-by: NHeiko Stuebner <heiko@sntech.de>
      [sboyd@codeaurora.org: Folded in fix from Heiko for fixed-rate
      clocks without parents or a rate determining op]
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      0817b62c
  2. 17 6月, 2015 1 次提交
  3. 02 6月, 2015 1 次提交
  4. 05 5月, 2015 1 次提交
  5. 26 3月, 2015 2 次提交
  6. 21 3月, 2015 3 次提交
  7. 23 2月, 2015 2 次提交
    • C
      clk: sunxi: Add support for sun9i A80 USB clocks and resets · 71f32f56
      Chen-Yu Tsai 提交于
      The USB controller/phy clocks and reset controls are in a separate
      address block, unlike previous SoCs where they were in the clock
      controller. Also, access to the address block is controlled by a
      clock gate to AHB.
      
      Add support for resets requiring a clock to be enabled when
      asserting/deasserting the reset controls, and add the sun9i USB
      clocks.
      Signed-off-by: NChen-Yu Tsai <wens@csie.org>
      Signed-off-by: NMaxime Ripard <maxime.ripard@free-electrons.com>
      71f32f56
    • C
      clk: sunxi: Move USB clocks to separate file · 6089ef19
      Chen-Yu Tsai 提交于
      The USB clocks originally shared code with the gates clocks, but had
      additional reset controllers. Move these to a separate file. This will
      allow us to add new support for slightly different USB clocks, such as
      on the A80, without affecting gates clocks, and also facilitate the
      migration of gates clocks to a generic solution.
      
      This also cleans up the USB clocks code slightly, such as adding
      newlines, getting rid of the unused clkdev call, using a simple
      u32 instead of BITMAP for the clock masks, using BIT() macro to
      declare the clock bitmasks, and using of_io_request_and_map() to
      get the I/O address.
      Signed-off-by: NChen-Yu Tsai <wens@csie.org>
      Signed-off-by: NMaxime Ripard <maxime.ripard@free-electrons.com>
      6089ef19
  8. 03 2月, 2015 1 次提交
  9. 25 1月, 2015 2 次提交
  10. 21 1月, 2015 1 次提交
  11. 20 1月, 2015 1 次提交
  12. 15 1月, 2015 1 次提交
  13. 14 1月, 2015 2 次提交
  14. 07 1月, 2015 1 次提交
  15. 06 1月, 2015 1 次提交
  16. 05 1月, 2015 1 次提交
  17. 22 12月, 2014 4 次提交
  18. 04 12月, 2014 1 次提交
  19. 24 11月, 2014 4 次提交
  20. 11 11月, 2014 1 次提交
  21. 22 10月, 2014 3 次提交
  22. 27 9月, 2014 4 次提交