mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Manuel Lauss <manuel.lauss@googlemail.com>
To: Marek Vasut <marek.vasut@gmail.com>
Cc: Frans Pop <elendil@planet.nl>,
	linux-arm-kernel@lists.infradead.org, nicolas.ferre@atmel.com,
	mirq-linux@rere.qmqm.pl, linux-kernel@vger.kernel.org,
	manuel.lauss@gmail.com, ppisa@pikron.com, nico@cam.org,
	maen@marvell.com, s.hauer@pengutronix.de, tony@atomide.com,
	madhu.cr@ti.com, drzeus@drzeus.cx, ben-linux@fluff.org,
	avorontsov@ru.mvista.com, pierre@ossman.eu,
	sdhci-devel@lists.ossman.eu, saschasommer@freenet.de,
	oakad@yahoo.com, ian@mnementh.co.uk, HaraldWelte@viatech.com,
	JosephChan@via.com.tw
Subject: Re: [PATCH] Convert MMC subsys drivers to dev_pm_ops
Date: Sat, 22 Aug 2009 10:16:38 +0200	[thread overview]
Message-ID: <f861ec6f0908220116x1322b65cs79695f54b97d8381@mail.gmail.com> (raw)
In-Reply-To: <200908220713.20637.elendil@planet.nl>

Hi Marek,

On Sat, Aug 22, 2009 at 7:13 AM, Frans Pop<elendil@planet.nl> wrote:
> Marek Vasut wrote:
>> +static struct dev_pm_ops cm710_mmc_pm_ops = {
>> +       .suspend = cb710_mmc_suspend,
>> +       .resume = cb710_mmc_resume,
>> +};
>
> This is almost certainly wrong (same for the other drivers you converted)
> as they now no longer support hibernation, which requires different ops.
> Please see: http://lkml.org/lkml/2009/7/25/118.
>
> You also seem to have handled the #ifndef CONFIG_PM case incorrectly.
> See http://lkml.org/lkml/2009/8/3/253 for an example how it can be done.

In addition to what Frans said, at least for platform drivers you could
avoid adding (mostly) unused platform_device temp vars like these

+       struct platform_device *pdev = to_platform_device(dev);
        struct au1xmmc_host *host = platform_get_drvdata(pdev);

by simply doing
-        struct au1xmmc_host *host = platform_get_drvdata(pdev);
+        struct au1xmmc_host *host = dev_get_drvdata(dev);

What do you think?

Thanks!
      Manuel Lauss

  reply	other threads:[~2009-08-22  8:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-22  0:23 Marek Vasut
2009-08-22  2:44 ` Nicolas Pitre
2009-08-22  2:52   ` Marek Vasut
2009-08-22  3:23     ` Nicolas Pitre
2009-08-22  5:13 ` Frans Pop
2009-08-22  8:16   ` Manuel Lauss [this message]
2009-08-22  8:27 ` Matt Fleming
2009-08-22  9:24   ` Marek Vasut
2009-08-22 21:56 ` Ben Dooks

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=f861ec6f0908220116x1322b65cs79695f54b97d8381@mail.gmail.com \
    --to=manuel.lauss@googlemail.com \
    --cc=HaraldWelte@viatech.com \
    --cc=JosephChan@via.com.tw \
    --cc=avorontsov@ru.mvista.com \
    --cc=ben-linux@fluff.org \
    --cc=drzeus@drzeus.cx \
    --cc=elendil@planet.nl \
    --cc=ian@mnementh.co.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=madhu.cr@ti.com \
    --cc=maen@marvell.com \
    --cc=manuel.lauss@gmail.com \
    --cc=marek.vasut@gmail.com \
    --cc=mirq-linux@rere.qmqm.pl \
    --cc=nico@cam.org \
    --cc=nicolas.ferre@atmel.com \
    --cc=oakad@yahoo.com \
    --cc=pierre@ossman.eu \
    --cc=ppisa@pikron.com \
    --cc=s.hauer@pengutronix.de \
    --cc=saschasommer@freenet.de \
    --cc=sdhci-devel@lists.ossman.eu \
    --cc=tony@atomide.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

all inboxes | Powered by JetHome®