mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Pierre Ossman <drzeus@drzeus.cx>
Cc: drzeus-list@drzeus.cx, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] [MMC] wbsd pnp suspend
Date: Mon, 7 Nov 2005 22:50:19 -0800	[thread overview]
Message-ID: <20051107225019.7cd01a77.akpm@osdl.org> (raw)
In-Reply-To: <20051108064100.18059.79712.stgit@poseidon.drzeus.cx>

Pierre Ossman <drzeus@drzeus.cx> wrote:
>
> Allow the wbsd driver to use the new suspend/resume functions added to
> the PnP layer.
> 

Doesn't Russell handle mmc stuff?

> -static int wbsd_suspend(struct device *dev, pm_message_t state)
> +static int wbsd_suspend(struct wbsd_host *host, pm_message_t state)
> +{
> +	BUG_ON(host == NULL);
> +
> +	return mmc_suspend_host(host->mmc, state);
> +}

There's not much point in this BUG_ON.  If host==0 then we'll get a
perfectly good oops in the next statement - it's just as informative.

> +static int wbsd_resume(struct wbsd_host *host)
> +{
> +	BUG_ON(host == NULL);

Ditto.

> +	if (host->config != 0)
> +	{
> +		if (!wbsd_chip_validate(host))
> +		{

Like:

	if (host->config != 0) {
		if (!wbsd_chip_validate(host)) {

please.


  reply	other threads:[~2005-11-08  6:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-08  6:41 Pierre Ossman
2005-11-08  6:50 ` Andrew Morton [this message]
2005-11-08  6:57   ` Pierre Ossman
2005-11-08  7:06     ` Dmitry Torokhov
2005-11-08  8:45       ` Pierre Ossman
2006-01-07 23:02 Pierre Ossman
2006-01-08 14:23 ` Russell King

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=20051107225019.7cd01a77.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=drzeus-list@drzeus.cx \
    --cc=drzeus@drzeus.cx \
    --cc=linux-kernel@vger.kernel.org \
    /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

Powered by JetHome