From: Kevin Hilman <khilman@deeprootsystems.com>
To: Guruswamy Senthilvadivu <svadivu@ti.com>
Cc: linux-omap@vger.kernel.org, tomi.valkeinen@nokia.com, paul@pwsan.com
Subject: Re: [PATCH 04/20] Create platform_driver for each DSS HW IP
Date: Thu, 26 Aug 2010 16:52:20 -0700 [thread overview]
Message-ID: <877hjdszij.fsf@deeprootsystems.com> (raw)
In-Reply-To: <1282579089-10487-5-git-send-email-svadivu@ti.com> (Guruswamy Senthilvadivu's message of "Mon, 23 Aug 2010 21:27:53 +0530")
Guruswamy Senthilvadivu <svadivu@ti.com> writes:
> From: Senthilvadivu Guruswamy <svadivu@ti.com>
>
> Platform driver of DSS HW IP are to be registered in sequence before
> the omapdss platform driver is registered.
>
> Signed-off-by: Senthilvadivu Guruswamy <svadivu@ti.com>
> ---
> drivers/video/omap2/dss/core.c | 121 ++++++++++++++++++++++++++++++++++++++++
> 1 files changed, 121 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c
> index bcbb077..3b6a309 100644
> --- a/drivers/video/omap2/dss/core.c
> +++ b/drivers/video/omap2/dss/core.c
> @@ -707,6 +707,62 @@ static int omap_dss_resume(struct platform_device *pdev)
> return dss_resume_all_devices();
> }
>
> +/* DSS HW IP initialisation */
> +static int omap_dsshw_probe(struct platform_device *pdev)
> +{
> + return 0;
> +}
> +
> +static int omap_dsshw_remove(struct platform_device *pdev)
> +{
> + return 0;
> +}
It's not customary to create dummy, empty functions in one patch and
then fill them in later. In this case, you create them here, move them
in PATCH 05/20, then fill them in later.
It would be easier to review if you created the platform_drivers when
needed.
Anyways, I'm not crazy about this approach, but Tomi can decide.
> +/* DISPC HW IP initialisation */
> +static int omap_dispchw_probe(struct platform_device *pdev)
> +{
> + return 0;
> +}
> +
> +static int omap_dispchw_remove(struct platform_device *pdev)
> +{
> + return 0;
> +}
> +
> +/* DSI1 HW IP initialisation */
> +static int omap_dsi1hw_probe(struct platform_device *pdev)
> +{
> + return 0;
> +}
> +
> +static int omap_dsi1hw_remove(struct platform_device *pdev)
> +{
> + return 0;
> +}
> +
> +/* RFBI HW IP initialisation */
> +static int omap_rfbihw_probe(struct platform_device *pdev)
> +{
> + return 0;
> +}
> +
> +static int omap_rfbihw_remove(struct platform_device *pdev)
> +{
> + return 0;
> +}
> +
> +/* VENC HW IP initialisation */
> +static int omap_venchw_probe(struct platform_device *pdev)
> +{
> + return 0;
> +}
> +
> +static int omap_venchw_remove(struct platform_device *pdev)
> +{
> + return 0;
> +}
> +
> +
> static struct platform_driver omap_dss_driver = {
> .probe = omap_dss_probe,
> .remove = omap_dss_remove,
> @@ -719,6 +775,66 @@ static struct platform_driver omap_dss_driver = {
> },
> };
>
> +static struct platform_driver omap_dsshw_driver = {
> + .probe = omap_dsshw_probe,
> + .remove = omap_dsshw_remove,
> + .shutdown = NULL,
> + .suspend = NULL,
> + .resume = NULL,
Just leave them out if they're NULL since that is the default.
Kevin
> + .driver = {
> + .name = "dss",
> + .owner = THIS_MODULE,
> + },
> +};
> +
> +static struct platform_driver omap_dispchw_driver = {
> + .probe = omap_dispchw_probe,
> + .remove = omap_dispchw_remove,
> + .shutdown = NULL,
> + .suspend = NULL,
> + .resume = NULL,
> + .driver = {
> + .name = "dss_dispc",
> + .owner = THIS_MODULE,
> + },
> +};
> +
> +static struct platform_driver omap_dsi1hw_driver = {
> + .probe = omap_dsi1hw_probe,
> + .remove = omap_dsi1hw_remove,
> + .shutdown = NULL,
> + .suspend = NULL,
> + .resume = NULL,
> + .driver = {
> + .name = "dss_dsi1",
> + .owner = THIS_MODULE,
> + },
> +};
> +
> +static struct platform_driver omap_rfbihw_driver = {
> + .probe = omap_rfbihw_probe,
> + .remove = omap_rfbihw_remove,
> + .shutdown = NULL,
> + .suspend = NULL,
> + .resume = NULL,
> + .driver = {
> + .name = "dss_rfbi",
> + .owner = THIS_MODULE,
> + },
> +};
> +
> +static struct platform_driver omap_venchw_driver = {
> + .probe = omap_venchw_probe,
> + .remove = omap_venchw_remove,
> + .shutdown = NULL,
> + .suspend = NULL,
> + .resume = NULL,
> + .driver = {
> + .name = "dss_venc",
> + .owner = THIS_MODULE,
> + },
> +};
> +
> /* BUS */
> static int dss_bus_match(struct device *dev, struct device_driver *driver)
> {
> @@ -984,6 +1100,11 @@ static int __init omap_dss_init(void)
>
> static int __init omap_dss_init2(void)
> {
> + platform_driver_register(&omap_dsshw_driver);
> + platform_driver_register(&omap_dispchw_driver);
> + platform_driver_register(&omap_dsi1hw_driver);
> + platform_driver_register(&omap_rfbihw_driver);
> + platform_driver_register(&omap_venchw_driver);
> return platform_driver_register(&omap_dss_driver);
> }
next prev parent reply other threads:[~2010-08-26 23:52 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-23 15:57 [RFC PATCH 00/20] HWMOD Adaptation for DSS Guruswamy Senthilvadivu
2010-08-23 15:57 ` [PATCH 01/20] DSS HWMOD database generation for OMAP3 Guruswamy Senthilvadivu
2010-08-23 15:57 ` [PATCH 02/20] Move DSS driver register from board to mach_omap2 Guruswamy Senthilvadivu
2010-08-23 15:57 ` [PATCH 03/20] Build omap_device for each DSS HW IP Guruswamy Senthilvadivu
2010-08-23 15:57 ` [PATCH 04/20] Create platform_driver " Guruswamy Senthilvadivu
2010-08-23 15:57 ` [PATCH 05/20] Move dss platform driver to dss.c Guruswamy Senthilvadivu
2010-08-23 15:57 ` [PATCH 06/20] DSS driver name change in clock database Guruswamy Senthilvadivu
2010-08-23 15:57 ` [PATCH 07/20] Move clock functions from core driver to dss driver Guruswamy Senthilvadivu
2010-08-23 15:57 ` [PATCH 08/20] Replace clk_enable/disable APIs with HWMOD APIs Guruswamy Senthilvadivu
2010-08-23 15:57 ` [PATCH 09/20] Move dss_init to dsshw_probe Guruswamy Senthilvadivu
2010-08-23 15:57 ` [PATCH 10/20] Move rfbi init to rfbi probe Guruswamy Senthilvadivu
2010-08-23 15:58 ` [PATCH 11/20] Move dispc init to dispc probe Guruswamy Senthilvadivu
2010-08-23 15:58 ` [PATCH 12/20] Move venc init to venc probe Guruswamy Senthilvadivu
2010-08-23 15:58 ` [PATCH 13/20] Move dsi init to dsi probe Guruswamy Senthilvadivu
2010-08-23 15:58 ` [PATCH 14/20] Pass platform_device argument to rfbi,dispc Guruswamy Senthilvadivu
2010-08-23 15:58 ` [PATCH 15/20] Use platform device to get DSS base addr Guruswamy Senthilvadivu
2010-08-23 15:58 ` [PATCH 16/20] Get DISPC base addr with platform device Guruswamy Senthilvadivu
2010-08-23 15:58 ` [PATCH 17/20] Get VENC base addr from " Guruswamy Senthilvadivu
2010-08-23 15:58 ` [PATCH 18/20] Get DSI base addr with " Guruswamy Senthilvadivu
2010-08-23 15:58 ` [PATCH 19/20] Get RFBI baseaddr " Guruswamy Senthilvadivu
2010-08-23 15:58 ` [PATCH 20/20] Get DSS IRQ " Guruswamy Senthilvadivu
2010-08-25 13:13 ` [PATCH 16/20] Get DISPC base addr " Tomi Valkeinen
2010-08-31 9:14 ` Guruswamy, Senthilvadivu
2010-08-23 21:43 ` [PATCH 15/20] Use platform device to get DSS base addr Cousson, Benoit
2010-08-31 12:55 ` Guruswamy, Senthilvadivu
2010-08-26 23:54 ` [PATCH 10/20] Move rfbi init to rfbi probe Kevin Hilman
2010-08-27 13:54 ` Cousson, Benoit
2010-08-31 12:57 ` Guruswamy, Senthilvadivu
2010-08-31 16:38 ` Cousson, Benoit
2010-08-26 23:37 ` [PATCH 08/20] Replace clk_enable/disable APIs with HWMOD APIs Kevin Hilman
2010-08-25 8:49 ` [PATCH 05/20] Move dss platform driver to dss.c Tomi Valkeinen
2010-08-31 9:13 ` Guruswamy, Senthilvadivu
2010-08-26 23:52 ` Kevin Hilman [this message]
2010-08-31 13:03 ` [PATCH 04/20] Create platform_driver for each DSS HW IP Guruswamy, Senthilvadivu
2010-08-31 15:27 ` Kevin Hilman
2010-08-26 23:33 ` [PATCH 03/20] Build omap_device " Kevin Hilman
2010-08-31 13:01 ` Guruswamy, Senthilvadivu
2010-08-31 15:29 ` Kevin Hilman
2010-08-25 8:31 ` [PATCH 02/20] Move DSS driver register from board to mach_omap2 Tomi Valkeinen
2010-08-31 9:14 ` Guruswamy, Senthilvadivu
2010-08-26 23:30 ` [PATCH 01/20] DSS HWMOD database generation for OMAP3 Kevin Hilman
2010-08-31 12:59 ` Guruswamy, Senthilvadivu
2010-08-23 21:40 ` [RFC PATCH 00/20] HWMOD Adaptation for DSS Cousson, Benoit
2010-08-31 12:54 ` Guruswamy, Senthilvadivu
2010-08-26 23:57 ` Kevin Hilman
2010-08-31 13:03 ` Guruswamy, Senthilvadivu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877hjdszij.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
--cc=svadivu@ti.com \
--cc=tomi.valkeinen@nokia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.