1. 03 2月, 2008 5 次提交
    • B
      ide: add ->port_init_devs method to ide_hwif_t · 1f2cf8b0
      Bartlomiej Zolnierkiewicz 提交于
      * Add ->port_init_devs method to ide_hwif_t for a host specific
        initialization of devices on a port.  Call the new method from
        ide_port_init_devices().
      
      * Convert ht6560b, qd65xx and opti621 host drivers to use the new
        ->port_init_devs method.
      
      There should be no functionality changes caused by this patch.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      1f2cf8b0
    • B
      ide: add IDE_HFLAG_NO_{IO32_BIT,UNMASK_IRQS} host flags · 807b90d0
      Bartlomiej Zolnierkiewicz 提交于
      * Use the same bit for IDE_HFLAG_CS5520 and IDE_HFLAG_VDMA host flags
        (both are used only by cs5520 host driver currently).
      
      * Add IDE_HFLAG_NO_IO32_BIT host flag and use it instead of ->no_io_32bit
        ide_hwif_t field.
      
      * Add IDE_HFLAG_NO_UNMASK_IRQS host flag, then convert dtc2278 and rz1000
        host drivers to use it.
      
      There should be no functionality changes caused by this patch.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      807b90d0
    • B
      ide: factor out code initializing devices from ide_init_port() · 7704ca2a
      Bartlomiej Zolnierkiewicz 提交于
      * Factor out code initializing devices from ide_init_port() to
        ide_port_init_devices().
      
      * Call the new function from ide_device_add_all().
      
      There should be no functionality changes caused by this patch.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      7704ca2a
    • B
      ide: add ->cable_detect method to ide_hwif_t · bfa14b42
      Bartlomiej Zolnierkiewicz 提交于
      * Add ->cable_detect method to ide_hwif_t.
      
      * Call the new method in ide_init_port() if:
        - the host supports UDMA modes > UDMA2 ('hwif->ultra_mask & 78')
        - DMA initialization was successful (if hwif->dma_base is not set
          ide_init_port() sets hwif->ultra_mask to zero)
        - "idex=ata66" is not used ('hwif->cbl != ATA_CBL_PATA40_SHORT')
      
      * Convert PCI host drivers to use ->cable_detect method.
      
      While at it:
      
      * Factor out cable detection to separate functions (if not already done).
      
      * hpt366.c/it8213.c/slc90e66.c:
        - don't check cable type if "idex=ata66" is used
      
      * pdc202xx_new.c:
        - add __devinit tag to pdcnew_cable_detect()
      
      * pdc202xx_old.c:
        - rename pdc202xx_old_cable_detect() to pdc2026x_old_cable_detect()
        - add __devinit tag to pdc2026x_old_cable_detect()
      Reviewed-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      bfa14b42
    • B
      ide: add struct ide_port_info instances to legacy host drivers · c413b9b9
      Bartlomiej Zolnierkiewicz 提交于
      * Remove 'struct pci_dev *dev' argument from ide_hwif_setup_dma().
      
      * Un-static ide_hwif_setup_dma() and add CONFIG_BLK_DEV_IDEDMA_PCI=n version.
      
      * Add 'const struct ide_port_info *d' argument to ide_device_add[_all]().
      
      * Factor out generic ports init from ide_pci_setup_ports() to ide_init_port(),
        move it to ide-probe.c and call it in in ide_device_add_all() instead of
        ide_pci_setup_ports().
      
      * Move ->mate setup to ide_device_add_all() from ide_port_init().
      
      * Add IDE_HFLAG_NO_AUTOTUNE host flag for host drivers that don't enable
        ->autotune currently.
      
      * Setup hwif->chipset in ide_init_port() but iff pi->chipset is set
        (to not override setup done by ide_hwif_configure()).
      
      * Add ETRAX host handling to ide_device_add_all().
      
      * cmd640.c: set IDE_HFLAG_ABUSE_* also for CONFIG_BLK_DEV_CMD640_ENHANCED=n.
      
      * pmac.c: make pmac_ide_setup_dma() return an error value and move DMA masks
        setup to pmac_ide_setup_device().
      
      * Add 'struct ide_port_info' instances to legacy host drivers, pass them to
        ide_device_add() calls and then remove open-coded ports initialization.
      Reviewed-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      c413b9b9
  2. 02 2月, 2008 14 次提交
  3. 27 1月, 2008 10 次提交
  4. 26 1月, 2008 4 次提交
  5. 25 1月, 2008 1 次提交
    • K
      Driver core: convert block from raw kobjects to core devices · edfaa7c3
      Kay Sievers 提交于
      This moves the block devices to /sys/class/block. It will create a
      flat list of all block devices, with the disks and partitions in one
      directory. For compatibility /sys/block is created and contains symlinks
      to the disks.
      
        /sys/class/block
        |-- sda -> ../../devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda
        |-- sda1 -> ../../devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1
        |-- sda10 -> ../../devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda10
        |-- sda5 -> ../../devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda5
        |-- sda6 -> ../../devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda6
        |-- sda7 -> ../../devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda7
        |-- sda8 -> ../../devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda8
        |-- sda9 -> ../../devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda9
        `-- sr0 -> ../../devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0/block/sr0
      
        /sys/block/
        |-- sda -> ../devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda
        `-- sr0 -> ../devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0/block/sr0
      Signed-off-by: NKay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      edfaa7c3
  6. 13 12月, 2007 2 次提交
  7. 28 11月, 2007 1 次提交
    • J
      ide: skip ide_wait_not_busy() on noprobe-disks · 8266105b
      Jonas Stare 提交于
      There is a problem in some hardware where the kernel will stall for
      35 seconds waiting for disks that don't exist. This patch will skip
      waiting for the BSY-bit on IDE drives to go away if you set "hdx=noprobe"
      as a kernel option and the disk is not marked as 'present' (like when
      you set the geometry by hand).
      
      If no noprobe-option is set the code will work (more or less) as the
      original but if set the code will skip the ide_wait_not_busy() for
      that drive. Even if there would be a drive there and it is still busy
      afterwards it should not matter since it isn't probed for later.
      
      The code also honors the MAX_DRIVES variable instead of assuming that
      there will be two harddrives on the bus.
      
      Bart: minor cleanups
      Signed-off-by: NJonas Stare <jonas.stare@purplescout.se>
      CC: Andrew Morton <akpm@linux-foundation.org>,
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      8266105b
  8. 06 11月, 2007 1 次提交
  9. 23 10月, 2007 2 次提交