Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1680500 > unrolled thread
| Started by | Johan Hovold <johan@kernel.org> |
|---|---|
| First post | 2017-07-03 19:00 +0200 |
| Last post | 2017-07-06 21:20 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v2 5/5] ARM: OMAP2+: Create dummy platform_device for pm33xx Johan Hovold <johan@kernel.org> - 2017-07-03 19:00 +0200
Re: [PATCH v2 5/5] ARM: OMAP2+: Create dummy platform_device for pm33xx Dave Gerlach <d-gerlach@ti.com> - 2017-07-06 21:20 +0200
| From | Johan Hovold <johan@kernel.org> |
|---|---|
| Date | 2017-07-03 19:00 +0200 |
| Subject | Re: [PATCH v2 5/5] ARM: OMAP2+: Create dummy platform_device for pm33xx |
| Message-ID | <tZcRA-47B-19@gated-at.bofh.it> |
On Fri, May 19, 2017 at 03:04:38PM -0500, Dave Gerlach wrote:
> Add amx3_common_pm_init to create a dummy platform_device for
> pm33xx so that our pm33xx module can probe and am335x and am437x
> platforms to enable basic suspend to mem and standby support.
>
> Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
> ---
> +void __init amx3_common_pm_init(void)
> +{
> + struct platform_device_info devinfo = { };
You should make sure devinfo is zeroed, and also set .id to -1.
> + struct am33xx_pm_platform_data *pdata;
> +
> + pdata = am33xx_pm_get_pdata();
> + devinfo.name = "pm33xx";
> + devinfo.data = pdata;
> + devinfo.size_data = sizeof(*pdata);
> + platform_device_register_full(&devinfo);
> +}
Johan
[toc] | [next] | [standalone]
| From | Dave Gerlach <d-gerlach@ti.com> |
|---|---|
| Date | 2017-07-06 21:20 +0200 |
| Message-ID | <u0ktH-1dP-5@gated-at.bofh.it> |
| In reply to | #1680500 |
On 07/03/2017 11:58 AM, Johan Hovold wrote:
> On Fri, May 19, 2017 at 03:04:38PM -0500, Dave Gerlach wrote:
>> Add amx3_common_pm_init to create a dummy platform_device for
>> pm33xx so that our pm33xx module can probe and am335x and am437x
>> platforms to enable basic suspend to mem and standby support.
>>
>> Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
>> ---
>
>> +void __init amx3_common_pm_init(void)
>> +{
>> + struct platform_device_info devinfo = { };
>
> You should make sure devinfo is zeroed, and also set .id to -1.
Thanks for the comment, will look into updating this for next version.
Regards,
Dave
>
>> + struct am33xx_pm_platform_data *pdata;
>> +
>> + pdata = am33xx_pm_get_pdata();
>> + devinfo.name = "pm33xx";
>> + devinfo.data = pdata;
>> + devinfo.size_data = sizeof(*pdata);
>> + platform_device_register_full(&devinfo);
>> +}
>
> Johan
>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web