One more nit... > + s += sprintf(s, "d0"); > + if (dev->poss_states[PCI_D1]) > + s += sprintf(s, " d1"); > + if (dev->poss_states[PCI_D2]) > + s += sprintf(s, " d2"); > + if (dev->poss_states[PCI_D3hot]) > + s += sprintf(s, " d3"); ... > --- a/include/linux/pci.h > +++ b/include/linux/pci.h > @@ -106,6 +106,7 @@ struct pci_dev { > this if your device has broken DMA > or supports 64-bit transfers. */ > > + u32 poss_states[4]; So this probably should be poss_states[PCI_D3hot]; or something, instead of explicit "4". Pavel -- Thanks, Sharp! - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: [linux-pm] [patch] pm: fix runtime powermanagement's /sys interface
- From: Pavel Machek <[email protected]>
- Re: [linux-pm] [patch] pm: fix runtime powermanagement's /sys interface
- From: Dominik Brodowski <[email protected]>
- Re: [linux-pm] [patch] pm: fix runtime powermanagement's /sys interface
- From: Pavel Machek <[email protected]>
- Re: [linux-pm] [patch] pm: fix runtime powermanagement's /sys interface
- From: Dominik Brodowski <[email protected]>
- Re: [linux-pm] [patch] pm: fix runtime powermanagement's /sys interface
- From: Pavel Machek <[email protected]>
- Re: [linux-pm] [patch] pm: fix runtime powermanagement's /sys interface
- From: Dominik Brodowski <[email protected]>
- Re: [linux-pm] [patch] pm: fix runtime powermanagement's /sys interface
- From: Pavel Machek <[email protected]>
- Re: [linux-pm] [patch] pm: fix runtime powermanagement's /sys interface
- From: Patrick Mochel <[email protected]>
- Re: [linux-pm] [patch] pm: fix runtime powermanagement's /sys interface
- From: Pavel Machek <[email protected]>
- Re: [linux-pm] [patch] pm: fix runtime powermanagement's /sys interface
- From: Patrick Mochel <[email protected]>
- Re: [linux-pm] [patch] pm: fix runtime powermanagement's /sys interface
- Prev by Date: Re: [PATCH 6/9] clockpro-clockpro.patch
- Next by Date: Re: Allow iseries to disable input layer without CONFIG_EMBEDDED
- Previous by thread: Re: [linux-pm] [patch] pm: fix runtime powermanagement's /sys interface
- Next by thread: Re: [linux-pm] [patch] pm: fix runtime powermanagement's /sys interface
- Index(es):