Skip to contentSkip to conversation

Converting to dev_pm_ops (remove annoying warnings)

DISCUSSION Ben Dooks 2 participants 3 messages Jul 28, 2009 – Aug 3, 2009

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

I have a couple of questions about changing drivers to use the dev_pm_ops method within drivers using the device driver model.

1) Should the suspend/resume code still be wrapped in #ifdef CONFIG_PM and supply a NULL 'struct dev_pm_ops' wen CONFIG_PM=n

2) Is it allowable to submit changes to move drivers to dev_pm_ops during the -rc phase, or do we have to wait for the merge window before sending these? The number of warnings on a system that relies heavily on platform devices is annoying (S3C24XX ARM).

Signature · 3 lines
Ben ([email protected], http://www.fluff.org/)

  'a smiley only costs 4 bytes'
#1 lore raw

Hi Ben!

Quoted 10 lines · Ben Dooks

I have a couple of questions about changing drivers to use the dev_pm_ops method within drivers using the device driver model.

1) Should the suspend/resume code still be wrapped in #ifdef CONFIG_PM and supply a NULL 'struct dev_pm_ops' wen CONFIG_PM=n

2) Is it allowable to submit changes to move drivers to dev_pm_ops during the -rc phase, or do we have to wait for the merge window before sending these? The number of warnings on a system that relies heavily on platform devices is annoying (S3C24XX ARM).

To begin with: I'm the one to blame for the annoying printouts. If people dislike the printout then I'm all for disabling it later on in the -rc phase. As you understand the goal is to motivate people to update their drivers. =)

I'm not the right person to answer the merge policy question, but wouldn't it be good to submit patches regardless of when they will be picked up? OTOH, I guess knowing when helps if you have a bunch of other changes queued up for your drivers though...

Any thoughts?

Cheers,

/ magnus

#2 lore raw
In reply to Ben Dooks

Hi Ben!

Quoted 10 lines · Ben Dooks

I have a couple of questions about changing drivers to use the dev_pm_ops method within drivers using the device driver model.

1) Should the suspend/resume code still be wrapped in #ifdef CONFIG_PM and supply a NULL 'struct dev_pm_ops' wen CONFIG_PM=n

2) Is it allowable to submit changes to move drivers to dev_pm_ops during the -rc phase, or do we have to wait for the merge window before sending these? The number of warnings on a system that relies heavily on platform devices is annoying (S3C24XX ARM).

To begin with: I'm the one to blame for the annoying printouts. If people dislike the printout then I'm all for disabling it later on in the -rc phase. As you understand the goal is to motivate people to update their drivers. =)

I'm not the right person to answer the merge policy question, but wouldn't it be good to submit patches regardless of when they will be picked up? OTOH, I guess knowing when helps if you have a bunch of other changes queued up for your drivers though...

Any thoughts?

Cheers,

/ magnus