1. 08 7月, 2008 6 次提交
    • R
      PCI PM: Introduce pci_prepare_to_sleep and pci_back_from_sleep · 404cc2d8
      Rafael J. Wysocki 提交于
      Introduce functions pci_prepare_to_sleep() and pci_back_from_sleep(),
      to be used by the PCI drivers that want to place their devices into
      the lowest power state appropiate for them (PCI_D3hot, if the device
      is not supposed to wake up the system, or the deepest state from
      which the wake-up is possible, otherwise) while the system is being
      prepared to go into a sleeping state and to put them back into D0
      during the subsequent transition to the working state.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      404cc2d8
    • R
      PCI ACPI: Rework PCI handling of wake-up · eb9d0fe4
      Rafael J. Wysocki 提交于
      * Introduce function acpi_pm_device_sleep_wake() for enabling and
        disabling the system wake-up capability of devices that are power
        manageable by ACPI.
      
      * Introduce function acpi_bus_can_wakeup() allowing other (dependent)
        subsystems to check if ACPI is able to enable the system wake-up
        capability of given device.
      
      * Introduce callback .sleep_wake() in struct pci_platform_pm_ops and
        for the ACPI PCI 'driver' make it use acpi_pm_device_sleep_wake().
      
      * Introduce callback .can_wakeup() in struct pci_platform_pm_ops and
        for the ACPI 'driver' make it use acpi_bus_can_wakeup().
      
      * Move the PME# handlig code out of pci_enable_wake() and split it
        into two functions, pci_pme_capable() and pci_pme_active(),
        allowing the caller to check if given device is capable of
        generating PME# from given power state and to enable/disable the
        device's PME# functionality, respectively.
      
      * Modify pci_enable_wake() to use the new ACPI callbacks and the new
        PME#-related functions.
      
      * Drop the generic .platform_enable_wakeup() callback that is not
        used any more.
      
      * Introduce device_set_wakeup_capable() that will set the
        power.can_wakeup flag of given device.
      
      * Rework PCI device PM initialization so that, if given device is
        capable of generating wake-up events, either natively through the
        PME# mechanism, or with the help of the platform, its
        power.can_wakeup flag is set and its power.should_wakeup flag is
        unset as appropriate.
      
      * Make ACPI set the power.can_wakeup flag for devices found to be
        wake-up capable by it.
      
      * Make the ACPI wake-up code enable/disable GPEs for devices that
        have the wakeup.flags.prepared flag set (which means that their
        wake-up power has been enabled).
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      eb9d0fe4
    • R
      ACPI: Introduce new device wakeup flag 'prepared' · 0af4b8c4
      Rafael J. Wysocki 提交于
      Introduce additional flag 'prepared' in struct acpi_device_wakeup_flags
      and use it to prevent devices from being enable/disabled do wake up the
      system multiple times in a row (this does not happen currently, but will
      be possible after some of the following patches).
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      0af4b8c4
    • R
      ACPI: Introduce acpi_device_sleep_wake function · 77e76609
      Rafael J. Wysocki 提交于
      The currect ACPI code attempts to execute _PSW at three different
      places and in one of them only it tries to execute _DSW before _PSW,
      which is inconsistent with the other two cases.
      
      Move the execution of _DSW and _PSW into a separate function called
      acpi_device_sleep_wake() and call it wherever appropriate instead of
      executing _DSW and/or _PSW directly.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NPavel Machek <pavel@suse.cz>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      77e76609
    • R
      ACPI: Introduce acpi_bus_power_manageable function · 3737b2b1
      Rafael J. Wysocki 提交于
      Introduce function acpi_bus_power_manageable() allowing other
      (dependent) subsystems to check if ACPI is able to power manage given
      device.  This may be useful, for example, for PCI device power
      management.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NPavel Machek <pavel@suse.cz>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      3737b2b1
    • G
      PCI: make pci_name use dev_name · c6c4f070
      Greg KH 提交于
      Also fixes up the sparc code that was assuming this is not a constant.
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      Signed-off-by: NKay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      c6c4f070
  2. 01 7月, 2008 1 次提交
  3. 28 6月, 2008 1 次提交
  4. 13 6月, 2008 1 次提交
    • R
      Suspend-related patches for 2.6.27 · d8f3de0d
      Rafael J. Wysocki 提交于
      ACPI PM: Add possibility to change suspend sequence
      
      There are some systems out there that don't work correctly with
      our current suspend/hibernation code ordering.  Provide a workaround
      for these systems allowing them to pass 'acpi_sleep=old_ordering' in
      the kernel command line so that it will use the pre-ACPI 2.0 ("old")
      suspend code ordering.
      
      Unfortunately, this requires us to add a platform hook to the
      resuming of devices for recovering the platform in case one of the
      device drivers' .suspend() routines returns error code.  Namely,
      ACPI 1.0 specifies that _PTS should be called before suspending
      devices, but _WAK still should be called before resuming them in
      order to undo the changes made by _PTS.  However, if there is an
      error during suspending devices, they are automatically resumed
      without returning control to the PM core, so the _WAK has to be
      called from within device_resume() in that cases.
      
      The patch also reorders and refactors the ACPI suspend/hibernation
      code to avoid duplication as far as reasonably possible.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NPavel Machek <pavel@suse.cz>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      d8f3de0d
  5. 12 6月, 2008 1 次提交
  6. 11 6月, 2008 10 次提交
  7. 10 6月, 2008 3 次提交
    • M
      [S390] Fix __ctl_load/__ctl_store inline assembly constraints · b57838ea
      Martin Schwidefsky 提交于
      __ctl_load/__ctl_store are called with either an array of unsigned long or
      a single unsigned long value. Add an address operator to the "m"/"=m"
      contraints to make them work for unsigned long arguments as well.
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      b57838ea
    • R
      mm: Minor clean-up of page flags in mm/page_alloc.c · dfa7e20c
      Russ Anderson 提交于
      Minor source code cleanup of page flags in mm/page_alloc.c.
      Move the definition of the groups of bits to page-flags.h.
      
      The purpose of this clean up is that the next patch will
      conditionally add a page flag to the groups.  Doing that
      in a header file is cleaner than adding #ifdefs to the
      C code.
      Signed-off-by: NRuss Anderson <rja@sgi.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      dfa7e20c
    • R
      IB/core: Remove IB_DEVICE_SEND_W_INV capability flag · 4c0283fc
      Roland Dreier 提交于
      In 2.6.26, we added some support for send with invalidate work
      requests, including a device capability flag to indicate whether a
      device supports such requests.  However, the support was incomplete:
      the completion structure was not extended with a field for the key
      contained in incoming send with invalidate requests.
      
      Full support for memory management extensions (send with invalidate,
      local invalidate, fast register through a send queue, etc) is planned
      for 2.6.27.  Since send with invalidate is not very useful by itself,
      just remove the IB_DEVICE_SEND_W_INV bit before the 2.6.26 final
      release; we will add an IB_DEVICE_MEM_MGT_EXTENSIONS bit in 2.6.27,
      which makes things simpler for applications, since they will not have
      quite as confusing an array of fine-grained bits to check.
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      4c0283fc
  8. 09 6月, 2008 2 次提交
  9. 07 6月, 2008 9 次提交
  10. 06 6月, 2008 5 次提交
  11. 05 6月, 2008 1 次提交
    • D
      V4L/DVB (7166): [v4l] Add new user class controls and deprecate others · 39028ec6
      David Woodhouse 提交于
      These were removed in commit 26d507fc:
      
      > -#define V4L2_CID_HCENTER               (V4L2_CID_BASE+22)
      > -#define V4L2_CID_VCENTER               (V4L2_CID_BASE+23)
      > -#define V4L2_CID_LASTP1                        (V4L2_CID_BASE+24) /*
      > last CID + 1 */
      > +
      > +/* Deprecated, use V4L2_CID_PAN_RESET and V4L2_CID_TILT_RESET */
      > +#define V4L2_CID_HCENTER_DEPRECATED    (V4L2_CID_BASE+22)
      > +#define V4L2_CID_VCENTER_DEPRECATED    (V4L2_CID_BASE+23)
      
      But there was no warning in Documentation/feature-removal-schedule.txt
      and I'm receiving reports that it's breaking userspace apps (the
      gstreamer-v4l2 plugin breaks in Fedora rawhide). You can't just pull
      things from the published userspace API like that.
      
      Please can we revert the addition of _DEPRECATED to these ioctl
      definitions. Perhaps we can add a runtime warning if they actually get
      used? Or a compile-time warning if we can manage that?
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      39028ec6