lkml.org 
[lkml]   [2008]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5/7] lxfb: add power management functionality
Hi!

> +static int lxfb_suspend(struct pci_dev *pdev, pm_message_t state)
> +{
> + struct fb_info *info = pci_get_drvdata(pdev);
> +
> + if (pdev->dev.power.power_state.event == state.event)
> + return 0;

This should never trigger. See Doc*/feature-removal-sch*.


> + /* there's no point in setting PCI states; we emulate PCI, so
> + * we don't end up getting power savings anyways */
> +
> + pdev->dev.power.power_state = state;


And there's no point doing this.

> + pdev->dev.power.power_state = PMSG_ON;

Or this.

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


\
 
 \ /
  Last update: 2008-03-31 09:43    [W:0.127 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site