From: Eric Anholt <eric@anholt.net>
To: dri-devel@lists.freedesktop.org
Cc: linux-kernel@vger.kernel.org, David Airlie <airlied@linux.ie>
Subject: Re: [PATCH 2/3] drm/vc4: Enable runtime PM.
Date: Tue, 16 Feb 2016 10:53:27 -0800 [thread overview]
Message-ID: <87egccsd08.fsf@eliezer.anholt.net> (raw)
In-Reply-To: <1454977179-16913-3-git-send-email-eric@anholt.net>
[-- Attachment #1: Type: text/plain, Size: 630 bytes --]
Eric Anholt <eric@anholt.net> writes:
> +#ifdef CONFIG_PM_SLEEP
> +static int vc4_v3d_runtime_suspend(struct device *dev)
> +{
> + struct vc4_v3d *v3d = dev_get_drvdata(dev);
> + struct vc4_dev *vc4 = v3d->vc4;
> +
> + vc4_irq_uninstall(vc4->dev);
> +
> + return 0;
> +}
> +
> +static int vc4_v3d_runtime_resume(struct device *dev)
> +{
> + struct vc4_v3d *v3d = dev_get_drvdata(dev);
> + struct vc4_dev *vc4 = v3d->vc4;
> +
> + vc4_v3d_init_hw(vc4->dev);
> + vc4_irq_postinstall(vc4->dev);
> +
> + return 0;
> +}
> +#endif
kbuild test robot caught that this #ifdef should have been CONFIG_PM,
not CONFIG_PM_SLEEP. Fixed in v2.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
next prev parent reply other threads:[~2016-02-16 18:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-09 0:19 [PATCH 0/3] vc4: Runtime PM and GPU reset Eric Anholt
2016-02-09 0:19 ` [PATCH 1/3] drm/vc4: Fix spurious GPU resets due to BO reuse Eric Anholt
2016-02-09 0:19 ` [PATCH 2/3] drm/vc4: Enable runtime PM Eric Anholt
2016-02-16 18:53 ` Eric Anholt [this message]
2016-02-09 0:19 ` [PATCH 3/3] drm/vc4: Use runtime PM to power cycle the device when the GPU hangs Eric Anholt
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=87egccsd08.fsf@eliezer.anholt.net \
--to=eric@anholt.net \
--cc=airlied@linux.ie \
--cc=dri-devel@lists.freedesktop.org \
--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
all inboxes | Powered by JetHome®