All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@deeprootsystems.com>
To: "Guruswamy, Senthilvadivu" <svadivu@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"tomi.valkeinen@nokia.com" <tomi.valkeinen@nokia.com>,
	"paul@pwsan.com" <paul@pwsan.com>
Subject: Re: [PATCH 03/20] Build omap_device for each DSS HW IP
Date: Tue, 31 Aug 2010 08:29:35 -0700	[thread overview]
Message-ID: <87zkw2ssv4.fsf@deeprootsystems.com> (raw)
In-Reply-To: <FCCFB4CDC6E5564B9182F639FC35608703114AA768@dbde02.ent.ti.com> (Senthilvadivu Guruswamy's message of "Tue, 31 Aug 2010 18:31:15 +0530")

"Guruswamy, Senthilvadivu" <svadivu@ti.com> writes:

[...]

>> > From: Senthilvadivu Guruswamy <svadivu@ti.com>
>> >
>> > Looks up the HWMOD database for each of the given DSS HW IP
>> > and builds omap_device which inturn does the platform device
>> > register for each of DSS HW IP
>> >
>> > Signed-off-by: Senthilvadivu Guruswamy <svadivu@ti.com>
>> 
>> [...]
>> 
>> > +	for (i = 0; i < 5; i++) {
>> > +		l = snprintf(oh_name[i], MAX_OMAP_DSS_HWMOD_NAME_LEN,
>> > +				 oh_name[i]);
>> > +		WARN(l >= MAX_OMAP_DSS_HWMOD_NAME_LEN,
>> > +			"String buffer overflow in DSS device setup\n");
>> > +
>> > +		oh = omap_hwmod_lookup(oh_name[i]);
>> > +		if (!oh) {
>> > +			pr_err("Could not look up %s\n", oh_name[i]);
>> > +			return ;
>> > +		}
>> > +		strcpy(pdata.name, oh_name[i]);
>> > +		pdata.board_data		=       board_data;
>> > +		pdata.board_data->get_last_off_on_transaction_id = NULL;
>> > +		pdata.device_enable    =       omap_device_enable;
>> > +		pdata.device_idle      =       omap_device_idle;
>> > +		pdata.device_shutdown  =       omap_device_shutdown;
>> 
>> Please use runtime PM API in driver instead of calling these using
>> pdata function pointers.
>
> [Senthil] when I used pm_runtime API, the clocks were not getting enabled.
> Probably the complete support is not yet in this pm branch.
> Once available I would change to pm_runtime and discard the use_count variable too.

Runtime PM is available and working in current pm-core branch
(a.k.a. pm-wip/hwmods-omap4) Several other hwmod conversions are using
that branch to get working runtime PM.

Rather than use the pdata-> methods, please debug why runtime PM isn't
working for your driver.

Thanks,

Kevin


  reply	other threads:[~2010-08-31 15:29 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         ` [PATCH 04/20] Create platform_driver for each DSS HW IP Kevin Hilman
2010-08-31 13:03           ` 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 [this message]
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=87zkw2ssv4.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.