, but by
the clock implementation, so the former shouldn't call clk_put() on it.
Because some boards in mach-omap2 still register clocks statically, their clock
registration had to be updated to take into account that the clock information
is stored in struct clk_core now.
Signed-off-by: Tomeu Vizoso
the
constraint API.
Thanks,
Tomeu
Tomeu Vizoso (2):
clk: Make clk API return per-user struct clk instances
clk: Add floor and ceiling constraints to clock rates
arch/arm/mach-omap2/cclock3xxx_data.c | 108 +++--
arch/arm/mach-omap2/clock.h | 11 +-
arch/arm/mach-omap2
Adds a way for clock consumers to set maximum and minimum rates. This can be
used for thermal drivers to set ceiling rates, or by misc. drivers to set
floor rates to assure a minimum performance level.
Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com
---
drivers/clk/clk.c | 116
Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com
---
drivers/clk/ti/clk-44xx.c | 1 -
drivers/clk/ti/clk-54xx.c | 1 -
drivers/clk/ti/clk-7xx.c | 1 -
include/linux/clk/ti.h| 1 +
4 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clk/ti/clk-44xx.c b/drivers/clk/ti
On 4 October 2014 01:15, Stephen Boyd sb...@codeaurora.org wrote:
On 10/02, Tomeu Vizoso wrote:
Moves clock state to struct clk_core, but takes care to change as little API
as
possible.
struct clk_hw still has a pointer to a struct clk, which is the
implementation's per-user clk instance
clk is now ready to contain information that is specific
to a given clk consumer.
The eighth patch adds API for setting floor and ceiling constraints and stores
that information on the per-user struct clk, which is iterable from struct
clk_core.
Thanks,
Tomeu
Tomeu Vizoso (8):
MIPS: Alchemy
, but by
the clock implementation, so the former shouldn't call clk_put() on it.
Because some boards in mach-omap2 still register clocks statically, their clock
registration had to be updated to take into account that the clock information
is stored in struct clk_core now.
Signed-off-by: Tomeu Vizoso
On 4 October 2014 01:15, Stephen Boyd sb...@codeaurora.org wrote:
On 10/02, Tomeu Vizoso wrote:
+
#if defined(CONFIG_OF) defined(CONFIG_COMMON_CLK)
These ifdefs look useless.
struct clk *of_clk_get_by_clkspec(struct of_phandle_args *clkspec);
struct clk *__of_clk_get_from_provider
On 9 October 2014 03:32, Stephen Boyd sb...@codeaurora.org wrote:
On 10/07/2014 08:21 AM, Tomeu Vizoso wrote:
Hello,
this second version of the series adds several cleanups that were
suggested by
Stephen Boyd and contains several improvements to the seventh patch (clk:
Make
clk API return
that information on the per-user struct clk, which is iterable from struct
clk_core.
http://cgit.collabora.com/git/user/tomeu/linux.git/log/?h=per-user-clk-constraints-v3
Thanks,
Tomeu
Tomeu Vizoso (8):
MIPS: Alchemy: Remove direct access to prepare_count field of struct
clk
clk: Remove
, but by
the clock implementation, so the former shouldn't call clk_put() on it.
Because some boards in mach-omap2 still register clocks statically, their clock
registration had to be updated to take into account that the clock information
is stored in struct clk_core now.
Signed-off-by: Tomeu Vizoso
On 10 October 2014 01:22, Stephen Boyd sb...@codeaurora.org wrote:
On 10/09, Tomeu Vizoso wrote:
arch/arm/mach-omap2/cclock3xxx_data.c | 108 --
arch/arm/mach-omap2/clock.h | 11 +-
arch/arm/mach-omap2/clock_common_data.c | 5 +-
drivers/clk/clk.c
Because they are unused, and there's plans to remove that header in the near
future.
Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com
---
v2: * Add rationale to commit message
* Include clk-provider.h in each file that uses it, instead of in
clk/ti.h
---
drivers/clk
and ceiling constraints and stores
that information on the per-user struct clk, which is iterable from struct
clk_core.
They are based on top of 3.18-rc1.
http://cgit.collabora.com/git/user/tomeu/linux.git/log/?h=per-user-clk-constraints-v4
Thanks,
Tomeu
Tomeu Vizoso (8):
MIPS: Alchemy: Remove
, but by
the clock implementation, so the former shouldn't call clk_put() on it.
Because some boards in mach-omap2 still register clocks statically, their clock
registration had to be updated to take into account that the clock information
is stored in struct clk_core now.
Signed-off-by: Tomeu Vizoso
-constraints-v5
Thanks,
Tomeu
Tomeu Vizoso (7):
clk: Remove unused function __clk_get_prepare_count
clk: Don't try to use a struct clk* after it could have been freed
clk: Don't expose __clk_get_accuracy
clk: change clk_debugfs_add_file to take a struct clk_hw
clk: Change clk_ops
, but by
the clock implementation, so the former shouldn't call clk_put() on it.
Because some boards in mach-omap2 still register clocks statically, their clock
registration had to be updated to take into account that the clock information
is stored in struct clk_core now.
Signed-off-by: Tomeu Vizoso
On 31 October 2014 12:33, Peter De Schrijver pdeschrij...@nvidia.com wrote:
On Thu, Oct 30, 2014 at 11:48:26AM +0100, Tomeu Vizoso wrote:
Hello,
this fifth version of the series has just one change, suggested by Stephen:
Hi Mike, how is this looking for 3.19?
Regards,
Tomeu
* Initialize
On 14 November 2014 08:06, Stephen Boyd sb...@codeaurora.org wrote:
On 10/30, Tomeu Vizoso wrote:
Moves clock state to struct clk_core, but takes care to change as little API
as
possible.
struct clk_hw still has a pointer to a struct clk, which is the
implementation's per-user clk instance
, but by
the clock implementation, so the former shouldn't call clk_put() on it.
Because some boards in mach-omap2 still register clocks statically, their clock
registration had to be updated to take into account that the clock information
is stored in struct clk_core now.
Signed-off-by: Tomeu Vizoso
Adds a way for clock consumers to set maximum and minimum rates. This can be
used for thermal drivers to set ceiling rates, or by misc. drivers to set
floor rates to assure a minimum performance level.
Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com
---
v6: * Take the prepare lock
/git/user/tomeu/linux.git/log/?h=per-user-clk-constraints-v6
Thanks,
Tomeu
Tomeu Vizoso (7):
clk: Remove unused function __clk_get_prepare_count
clk: Don't try to use a struct clk* after it could have been freed
clk: Don't expose __clk_get_accuracy
clk: change clk_debugfs_add_file to take
.
They are based on top of linux-next 20141201.
http://cgit.collabora.com/git/user/tomeu/linux.git/log/?h=per-user-clk-constraints-v7
Thanks,
Tomeu
Tomeu Vizoso (7):
clk: Remove unused function __clk_get_prepare_count
clk: Don't try to use a struct clk* after it could have been freed
clk
, but by
the clock implementation, so the former shouldn't call clk_put() on it.
Because some boards in mach-omap2 still register clocks statically, their clock
registration had to be updated to take into account that the clock information
is stored in struct clk_core now.
Signed-off-by: Tomeu Vizoso
This is in preparation for clock providers to not have to deal with struct clk.
Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com
Reviewed-by: Stephen Boyd sb...@codeaurora.org
---
v7: * Update a few more instances in new code
v4: * Make sure that best_parent_p is populated
Adds a way for clock consumers to set maximum and minimum rates. This can be
used for thermal drivers to set ceiling rates, or by misc. drivers to set
floor rates to assure a minimum performance level.
Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com
---
v7: * Update a few more
On 01/22/2015 02:01 AM, Stephen Boyd wrote:
On 01/21, Tomeu Vizoso wrote:
@@ -2075,10 +2210,12 @@ struct clk *clk_register(struct device *dev, struct
clk_hw *hw)
}
}
-ret = __clk_init(dev, clk);
+hw-clk = __clk_create_clk(hw, NULL, NULL);
+ret = __clk_init
On 02/02/2015 11:41 PM, Mike Turquette wrote:
Quoting Tero Kristo (2015-02-02 11:32:01)
On 02/01/2015 11:24 PM, Mike Turquette wrote:
Quoting Tomeu Vizoso (2015-01-23 03:03:30)
Moves clock state to struct clk_core, but takes care to change as little
API as
possible.
struct clk_hw still
On 19 January 2015 at 21:59, Stephen Boyd sb...@codeaurora.org wrote:
On 01/19, Tomeu Vizoso wrote:
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 97f3425..f2a1ff3 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -694,32 +751,32 @@ long __clk_mux_determine_rate(struct
On 20 January 2015 at 01:00, Stephen Boyd sb...@codeaurora.org wrote:
On 01/19, Tomeu Vizoso wrote:
Adds a way for clock consumers to set maximum and minimum rates. This can be
used for thermal drivers to set ceiling rates, or by misc. drivers to set
floor rates to assure a minimum performance
, but by
the clock implementation, so the former shouldn't call clk_put() on it.
Because some boards in mach-omap2 still register clocks statically, their clock
registration had to be updated to take into account that the clock information
is stored in struct clk_core now.
Signed-off-by: Tomeu Vizoso
and max_rate.
Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com
---
v10:* Refactor __clk_determine_rate to share code with
clk_round_rate.
* Remove clk_core_round_rate_nolock as it's unused now
v9: * s/floor/min and s/ceiling/max
* Add a bunch of NULL checks
On 17 January 2015 at 02:02, Stephen Boyd sb...@codeaurora.org wrote:
On 01/12, Tomeu Vizoso wrote:
Moves clock state to struct clk_core, but takes care to change as little API
as
possible.
struct clk_hw still has a pointer to a struct clk, which is the
implementation's per-user clk
On 17 January 2015 at 02:57, Stephen Boyd sb...@codeaurora.org wrote:
On 01/12, Tomeu Vizoso wrote:
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 7eddfd8..2793bd7 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -1013,8 +1015,8 @@ static unsigned long
, but by
the clock implementation, so the former shouldn't call clk_put() on it.
Because some boards in mach-omap2 still register clocks statically, their clock
registration had to be updated to take into account that the clock information
is stored in struct clk_core now.
Signed-off-by: Tomeu Vizoso
and ceiling_rate.
Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com
---
v9: * s/floor/min and s/ceiling/max
* Add a bunch of NULL checks
* Propagate our rate range when querying our parent for the rate
* Take constraints into account in clk_round_rate
* Add
On 01/22/2015 02:46 AM, Stephen Boyd wrote:
On 01/21, Tomeu Vizoso wrote:
Adds a way for clock consumers to set maximum and minimum rates. This
can be used for thermal drivers to set minimum rates, or by misc.
drivers to set maximum rates to assure a minimum performance level.
Changes
, but by
the clock implementation, so the former shouldn't call clk_put() on it.
Because some boards in mach-omap2 still register clocks statically, their clock
registration had to be updated to take into account that the clock information
is stored in struct clk_core now.
Signed-off-by: Tomeu Vizoso
and max_rate.
Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com
---
v12:* Refactor locking so that __clk_put takes the lock only once
v11:* Recalculate the rate before putting the reference to clk_core
* Don't recalculate the rate when freeing the per-user clock
and max_rate.
Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com
---
v11:* Recalculate the rate before putting the reference to clk_core
* Don't recalculate the rate when freeing the per-user clock
in the initialization error paths
* Move __clk_create_clk to be next
, but by
the clock implementation, so the former shouldn't call clk_put() on it.
Because some boards in mach-omap2 still register clocks statically, their clock
registration had to be updated to take into account that the clock information
is stored in struct clk_core now.
Signed-off-by: Tomeu Vizoso
On 31 January 2015 at 02:31, Stephen Boyd sb...@codeaurora.org wrote:
On 01/29, Stephen Boyd wrote:
On 01/29/15 05:31, Geert Uytterhoeven wrote:
Hi Tomeu, Mike,
On Fri, Jan 23, 2015 at 12:03 PM, Tomeu Vizoso
tomeu.viz...@collabora.com wrote:
--- a/drivers/clk/clk.c
+++ b/drivers/clk
On 01/22/2015 07:59 PM, Stephen Boyd wrote:
On 01/22, Tomeu Vizoso wrote:
On 01/22/2015 02:01 AM, Stephen Boyd wrote:
BTW, please try and fixup checkpatch warnings.
What were you thinking of specifically? I'm running it with
--max-line-length=106 and the other warnings are in clk-test.c
, but by
the clock implementation, so the former shouldn't call clk_put() on it.
Because some boards in mach-omap2 still register clocks statically, their clock
registration had to be updated to take into account that the clock information
is stored in struct clk_core now.
Signed-off-by: Tomeu Vizoso
and max_rate.
Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com
Reviewed-by: Stephen Boyd sb...@codeaurora.org
---
v13:* Cut one line to the 80-column limit
* Make clear in the docs that the ranges are inclusive
v12:* Refactor locking so that __clk_put takes the lock only once
v11
, but by
the clock implementation, so the former shouldn't call clk_put() on it.
Because some boards in mach-omap2 still register clocks statically, their clock
registration had to be updated to take into account that the clock information
is stored in struct clk_core now.
Signed-off-by: Tomeu Vizoso
and ceiling_rate.
Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com
---
v7: * Update a few more instances in new code
v6: * Take the prepare lock before removing a per-user clk
* Init per-user clks list before adding the first clk
* Pass the constraints to determine_rate
e5932000 (e5921010)
Signed-off-by: Tomeu Vizoso tomeu.viz...@collabora.com
Suggested-by: Javier Martinez Canillas jav...@dowhile0.org
---
drivers/memory/omap-gpmc.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c
index 3a27a84ad3ec
eck for all dev_pm_ops instances associated to a device, updating a
no_pm_callbacks flag at the times when that could change.
Tomeu Vizoso (4):
device core: add device_is_bound()
PM / Domains: add setter for dev.pm_domain
PM / sleep: Go direct_complete if driver has no callbacks
USB / PM: Al
that.
This patch also changes all current code that directly sets the
dev.pm_domain pointer.
Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com>
Reviewed-by: Ulf Hansson <ulf.hans...@linaro.org>
---
Changes in v9:
- Add docs noting the need for the device lock to be held be
On 25 October 2015 at 16:18, Rafael J. Wysocki <r...@rjwysocki.net> wrote:
> On Wednesday, October 21, 2015 05:34:12 PM Tomeu Vizoso wrote:
>> Adds a function that sets the pointer to dev_pm_domain in struct device
>> and that warns if the device has already finished probing.
that.
This patch also changes all current code that directly sets the
dev.pm_domain pointer.
Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com>
Reviewed-by: Ulf Hansson <ulf.hans...@linaro.org>
---
Changes in v11:
- Move calls to dev_pm_domain_set() out from >power.lock as that
power/main.c as it
doesn't belong to CONFIG_PM_SLEEP.
- Take dev->power.lock before modifying flag.
Changes in v5:
- Check for all dev_pm_ops instances associated to a device, updating a
no_pm_callbacks flag at the times when that could change.
Tomeu Vizoso (4):
device core: add device_is_bou
that.
This patch also changes all current code that directly sets the
dev.pm_domain pointer.
Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com>
---
Changes in v8:
- Add dev_pm_domain_set() and update code to use it
arch/arm/mach-omap2/omap_device.c | 7 ---
drivers/acpi/acpi_
v5:
- Check for all dev_pm_ops instances associated to a device, updating a
no_pm_callbacks flag at the times when that could change.
Tomeu Vizoso (4):
device core: add device_is_bound()
PM / Domains: add setter for dev.pm_domain
PM / sleep: Go direct_complete if driver has no callbacks
USB /
lag at the times when that could change.
Tomeu Vizoso (4):
device core: add device_is_bound()
PM / Domains: add setter for dev.pm_domain
PM / sleep: Go direct_complete if driver has no callbacks
USB / PM: Allow USB devices to remain runtime-suspended when sleeping
arch/arm/mach-om
that.
This patch also changes all current code that directly sets the
dev.pm_domain pointer.
Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com>
---
Changes in v9:
- Add docs noting the need for the device lock to be held before calling
dev_pm_domain_set()
Changes in v8:
acks flag at the times when that could change.
Tomeu Vizoso (4):
device core: add device_is_bound()
PM / Domains: add setter for dev.pm_domain
PM / sleep: Go direct_complete if driver has no callbacks
USB / PM: Allow USB devices to remain runtime-suspended when sleeping
arch/arm/mach-omap2/omap
that.
This patch also changes all current code that directly sets the
dev.pm_domain pointer.
Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com>
Reviewed-by: Ulf Hansson <ulf.hans...@linaro.org>
---
Changes in v12:
- Include linux/pm_domain.h in vga_switcheroo.c for dev_p
59 matches
Mail list logo