1. 03 Jul, 2007 10 commits
  2. 02 Jul, 2007 23 commits
  3. 01 Jul, 2007 7 commits
    • Linus Torvalds's avatar
      Linux 2.6.22-rc7 · a38d6181
      Linus Torvalds authored
      Last -rc? That's the plan..
      a38d6181
    • Rafael J. Wysocki's avatar
      PM: introduce set_target method in pm_ops · 2391dae3
      Rafael J. Wysocki authored
      Commit 52ade9b3 changed the suspend code
      ordering to execute pm_ops->prepare() after the device model per-device
      .suspend() calls in order to fix some ACPI-related issues.  Unfortunately, it
      broke the at91 platform which assumed that pm_ops->prepare() would be called
      before suspending devices.
      
      at91 used pm_ops->prepare() to get notified of the target system sleep state,
      so that it could use this information while suspending devices.  However, with
      the current suspend code ordering pm_ops->prepare() is called too late for
      this purpose.  Thus, at91 needs an additional method in 'struct pm_ops' that
      will be used for notifying the platform of the target system sleep state.
      Moreover, in the future such a method will also be needed by ACPI.
      
      This patch adds the .set_target() method to 'struct pm_ops' and makes the
      suspend code call it, if implemented, before executing the device model
      per-device .suspend() calls.  It also modifies the at91 code to use
      pm_ops->set_target() instead of pm_ops->prepare().
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Johannes Berg <johannes@sipsolutions.net>
      Cc: Len Brown <lenb@kernel.org>
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      2391dae3
    • Bjorn Helgaas's avatar
      smsc-ircc2: bypass PNP detection until we get the quirks worked out · cbcdd772
      Bjorn Helgaas authored
      Don't use PNP detection by default yet.  We have some PNP and BIOS issues
      to work out first.
      
      Sample problem on a Toshiba Portege 4000: the SMCf010 device is handed off
      disabled.  We assign I/O ports originally assigned to the SMCf010 to a
      PCMCIA device instead.  We enable the SMCf010, configuring it to use
      disjoint ports, but _SRS doesn't work correctly, so the device doesn't
      work.
      Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
      Cc: Andrey Borzenkov <arvidjaar@mail.ru>
      Cc: Adam Belay <ambx1@neo.rr.com>
      Cc: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>
      Cc: Samuel Ortiz <samuel@sortiz.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jeff Garzik <jeff@garzik.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      cbcdd772
    • Andrew Morton's avatar
      i386: mtrr crash fix · 84288ad8
      Andrew Morton authored
      Commit 3ebad590 ("[PATCH] x86: Save and
      restore the fixed-range MTRRs of the BSP when suspending") added mtrr
      operations without verifying that the CPU has MTRRs.  Crashes transmeta
      CPUs.
      
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: <linux@horizon.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      84288ad8
    • Maxime Austruy's avatar
      asus_acpi: fix oops on non-asus machines · 5ebffd7c
      Maxime Austruy authored
      If asus_acpi_init doesn't find any device it knows about, it mistakenly
      returns a "success" error code even though it cleans up after itself.  Later
      when trying to rmmod asus_acpi, the module_exit routine would try to clean up
      one more time and we would end up calling
      acpi_bus_unregister_driver(&asus_hotk_driver) twice.  This patch addresses
      this first problem by returning -ENODEV when no appropriate device is found.
      
      Then there was also another bug with the code handling the return value of
      backlight_device_register.  If this function ever failed, the driver would
      cleanup by calling the module_exit routine from module_init, but it would
      still return "success".  So any attempt to rmmod this module would result in
      asus_acpi_exit being called twice but it's not ready to handle it (I haven't
      hit this bug, just found it by code inspection).  This patch fixes that by
      inserting a return -ENODEV; at the end of this error handling path.
      Signed-off-by: default avatarMaxime Austruy <maxime@tralhalla.org>
      Cc: Len Brown <lenb@kernel.org>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: Jan Engelhardt <jengelh@computergmbh.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      5ebffd7c
    • Randy Dunlap's avatar
      pci.h stubs (for EDD build error) · d80d0217
      Randy Dunlap authored
      Provide stubs for more PCI bus/slot functions when CONFIG_PCI=n.
      Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Cc: Matt Domsch <Matt_Domsch@dell.com>
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d80d0217
    • Randy Dunlap's avatar
      ALSA: more section mismatches · 10c86be5
      Randy Dunlap authored
      Fix section mismatch warnings:
      
      WARNING: sound/built-in.o(.exit.text+0x3ad): Section mismatch: reference to .init.text: (between 'sb_exit' and 'unload_uart6850')
      WARNING: sound/built-in.o(.exit.text+0x753): Section mismatch: reference to .init.text: (between 'snd_mts64_module_exit' and 'snd_portman_module_exit')
      Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Cc: Jaroslav Kysela <perex@suse.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      10c86be5