1. 10 Aug, 2006 8 commits
    • Tejun Heo's avatar
      [PATCH] libata: replace ap->hard_port_no with ap->port_no · 2a88d1ac
      Tejun Heo authored
      Replace ap->hard_port_no with ap->port_no.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      2a88d1ac
    • Tejun Heo's avatar
      [PATCH] libata: use dummy port for stolen legacy ports · c4b01f1d
      Tejun Heo authored
      Use dummy port for stolen legacy ports.  This makes ap->port_no always
      equal ap->hard_port_no.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      c4b01f1d
    • Tejun Heo's avatar
      [PATCH] libata: implement dummy port · dd5b06c4
      Tejun Heo authored
      Implement dummy port which can be requested by setting appropriate bit
      in probe_ent->dummy_port_mask.  The dummy port is used as placeholder
      for stolen legacy port.  This allows libata to guarantee that
      index_of(ap) == ap->port_no == actual_device_port_no, and thus to
      remove error-prone ap->hard_port_no.
      
      As it's used only when one port of a legacy controller is reserved by
      some other entity (e.g. IDE), the focus is on keeping the added *code*
      complexity at minimum, so dummy port allocates all libata core
      resources and acts as a normal port.  It just has all dummy port_ops.
      
      This patch only implements dummy port.  The following patch will make
      libata use it for stolen legacy ports.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      dd5b06c4
    • Alan Cox's avatar
      [PATCH] libata: rework legacy handling to remove much of the cruft · 2ec7df04
      Alan Cox authored
      Kill host_set->next
      Fix simplex support
      Allow per platform setting of IDE legacy bases
      
      Some of this can be tidied further later on, in particular all the
      legacy port gunge belongs as a PCI quirk/PCI header decode to understand
      the special legacy IDE rules in the PCI spec.
      
      Longer term Jeff also wants to move the request_irq/free_irq out of core
      which will make this even cleaner.
      
      tj: folded in three followup patches - ata_piix-fix, broken-arch-fix
      and fix-new-legacy-handling, and separated per-dev xfermask into
      separate patch preceding this one.  Folded in fixes are...
      
      * ata_piix-fix: fix build failure due to host_set->next removal
      * broken-arch-fix: add missing include/asm-*/libata-portmap.h
      * fix-new-legacy-handling:
      	* In ata_pci_init_legacy_port(), probe_num was incorrectly
                incremented during initialization of the secondary port and
                probe_ent->n_ports was incorrectly fixed to 1.
      
      	* Both legacy ports ended up having the same hard_port_no.
      
      	* When printing port information, both legacy ports printed
      	  the first irq.
      Signed-off-by: default avatarAlan Cox <alan@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      2ec7df04
    • Tejun Heo's avatar
      [PATCH] libata: implement per-dev xfermask · 37deecb5
      Tejun Heo authored
      Implement per-dev xfermask.  libata used to determine xfermask
      per-port - the fastest mode of the slowest device on the port.  This
      patch enables per-dev xfermask.
      
      Original patch is from Alan Cox <alan@redhat.com>.  The following
      changes are made by me.
      
      * simplex warning message is added
      * remove disabled device handling code which is never invoked
        (originally for choosing port-wide lowest PIO mode)
      
      Cc: Alan Cox <alan@redhat.com>
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      37deecb5
    • Jeff Garzik's avatar
      [PATCH] [libata] Kill 'count' var in ata_device_add() · 6d0500df
      Jeff Garzik authored
      Eliminate redundant loop variable 'count'
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      6d0500df
    • Jeff Garzik's avatar
      [PATCH] [libata] some function renaming · 996139f1
      Jeff Garzik authored
      s/ata_host_add/ata_port_add/
      s/ata_host_init/ata_port_init/
      
      libata naming got stuck in the middle of a Great Renaming:
      
      	ata_host -> ata_port
      	ata_host_set -> ata_host
      
      To eliminate confusion, let's just give up for now, and simply ensure
      that things are internally consistent.
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      996139f1
    • Tejun Heo's avatar
      [PATCH] libata: update ata_host_init() and rename it to ata_port_init_shost() · 4608c160
      Tejun Heo authored
      Update ata_host_init() such that it only initializes SCSI host related
      stuff and doesn't call into ata_port_init(), and rename it to
      ata_port_init_shost().
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      4608c160
  2. 09 Aug, 2006 10 commits
  3. 07 Aug, 2006 1 commit
  4. 06 Aug, 2006 21 commits