linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Gross, Andy" <andy.gross@ti.com>
To: "Cousson, Benoit" <b-cousson@ti.com>
Cc: patches@linaro.org, Greg KH <greg@kroah.com>,
	dri-devel@lists.freedesktop.org, Rob Clark <rob.clark@linaro.org>,
	Rob Clark <rob@ti.com>,
	linux-omap@vger.kernel.org
Subject: Re: [PATCH 1/2] omap2+: add drm device
Date: Fri, 17 Feb 2012 15:14:52 -0600	[thread overview]
Message-ID: <CABT81PgzVEcRMBpZdQX8ymmTf5MJPruNmQytuHMEF-8AE2c7Hg@mail.gmail.com> (raw)
In-Reply-To: <4F1D97CF.60306@ti.com>


[-- Attachment #1.1: Type: text/plain, Size: 1526 bytes --]

On Mon, Jan 23, 2012 at 11:24 AM, Cousson, Benoit <b-cousson@ti.com> wrote:

>
>> +       if (oh) {
>> +               dmm_platdata.base = omap_hwmod_get_mpu_rt_va(oh);
>> +               dmm_platdata.irq = oh->mpu_irqs[0].irq;
>>
>
> These are internal hwmod attributes that should not be retrieved here.
> They are included in the device resources and this is up to the driver to
> get them using the platform_get_resource.


Yeah this can be removed and I can switch to platform_get_resource.



>  +
>> +               if (dmm_platdata.base)
>> +                       omapdrm_platdata.dmm_pdata =&dmm_platdata;
>>
>
> pdata is supposed to be used for storing board level information, and we
> are in the process of removing all of them for device tree adaptation. So
> you should not use that at all in this case if this is not strictly needed.


Noted.  I'll just remove it.  I was planning ahead when I added this, but I
can cross that bridge when I get there.


>
>  +       }
>> +
>> +       return platform_device_register(&**omap_drm_device);
>>
>
> This is not the proper way to init a device nowadays.
>
> If you want to take advantage of the pm functionality, you should create
> an omap_device.
> Please have a look at the other OMAP devices creation code (GPIO, UART...).


It was my understanding that you needed a hwmod entry that corresponded to
the device if you wanted to use omap_device_build().  In the case of
omap_drm, we don't have a hwmod entry.  We do have an entry for DMM.


Regards,

Andy Gross

[-- Attachment #1.2: Type: text/html, Size: 2626 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2012-02-17 21:14 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-13 20:41 [PATCH 1/2] omap2+: add drm device Rob Clark
2012-01-13 20:42 ` [PATCH 2/2] drm/omap: platform data structs moved to plat-omap Rob Clark
2012-01-13 20:59 ` [PATCH 1/2] omap2+: add drm device Felipe Contreras
2012-01-13 21:04   ` Rob Clark
2012-01-13 21:19   ` Rob Clark
2012-01-16 14:12     ` Felipe Contreras
2012-01-16 16:37       ` Rob Clark
2012-01-16 16:59         ` Felipe Contreras
2012-01-16 17:01           ` Rob Clark
2012-01-16 20:37             ` Felipe Contreras
2012-01-16 21:24               ` Rob Clark
2012-01-24 15:33                 ` Felipe Contreras
2012-01-24 15:54                   ` Rob Clark
2012-01-25  2:17                     ` Felipe Contreras
2012-01-25  2:32                       ` Rob Clark
2012-01-25 13:51                         ` Rob Clark
2012-01-23 17:24 ` Cousson, Benoit
2012-01-23 17:48   ` Rob Clark
2012-02-17 21:14   ` Gross, Andy [this message]
2012-02-09 17:28 ` Greg KH
2012-02-09 17:41   ` Rob Clark

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=CABT81PgzVEcRMBpZdQX8ymmTf5MJPruNmQytuHMEF-8AE2c7Hg@mail.gmail.com \
    --to=andy.gross@ti.com \
    --cc=b-cousson@ti.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=greg@kroah.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=patches@linaro.org \
    --cc=rob.clark@linaro.org \
    --cc=rob@ti.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 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).