Am Samstag, den 11.01.2014, 20:42 +0100 schrieb Tomasz Figa:
+ pd = of_genpd_get_from_provider(&pd_args);
+ if (IS_ERR(pd))
+ return PTR_ERR(pd);
+
+ dev_dbg(dev, "adding to power domain %s\n", pd->name);
+
+ while (1) {
+ ret = pm_genpd_add_device(pd, dev);
Since pm_genpd_add_device is used here, no gpd_timing_data can be
provided. Do you have a plan to solve this? Should the timing data be
provided from the device tree?
arch/arm/mach-shmobile/pm-rmobile.c-void rmobile_add_device_to_domain_td(const char *domain_name,
arch/arm/mach-shmobile/pm-rmobile.c- struct platform_device *pdev,
arch/arm/mach-shmobile/pm-rmobile.c- struct gpd_timing_data *td)
arch/arm/mach-shmobile/pm-rmobile.c-{
arch/arm/mach-shmobile/pm-rmobile.c- struct device *dev = &pdev->dev;
arch/arm/mach-shmobile/pm-rmobile.c-
arch/arm/mach-shmobile/pm-rmobile.c: __pm_genpd_name_add_device(domain_name, dev, td);
arch/arm/mach-shmobile/pm-rmobile.c- if (pm_clk_no_clocks(dev))
arch/arm/mach-shmobile/pm-rmobile.c- pm_clk_add(dev, NULL);
arch/arm/mach-shmobile/pm-rmobile.c-}
arch/arm/mach-shmobile/pm-rmobile.c-
arch/arm/mach-shmobile/pm-rmobile.c-void rmobile_add_devices_to_domains(struct pm_domain_device data[],
arch/arm/mach-shmobile/pm-rmobile.c- int size)
arch/arm/mach-shmobile/pm-rmobile.c-{
arch/arm/mach-shmobile/pm-rmobile.c- struct gpd_timing_data latencies = {
arch/arm/mach-shmobile/pm-rmobile.c- .stop_latency_ns = DEFAULT_DEV_LATENCY_NS,
arch/arm/mach-shmobile/pm-rmobile.c- .start_latency_ns = DEFAULT_DEV_LATENCY_NS,
arch/arm/mach-shmobile/pm-rmobile.c- .save_state_latency_ns = DEFAULT_DEV_LATENCY_NS,
arch/arm/mach-shmobile/pm-rmobile.c- .restore_state_latency_ns = DEFAULT_DEV_LATENCY_NS,
arch/arm/mach-shmobile/pm-rmobile.c- };
arch/arm/mach-shmobile/pm-rmobile.c- int j;
arch/arm/mach-shmobile/pm-rmobile.c-
arch/arm/mach-shmobile/pm-rmobile.c- for (j = 0; j < size; j++)
arch/arm/mach-shmobile/pm-rmobile.c- rmobile_add_device_to_domain_td(data[j].domain_name,
arch/arm/mach-shmobile/pm-rmobile.c- data[j].pdev, &latencies);
arch/arm/mach-shmobile/pm-rmobile.c-}