Skip to content
Snippets Groups Projects
  1. Feb 27, 2010
  2. Dec 08, 2009
    • Benjamin Herrenschmidt's avatar
      powerpc/macio: Rework hotplug media bay support · d58b0c39
      Benjamin Herrenschmidt authored
      
      The hotplug mediabay has tendrils deep into drivers/ide code
      which makes a libata port reather difficult. In addition it's
      ugly and could be done better.
      
      This reworks the interface between the mediabay and the rest
      of the world so that:
      
         - Any macio_driver can now have a mediabay_event callback
      which will be called when that driver sits on a mediabay and
      it's been either plugged or unplugged. The device type is
      passed as an argument. We can now move all the IDE cruft
      into the IDE driver itself
      
         - A check_media_bay() function can be used to take a peek
      at the type of device currently in the bay if any, a cleaner
      variant of the previous function with the same name.
      
         - A pair of lock/unlock functions are exposed to allow the
      IDE driver to block the hotplug callbacks during the initial
      setup and probing of the bay in order to avoid nasty race
      conditions.
      
         - The mediabay code no longer needs to spin on the status
      register of the IDE interface when it detects an IDE device,
      this is done just fine by the IDE code itself
      
      Overall, less code, simpler, and allows for another driver
      than our old drivers/ide based one.
      
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      d58b0c39
  3. Dec 03, 2009
  4. Dec 02, 2009
  5. Dec 01, 2009
  6. Nov 28, 2009
    • Dominik Brodowski's avatar
      pcmcia: rework the irq_req_t typedef · 5fa9167a
      Dominik Brodowski authored
      
      Most of the irq_req_t typedef'd struct can be re-worked quite
      easily:
      
      (1) IRQInfo2 was unused in any case, so drop it.
      
      (2) IRQInfo1 was used write-only, so drop it.
      
      (3) Instance (private data to be passed to the IRQ handler):
      	Most PCMCIA drivers using pcmcia_request_irq() to actually
      	register an IRQ handler set the "dev_id" to the same pointer
      	as the "priv" pointer in struct pcmcia_device. Modify the two
      	exceptions (ipwireless, ibmtr_cs) to also work this waym and
      	set the IRQ handler's "dev_id" to p_dev->priv unconditionally.
      
      (4) Handler is to be of type irq_handler_t.
      
      (5) Handler != NULL already tells whether an IRQ handler is present.
      	Therefore, we do not need the IRQ_HANDLER_PRESENT flag in
      	irq_req_t.Attributes.
      
      CC: netdev@vger.kernel.org
      CC: linux-bluetooth@vger.kernel.org
      CC: linux-ide@vger.kernel.org
      CC: linux-wireless@vger.kernel.org
      CC: linux-scsi@vger.kernel.org
      CC: alsa-devel@alsa-project.org
      CC: Jaroslav Kysela <perex@perex.cz>
      CC: Jiri Kosina <jkosina@suse.cz>
      CC: Karsten Keil <isdn@linux-pingi.de>
      for the Bluetooth parts: Acked-by: Marcel Holtmann <marcel@holtmann.org>
      Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
      5fa9167a
  7. Nov 25, 2009
  8. Nov 23, 2009
  9. Nov 18, 2009
  10. Nov 08, 2009
  11. Nov 06, 2009
    • David S. Miller's avatar
      Revert "ide: try to use PIO Mode 0 during probe if possible" · 0fb18c47
      David S. Miller authored
      
      This reverts commit 60293364.
      
      Ok, we really do need to revert this, even with Bart's sis5513.c
      fix in there.
      
      The problem is that several driver's ->set_pio_mode() method
      depends upon the drive->media type being set properly.  Most
      of them use this to enable prefetching, which can only be done
      for disk media.
      
      But the commit being reverted here calls ->set_pio_mode() before
      it's setup.  Actually it considers everything disk because that
      is the default media type set by ide_port_init_devices_data().
      
      The set of drivers that depend upon the media type in their
      ->set_pio_method() are:
      
      drivers/ide/alim15x3.c
      drivers/ide/it8172.c
      drivers/ide/it8213.c
      drivers/ide/pdc202xx_old.c
      drivers/ide/piix.c
      drivers/ide/qd65xx.c
      drivers/ide/sis5513.c
      drivers/ide/slc90e66.c
      
      And it is possible that we could fix this by guarding the prefetching
      and other media dependent setting changes with a test on
      IDE_PFLAG_PROBING in hwif->port_flags, that's simply too risky for
      2.6.32-rcX and -stable.
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0fb18c47
  12. Oct 29, 2009
  13. Oct 16, 2009
  14. Oct 07, 2009
  15. Oct 04, 2009
  16. Sep 22, 2009
  17. Sep 21, 2009
  18. Sep 15, 2009
    • Wu Zhangjin's avatar
      ide: fixup for fujitsu disk · a2d10568
      Wu Zhangjin authored
      This patch will fix the following problem on Yeeloong netbook with
      fujitsu disk.
      
      irq 14: nobody cared (try booting with the "irqpoll" option)
      Call Trace:
      [<ffffffff8020d438>] dump_stack+0x8/0x40
      [<ffffffff8027ec64>] __report_bad_irq+0x58/0xe4
      [<ffffffff8027ee6c>] note_interrupt+0x17c/0x23c
      [<ffffffff8027f9b8>] handle_level_irq+0xcc/0x134
      [<ffffffff802125b0>] mach_irq_dispatch+0xb8/0x1e0
      [<ffffffff8020041c>] ret_from_irq+0x0/0x4
      [<ffffffff8029e678>] free_hot_cold_page+0x224/0x2a0
      [<ffffffff8026f794>] swsusp_free+0xb0/0x14c
      [<ffffffff8026ec08>] hibernate+0x198/0x218
      [<ffffffff8026cfa8>] state_store+0x90/0x138
      [<ffffffff8032b5a4>] sysfs_write_file+0x130/0x194
      [<ffffffff802c94fc>] vfs_write+0xb8/0x180
      [<ffffffff802c96b8>] SyS_write+0x50/0x98
      [<ffffffff80203fd8>] handle_sys+0x158/0x174
      
      handlers:
      [<ffffffff80429670>] (ide_intr+0x0/0x300)
      Disabling IRQ #14
      
      References:
      
      1. commit 1fde02e7146d4a1bab80fd1506f9018fe71e8521 of
      git://dev.lemote.com/linux_loongson.git
      
      
      2. 8bc1e5aa (ide: respect quirk_drives[]
      list on all controllers)
      
      Signed-off-by: default avatarYan Hua <yanh@lemote.com>
      Signed-off-by: default avatarWu Zhangjin <wuzhangjin@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a2d10568
  19. Sep 11, 2009
  20. Sep 01, 2009
  21. Aug 27, 2009
    • Bob Moore's avatar
      ACPICA: Major update for acpi_get_object_info external interface · 15b8dd53
      Bob Moore authored
      
      Completed a major update for the acpi_get_object_info external interface.
      Changes include:
       - Support for variable, unlimited length HID, UID, and CID strings
       - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, etc.)
       - Call the _SxW power methods on behalf of a device object
       - Determine if a device is a PCI root bridge
       - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO.
      These changes will require an update to all callers of this interface.
      See the ACPICA Programmer Reference for details.
      
      Also, update all invocations of acpi_get_object_info interface
      
      Signed-off-by: default avatarBob Moore <robert.moore@intel.com>
      Signed-off-by: default avatarLin Ming <ming.m.lin@intel.com>
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      15b8dd53
  22. Aug 15, 2009
  23. Aug 14, 2009
  24. Aug 07, 2009
Loading