Re: [PATCH] PCI: Add pci shutdown ability

Adam Belay
2005-04-25T20:35:27Z

On Mon, Apr 25, 2005 at 01:19:49PM -0700, Greg KH wrote:
> On Mon, Apr 25, 2005 at 04:08:25PM -0400, Adam Belay wrote:
> > I think this could be important for any type of device, so the power
> > management subsystem and driver core should handle it. I'm not really
> > sure if it's useful in pci alone, as it lacks the necessary ordering and
> > coordination.
>
> The driver core today _does_ handle this properly, and in the correct
> order. I'm just allowing pci drivers access to that functionality, as
> today they can not take advantage of it. That's all this patch does.

sorry, I didn't notice this after a quick glance :)

> + drv->driver.shutdown = pci_device_shutdown,

Ok, great. I understand.

>
> > I'm currently developing an interface for quieting devices without turning
> > them off in my Power Management model. Pavel seems to also have plans along
> > those lines:
>
> <snip>

I think the intention here may have been to use PM_FREEZE via *suspend. It
isn't currently supported though.

>
> Great, then it will tie into the current driver model code, which will
> then call the proper pci driver code, and everyone will be happy :)
>
> thanks,
>
> greg k-h

Thanks,
Adam