* [PATCH 0/2] Convert exynos PPMU driver to be built as module
@ 2014-07-18 14:09 Punit Agrawal
2014-07-18 14:09 ` [PATCH 1/2] PM / devfreq: Export helper functions for drivers Punit Agrawal
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Punit Agrawal @ 2014-07-18 14:09 UTC (permalink / raw)
To: linux-pm, linux-samsung-soc
Cc: orjan.eide, Punit Agrawal, linux-kernel, linux-arm-kernel
Hi,
There's no reason why the exynos PPMU can't be built as a module
except you need -
- The first patch exports the functions that are needed to build
devfreq drivers as modules.
- The second patch then converts the exynos PPMU devfreq driver to be
built as a module.
Compile tested only.
Thanks
Punit Agrawal (1):
PM / devfreq: exynos: Enable building exynos PPMU as module
Ørjan Eide (1):
PM / devfreq: Export helper functions for drivers
drivers/devfreq/Kconfig | 2 +-
drivers/devfreq/devfreq.c | 3 +++
drivers/devfreq/exynos/exynos_ppmu.c | 3 +++
3 files changed, 7 insertions(+), 1 deletion(-)
--
1.7.10.4
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] PM / devfreq: Export helper functions for drivers
2014-07-18 14:09 [PATCH 0/2] Convert exynos PPMU driver to be built as module Punit Agrawal
@ 2014-07-18 14:09 ` Punit Agrawal
2014-08-12 13:49 ` Hernandez, Carlos
2014-07-18 14:09 ` [PATCH 2/2] PM / devfreq: exynos: Enable building exynos PPMU as module Punit Agrawal
2014-08-06 13:41 ` [PATCH 0/2] Convert exynos PPMU driver to be built " Punit Agrawal
2 siblings, 1 reply; 5+ messages in thread
From: Punit Agrawal @ 2014-07-18 14:09 UTC (permalink / raw)
To: linux-pm, linux-samsung-soc
Cc: orjan.eide, linux-kernel, linux-arm-kernel, MyungJoo Ham,
Kyungmin Park
From: Ørjan Eide <orjan.eide@arm.com>
These functions are indended for use by drivers and should be available
also when the driver is built as a module.
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Ørjan Eide <orjan.eide@arm.com>
---
drivers/devfreq/devfreq.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
index 9f90369..30b538d8 100644
--- a/drivers/devfreq/devfreq.c
+++ b/drivers/devfreq/devfreq.c
@@ -1119,6 +1119,7 @@ struct dev_pm_opp *devfreq_recommended_opp(struct device *dev,
return opp;
}
+EXPORT_SYMBOL(devfreq_recommended_opp);
/**
* devfreq_register_opp_notifier() - Helper function to get devfreq notified
@@ -1142,6 +1143,7 @@ int devfreq_register_opp_notifier(struct device *dev, struct devfreq *devfreq)
return ret;
}
+EXPORT_SYMBOL(devfreq_register_opp_notifier);
/**
* devfreq_unregister_opp_notifier() - Helper function to stop getting devfreq
@@ -1168,6 +1170,7 @@ int devfreq_unregister_opp_notifier(struct device *dev, struct devfreq *devfreq)
return ret;
}
+EXPORT_SYMBOL(devfreq_unregister_opp_notifier);
static void devm_devfreq_opp_release(struct device *dev, void *res)
{
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] PM / devfreq: exynos: Enable building exynos PPMU as module
2014-07-18 14:09 [PATCH 0/2] Convert exynos PPMU driver to be built as module Punit Agrawal
2014-07-18 14:09 ` [PATCH 1/2] PM / devfreq: Export helper functions for drivers Punit Agrawal
@ 2014-07-18 14:09 ` Punit Agrawal
2014-08-06 13:41 ` [PATCH 0/2] Convert exynos PPMU driver to be built " Punit Agrawal
2 siblings, 0 replies; 5+ messages in thread
From: Punit Agrawal @ 2014-07-18 14:09 UTC (permalink / raw)
To: linux-pm, linux-samsung-soc
Cc: orjan.eide, Punit Agrawal, linux-kernel, linux-arm-kernel,
MyungJoo Ham, Kyungmin Park, Kukjin Kim,
Bartlomiej Zolnierkiewicz
Export symbols from the PPMU driver needed to build the exynos bus
driver as a module.
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
---
drivers/devfreq/Kconfig | 2 +-
drivers/devfreq/exynos/exynos_ppmu.c | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/devfreq/Kconfig b/drivers/devfreq/Kconfig
index 49e74c1..77bf126 100644
--- a/drivers/devfreq/Kconfig
+++ b/drivers/devfreq/Kconfig
@@ -79,7 +79,7 @@ config ARM_EXYNOS4_BUS_DEVFREQ
This does not yet operate with optimal voltages.
config ARM_EXYNOS5_BUS_DEVFREQ
- bool "ARM Exynos5250 Bus DEVFREQ Driver"
+ tristate "ARM Exynos5250 Bus DEVFREQ Driver"
depends on SOC_EXYNOS5250
select ARCH_HAS_OPP
select DEVFREQ_GOV_SIMPLE_ONDEMAND
diff --git a/drivers/devfreq/exynos/exynos_ppmu.c b/drivers/devfreq/exynos/exynos_ppmu.c
index 75fcc51..97b75e5 100644
--- a/drivers/devfreq/exynos/exynos_ppmu.c
+++ b/drivers/devfreq/exynos/exynos_ppmu.c
@@ -73,6 +73,7 @@ void busfreq_mon_reset(struct busfreq_ppmu_data *ppmu_data)
exynos_ppmu_start(ppmu_base);
}
}
+EXPORT_SYMBOL(busfreq_mon_reset);
void exynos_read_ppmu(struct busfreq_ppmu_data *ppmu_data)
{
@@ -97,6 +98,7 @@ void exynos_read_ppmu(struct busfreq_ppmu_data *ppmu_data)
busfreq_mon_reset(ppmu_data);
}
+EXPORT_SYMBOL(exynos_read_ppmu);
int exynos_get_busier_ppmu(struct busfreq_ppmu_data *ppmu_data)
{
@@ -114,3 +116,4 @@ int exynos_get_busier_ppmu(struct busfreq_ppmu_data *ppmu_data)
return busy;
}
+EXPORT_SYMBOL(exynos_get_busier_ppmu);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] Convert exynos PPMU driver to be built as module
2014-07-18 14:09 [PATCH 0/2] Convert exynos PPMU driver to be built as module Punit Agrawal
2014-07-18 14:09 ` [PATCH 1/2] PM / devfreq: Export helper functions for drivers Punit Agrawal
2014-07-18 14:09 ` [PATCH 2/2] PM / devfreq: exynos: Enable building exynos PPMU as module Punit Agrawal
@ 2014-08-06 13:41 ` Punit Agrawal
2 siblings, 0 replies; 5+ messages in thread
From: Punit Agrawal @ 2014-08-06 13:41 UTC (permalink / raw)
To: linux-pm; +Cc: linux-samsung-soc, orjan.eide, linux-kernel, linux-arm-kernel
Punit Agrawal <punit.agrawal@arm.com> writes:
> Hi,
>
> There's no reason why the exynos PPMU can't be built as a module
> except you need -
>
> - The first patch exports the functions that are needed to build
> devfreq drivers as modules.
>
> - The second patch then converts the exynos PPMU devfreq driver to be
> built as a module.
>
Ping!
> Compile tested only.
>
> Thanks
>
> Punit Agrawal (1):
> PM / devfreq: exynos: Enable building exynos PPMU as module
>
> Ørjan Eide (1):
> PM / devfreq: Export helper functions for drivers
>
> drivers/devfreq/Kconfig | 2 +-
> drivers/devfreq/devfreq.c | 3 +++
> drivers/devfreq/exynos/exynos_ppmu.c | 3 +++
> 3 files changed, 7 insertions(+), 1 deletion(-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH 1/2] PM / devfreq: Export helper functions for drivers
2014-07-18 14:09 ` [PATCH 1/2] PM / devfreq: Export helper functions for drivers Punit Agrawal
@ 2014-08-12 13:49 ` Hernandez, Carlos
0 siblings, 0 replies; 5+ messages in thread
From: Hernandez, Carlos @ 2014-08-12 13:49 UTC (permalink / raw)
To: Punit Agrawal, linux-pm@vger.kernel.org,
linux-samsung-soc@vger.kernel.org
Cc: orjan.eide@arm.com, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, MyungJoo Ham, Kyungmin Park
Acked-By: Carlos Hernandez <ceh@ti.com>
-----Original Message-----
From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Punit Agrawal
Sent: Friday, July 18, 2014 10:10 AM
To: linux-pm@vger.kernel.org; linux-samsung-soc@vger.kernel.org
Cc: orjan.eide@arm.com; linux-kernel@vger.kernel.org; linux-arm-kernel@lists.infradead.org; MyungJoo Ham; Kyungmin Park
Subject: [PATCH 1/2] PM / devfreq: Export helper functions for drivers
From: Ørjan Eide <orjan.eide@arm.com>
These functions are indended for use by drivers and should be available also when the driver is built as a module.
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Ørjan Eide <orjan.eide@arm.com>
---
drivers/devfreq/devfreq.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index 9f90369..30b538d8 100644
--- a/drivers/devfreq/devfreq.c
+++ b/drivers/devfreq/devfreq.c
@@ -1119,6 +1119,7 @@ struct dev_pm_opp *devfreq_recommended_opp(struct device *dev,
return opp;
}
+EXPORT_SYMBOL(devfreq_recommended_opp);
/**
* devfreq_register_opp_notifier() - Helper function to get devfreq notified @@ -1142,6 +1143,7 @@ int devfreq_register_opp_notifier(struct device *dev, struct devfreq *devfreq)
return ret;
}
+EXPORT_SYMBOL(devfreq_register_opp_notifier);
/**
* devfreq_unregister_opp_notifier() - Helper function to stop getting devfreq @@ -1168,6 +1170,7 @@ int devfreq_unregister_opp_notifier(struct device *dev, struct devfreq *devfreq)
return ret;
}
+EXPORT_SYMBOL(devfreq_unregister_opp_notifier);
static void devm_devfreq_opp_release(struct device *dev, void *res) {
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-08-12 13:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-18 14:09 [PATCH 0/2] Convert exynos PPMU driver to be built as module Punit Agrawal
2014-07-18 14:09 ` [PATCH 1/2] PM / devfreq: Export helper functions for drivers Punit Agrawal
2014-08-12 13:49 ` Hernandez, Carlos
2014-07-18 14:09 ` [PATCH 2/2] PM / devfreq: exynos: Enable building exynos PPMU as module Punit Agrawal
2014-08-06 13:41 ` [PATCH 0/2] Convert exynos PPMU driver to be built " Punit Agrawal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).