1. 13 Aug, 2003 4 commits
    • Patrick Mochel's avatar
      [power] Various swsusp cleanups. · f2df1a5f
      Patrick Mochel authored
      - Move SMP check to software_suspend() (from software_resume()), so we will
        not even attempt to sleep with it enabled.
      - Make software_resume() a late initcall, removing the explicit call from
        prepare_namespace(). 
      - Initialize software_suspend_enabled to 1, instead of doing it manually in
        software_resume().
      - Don't explicitly initialzie resume_file.
      - Remove resume_status variable, as we can simply check for (non-) NULL 
        resume_file string. 
      - "noresume" setup function changed to simply zero first byte of resume_file
        string, simplifying logic.
      - Don't attempt to reset swap signature if noresume is specified.
        - Downstream function (bdev_write_page() wasn't implemented anyway, so we
          can just remove that also).
      
      If noresume is specified, there will still be a suspend image left on the 
      swap partition. It may behoove us to never reset the swap signature, and 
      always leave the image intact on the disk, since it is a valid snapshot 
      that we can resume from at anytime. 
      
      This unconditional behavior would force the user to add 'mkswap <part>' to
      their init scripts to reset the partition to swap use. IMO, this is better
      anyway.
      f2df1a5f
    • Patrick Mochel's avatar
      [swsusp] Remove two panic()s. · 05f11b37
      Patrick Mochel authored
      - Make software_suspend() return an int, so caller can tell what happened.
      - Do check for HIGHMEM and DISCONTIGMEM early in software_suspend() and 
        fail gracefully, instead of checking far down the call chain and having
        to call panic().
      05f11b37
    • Patrick Mochel's avatar
      [power] Minor cleanups. · 5e29fc2e
      Patrick Mochel authored
      From Pavel Machek.
      5e29fc2e
    • Patrick Mochel's avatar
      [power] Check device_suspend() return value in swsusp. · 86aa5b10
      Patrick Mochel authored
      From Pavel Machek.
      86aa5b10
  2. 12 Aug, 2003 6 commits
  3. 10 Aug, 2003 3 commits
    • Patrick Mochel's avatar
      [sysfs] Convert struct attribute_group to take array of pointers. · e6289147
      Patrick Mochel authored
      From Stephen Hemminger. Needed to use attribute groups effectively.
       
      e6289147
    • Patrick Mochel's avatar
      Merge bk://kernel.bkbits.net//home/mochel/linux-2.5-core · df3e1207
      Patrick Mochel authored
      into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-core
      df3e1207
    • Patrick Mochel's avatar
      [power] Add PM usage counting · 98247e0a
      Patrick Mochel authored
      - Add ->pm_users and ->pm_parent fields to struct dev_pm_info. 
      - Add function device_pm_set_parent()
      
      The default power parent for a device is the device's physical parent, but
      a driver may change it to represent a tranversal power dependency. 
      
      Though it's not incorporated into the suspend/resume sequences yet, the 
      core will respect the power tree, rather than the physical/electrical one.
      
      Also added is a power usage count for devices, which indicates how many 
      devices are dependent on that one for power (how many children it has in 
      the power tree). The core will use this count to determine whether or not
      a device can be put into a low power state or not. 
      98247e0a
  4. 09 Aug, 2003 16 commits
  5. 08 Aug, 2003 11 commits
    • Linus Torvalds's avatar
      Linux 2.6.0-test3 · ca377000
      Linus Torvalds authored
      ca377000
    • Jeff Garzik's avatar
      [irda] Add VIA FIR driver, via-ircc · 03ca57cc
      Jeff Garzik authored
      Contributed by VIA, via Jean Tourrilhes.
      03ca57cc
    • Jean Tourrilhes's avatar
      [PATCH] tekram-sir driver fix · 6b67d197
      Jean Tourrilhes authored
      ir260_tekram-sir.diff :
      ~~~~~~~~~~~~~~~~~~~~~
      		<Patch from Martin Diehl>
      	o [CORRECT] Update tekram-sir dongle driver to common power-settling
      6b67d197
    • Jean Tourrilhes's avatar
      [PATCH] irda-usb probe fix · a00848cc
      Jean Tourrilhes authored
      ir260_usb_probe-4.diff :
      ~~~~~~~~~~~~~~~~~~~~~~
      		<Patch from Oliver Neukum and Daniele Bellucci>
      	o [CORRECT] minor fix to the probe failure path of irda-usb.
      a00848cc
    • Jean Tourrilhes's avatar
      [PATCH] IrLAP retry count · 1f51b62a
      Jean Tourrilhes authored
      ir260_lap_retry_count.diff :
      ~~~~~~~~~~~~~~~~~~~~~~~~~~
      	o [CORRECT] add interoperability workaround for 2.4.X IrDA stacks
      1f51b62a
    • Jean Tourrilhes's avatar
      [PATCH] Donauboe probe fix · 0b682e85
      Jean Tourrilhes authored
      ir260_donau_cleanup.diff :
      ~~~~~~~~~~~~~~~~~~~~~~~~
      		<Patch from Christian Gennerat>
      	o [CORRECT] Disable chip probing that fail too often
      	o [FEATURE] Cleanup STATIC
      0b682e85
    • Patrick Mochel's avatar
      [power] Get rid of internal spinlock. · 3525978c
      Patrick Mochel authored
      We don't need the spinlock to protect the lists (at least not now), since 
      we have a semaphore to synchronize all operations device PM operations.
      3525978c
    • Linus Torvalds's avatar
      Merge bk://kernel.bkbits.net/gregkh/linux/linus-2.6 · ddb6a1aa
      Linus Torvalds authored
      into home.osdl.org:/home/torvalds/v2.5/linux
      ddb6a1aa
    • Linus Torvalds's avatar
      Merge bk://kernel.bkbits.net/gregkh/linux/i2c-2.5 · 8d33ca95
      Linus Torvalds authored
      into home.osdl.org:/home/torvalds/v2.5/linux
      8d33ca95
    • Greg Kroah-Hartman's avatar
      Merge kroah.com:/home/greg/linux/BK/bleed-2.5 · a0fcbe82
      Greg Kroah-Hartman authored
      into kroah.com:/home/greg/linux/BK/pci-2.6
      a0fcbe82
    • Ivan Kokshaysky's avatar
      [PATCH] PCI: pci_enable_device vs bridges bugs · a5a278a6
      Ivan Kokshaysky authored
      Bug #1 (found by Jay Estabrook).
      On Alpha, under certain circumstances the firmware may close the IO
      window of PCI-to-PCI bridge even if there is IO behind.
      This wouldn't be a problem - linux PCI setup code does set up this
      window properly, but in addition the firmware clears the IO-enable
      bit in the PCI_COMMAND register of the bridge.
      Since we don't call pci_enable_* routines for bridges in non-hotplug
      path, we end up with disabled IO. Fixed by adding pci_enable_bridges()
      to pci_assign_unassigned_resources().
      Architectures which don't use the latter, but do use other setup-bus
      code (parisc?) also should call pci_enable_bridges() for each root bus.
      
      Bug #2 (closely related to #1).
      As it turns out, pci_enable_device() doesn't work for bridges at all,
      only for regular devices (header type 0) due to 0x3f mask passed to
      pci_enable_device_bars(). The mask should be (1 << PCI_NUM_RESOURCES) - 1.
      
      Bug #3 (quite a few archs, including i386).
      pcibios_enable_device() does only check first 6 resources (regardless
      of the mask) to decide whether or not to enable IO and MEM.
      Bridge resources start at 7.
      
      #2 and #3 affect hotplug. I wonder, has anybody ever tried *bridged*
      PCI card behind a hot-plug controller?
      a5a278a6