Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1335728 > unrolled thread

Re: [PATCH 2/3] drm/vc4: Enable runtime PM.

Started byEric Anholt <eric@anholt.net>
First post2016-02-16 20:00 +0100
Last post2016-02-16 20:00 +0100
Articles 1 — 1 participant

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.


Contents

  Re: [PATCH 2/3] drm/vc4: Enable runtime PM. Eric Anholt <eric@anholt.net> - 2016-02-16 20:00 +0100

#1335728 — Re: [PATCH 2/3] drm/vc4: Enable runtime PM.

FromEric Anholt <eric@anholt.net>
Date2016-02-16 20:00 +0100
SubjectRe: [PATCH 2/3] drm/vc4: Enable runtime PM.
Message-ID<r2T0S-3ha-5@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

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.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web