1. 12 May, 2007 24 commits
  2. 11 May, 2007 16 commits
    • Linus Torvalds's avatar
      Merge master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog · c5b7bede
      Linus Torvalds authored
      * master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog:
        [WATCHDOG] iTCO_wdt.c - fix ACPI Base register
      c5b7bede
    • Linus Torvalds's avatar
      Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev · fb2c922b
      Linus Torvalds authored
      * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev:
        pata_platform: don't use generic ata_port_start
        Use menuconfig objects: libata
        add the ATI SB700 SATA controller device id to AHCI pci table
        Add the combined mode for ATI SB700
        pata_pcmcia: recognize 2GB CompactFlash from Transcend
        git-libata-all: sata_via build fix
        libata-acpi: clean up parameters and misc stuff
        libata-acpi: s/CONFIG_SATA_ACPI/CONFIG_ATA_ACPI/
        libata: give devices one last chance even if recovery failed with -EINVAL
        libata: fallback to the other IDENTIFY on device error, take#2
        libata: ignore EH scheduling during initialization
        libata: clean up SFF init mess
        libata: implement libata.spindown_compat
        libata: reimplement suspend/resume support using sdev->manage_start_stop
      fb2c922b
    • Linus Torvalds's avatar
      Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6 · 9ce3075c
      Linus Torvalds authored
      * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6: (35 commits)
        Add support for the Davicom DM9161A PHY
        sky2: only disable 88e8056 on some boards
        sky2: 88e8071 support not ready
        skge: crash on shutdown/suspend
        sky2: fix oops on shutdown
        mlx4: don't use deprecated IRQ flags
        netxen_nic_main don't use deprecated irq flags
        Use menuconfig objects II - netdev/wan
        Use menuconfig objects II - netdev/pcmcia
        Use menuconfig objects II - netdev/atm
        Use menuconfig objects: netdev
        Use menuconfig objects: PHY
        spidernet: remove unnecessary accesses to phy
        S2IO: Statistics for link up/down and memory allocated/freed
        S2IO: statistics for memory allocation failuers
        S2IO: getringparam ethtool option
        [PATCH] libertas: 64-bit cleanups
        [PATCH] libertas: sparse fixes
        [PATCH] libertas: fix missing unlock in TX error path
        [PATCH] libertas: make debugfs.c sparse-clean
        ...
      9ce3075c
    • David Miller's avatar
      Fix assertion failure with MSI on sparc64 · b3b7cc7b
      David Miller authored
      Today's find is a triggered assertion in msi_free_irqs() when the system
      doesn't support MSI, in which case arch_setup_msi_irqs() always returns
      an error.
      
      The problem is that when this happens we branch into msi_free_irqs(), to
      which you added the following assertion loop:
      
      	list_for_each_entry(entry, &dev->msi_list, list)
      		BUG_ON(irq_has_action(entry->irq));
      
      Well, if arch_setup_msi_irqs() fails, entry->irq will be zero and
      although that's never assigned to any normal devices we use that IRQ
      number for the timer interrupt on sparc64 so this assertion triggers.
      
      Better to test for zero before doing the irq_has_action() assertion
      thing.
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      b3b7cc7b
    • Olof Johansson's avatar
      pata_platform: don't use generic ata_port_start · b9a3b4d1
      Olof Johansson authored
      I have a system where I have a simple IDE controller that sits on a
      local bus without bus master dma capability, and thus no dma_mapping
      ops defined for the device/bus.
      
      pata_platform works great for me, with the exception of using the generic
      ata_port_start which tries to do a dmam_alloc_coherent.
      
      Looks like it doesn't need to allocate a prd table at all, so replace it
      with a dummy function instead.
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      b9a3b4d1
    • Jan Engelhardt's avatar
      Use menuconfig objects: libata · b196fc69
      Jan Engelhardt authored
      Use menuconfigs instead of menus, so the whole menu can be disabled at once
      instead of going through all options.
      Signed-off-by: default avatarJan Engelhardt <jengelh@gmx.de>
      Cc: Jeff Garzik <jeff@garzik.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      b196fc69
    • Henry Su's avatar
      add the ATI SB700 SATA controller device id to AHCI pci table · 2bcfdde6
      Henry Su authored
      Add the device ID to AHCI pci table for ATI SB700 SATA controller, the
      subsequent chipset of SB600.
      
      Signed-off-by: henry su<henry.su@amd.com>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: Tejun Heo <htejun@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      2bcfdde6
    • Henry Su's avatar
      Add the combined mode for ATI SB700 · 82377718
      Henry Su authored
      Besides those modes in ATI SB600 SATA controller, ATI SB700 supports one
      more mode:the combined mode.
      
      The combined mode is a Legacy IDE mode used for compatibility with some old
      OS without AHCI driver, but now it is not necessary for Linux since the
      kernel has supported AHCI.
      Signed-off-by: default avatarLuugi Marsan <luugi.marsan@amd.com>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: Tejun Heo <htejun@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      82377718
    • Aeschbacher, Fabrice's avatar
      pata_pcmcia: recognize 2GB CompactFlash from Transcend · 48aaae7a
      Aeschbacher, Fabrice authored
      Allow the pata_pcmcia driver to automatically detect 2GB CompactFlash cards
      from Transcend.
      Signed-off-by: default avatarFabrice Aeschbacher <fabrice.aeschbacher@siemens.com>
      Cc: "Peter Stuge" <stuge-linux-pcmcia@cdy.org>
      Acked-by: default avatarAlan Cox <alan@redhat.com>
      Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      48aaae7a
    • Andrew Morton's avatar
      git-libata-all: sata_via build fix · 1d30c33d
      Andrew Morton authored
      Cc: Tejun Heo <htejun@gmail.com>
      Cc: Jeff Garzik <jeff@garzik.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      1d30c33d
    • Tejun Heo's avatar
      libata-acpi: clean up parameters and misc stuff · 3a32a8e9
      Tejun Heo authored
      This patch cleans up libata-acpi such that it looks similar to other
      libata files.  This patch doesn't introuce any behavior changes.
      
      * make libata-acpi functions take ata_device instead of ata_port +
        device index
      * s/atadev/dev/
      * de-indent local variable declarations
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      3a32a8e9
    • Tejun Heo's avatar
      libata-acpi: s/CONFIG_SATA_ACPI/CONFIG_ATA_ACPI/ · e92351bb
      Tejun Heo authored
      ACPI applies to both SATA and PATA.  Drop the 'S' from the config
      variable.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      e92351bb
    • Tejun Heo's avatar
      libata: give devices one last chance even if recovery failed with -EINVAL · 8575b814
      Tejun Heo authored
      After certain errors, some devices report complete garbage on
      IDENTIFY.  This can cause ata_dev_read_id() to fail with -EINVAL
      resulting in immediate disabling of the device.  Give the device one
      last chance after -EINVAL to allow recovery from such situations.  As
      -EINVAL is triggered very rarely, this shouldn't cause any noticeable
      affect on more common error paths.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Cc: Harald Dunkel <harald.dunkel@t-online.de>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      8575b814
    • Tejun Heo's avatar
      libata: fallback to the other IDENTIFY on device error, take#2 · 54936f8b
      Tejun Heo authored
      It seems the world isn't as frank as we thought and some devices lie
      about who they are.  Fallback to the other IDENTIFY if IDENTIFY is
      aborted by the device.  As this is the strategy used by IDE for a long
      time, it shouldn't cause too much problem.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Cc: William Thompson <wt@electro-mechanical.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      54936f8b
    • Tejun Heo's avatar
      libata: ignore EH scheduling during initialization · f4d6d004
      Tejun Heo authored
      libata enables SCSI host during ATA host activation which happens
      after IRQ handler is registered and IRQ is enabled.  All ATA ports are
      in frozen state when IRQ is enabled but frozen ports may raise limited
      number of IRQs after being frozen - IOW, ->freeze() is not responsible
      for clearing pending IRQs.  During normal operation, the IRQ handler
      is responsible for clearing spurious IRQs on frozen ports and it
      usually doesn't require any extra code.
      
      Unfortunately, during host initialization, the IRQ handler can end up
      scheduling EH for a port whose SCSI host isn't initialized yet.  This
      results in OOPS in the SCSI midlayer.  This is relatively short window
      and scheduling EH for probing is the first thing libata does after
      initialization, so ignoring EH scheduling until initialization is
      complete solves the problem nicely.
      
      This problem was spotted by Berck E. Nash in the following thread.
      
        http://thread.gmane.org/gmane.linux.kernel/519412Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Cc: Berck E. Nash <flyboy@gmail.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      f4d6d004
    • Tejun Heo's avatar
      libata: clean up SFF init mess · 1626aeb8
      Tejun Heo authored
      The intention of using port_mask in SFF init helpers was to eventually
      support exoctic configurations such as combination of legacy and
      native port on the same controller.  This never became actually
      necessary and the related code always has been subtly broken one way
      or the other.  Now that new init model is in place, there is no reason
      to make common helpers capable of handling all corner cases.  Exotic
      cases can simply dealt within LLDs as necessary.
      
      This patch removes port_mask handling in SFF init helpers.  SFF init
      helpers don't take n_ports argument and interpret it into port_mask
      anymore.  All information is carried via port_info.  n_ports argument
      is dropped and always two ports are allocated.  LLD can tell SFF to
      skip certain port by marking it dummy.  Note that SFF code has been
      treating unuvailable ports this way for a long time until recent
      breakage fix from Linus and is consistent with how other drivers
      handle with unavailable ports.
      
      This fixes 1-port legacy host handling still broken after the recent
      native mode fix and simplifies SFF init logic.  The following changes
      are made...
      
      * ata_pci_init_native_host() and ata_init_legacy_host() both now try
        to initialized whatever they can and mark failed ports dummy.  They
        return 0 if any port is successfully initialized.
      
      * ata_pci_prepare_native_host() and ata_pci_init_one() now doesn't
        take n_ports argument.  All info should be specified via port_info
        array.  Always two ports are allocated.
      
      * ata_pci_init_bmdma() exported to be used by LLDs in exotic cases.
      
      * port_info handling in all LLDs are standardized - all port_info
        arrays are const stack variable named ppi.  Unless the second port
        is different from the first, its port_info is specified as NULL
        (tells libata that it's identical to the last non-NULL port_info).
      
      * pata_hpt37x/hpt3x2n: don't modify static variable directly.  Make an
        on-stack copy instead as ata_piix does.
      
      * pata_uli: It has 4 ports instead of 2.  Don't use
        ata_pci_prepare_native_host().  Allocate the host explicitly and use
        init helpers.  It's simple enough.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      1626aeb8