1. 02 2月, 2008 11 次提交
  2. 27 1月, 2008 10 次提交
  3. 26 1月, 2008 4 次提交
  4. 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
  5. 13 12月, 2007 2 次提交
  6. 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
  7. 06 11月, 2007 1 次提交
  8. 23 10月, 2007 2 次提交
  9. 20 10月, 2007 3 次提交
    • B
      ide: add ide_device_add() · 8447d9d5
      Bartlomiej Zolnierkiewicz 提交于
      * Add ide_device_add() helper and convert host drivers to use it
        instead of open-coded variants.
      
      * Make ide_pci_setup_ports() and do_ide_setup_pci_device()
        take 'u8 *idx' argument instead of 'ata_index_t *index'.
      
      * Remove no longer needed ata_index_t.
      
      * Unexport probe_hwif_init() and make it static.
      
      * Unexport ide_proc_register_port().
      
      There should be no functionality changes caused by this patch
      (sgiioc4.c: ide_proc_register_port() requires hwif->present
       to be set and it won't be set if probe_hwif_init() fails).
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      8447d9d5
    • B
      ide: add ->fixup method to ide_hwif_t · fd9bb539
      Bartlomiej Zolnierkiewicz 提交于
      * Add ->fixup method to ide_hwif_t.
      
      * Set hwif->fixup in ide_pci_setup_ports() to d->fixup.
      
      * Use hwif->fixup in probe_hwif().
      
      * Use probe_hwif_init() instead of probe_hwif_init_with_fixup() in
        ide_setup_pci_device().
      
      * Add 'fixup' argument to ide_register_hw() and use it to set hwif->fixup,
        update all ide_register_hw() users accordingly.
      
      * Convert ide-cs/delkin_cb host drivers to use ide_register_hw().
      
      * Restore hwif->fixup in ide_hwif_restore().
      
      * Remove ide_register_hw_with_fixup(), probe_hwif_init_with_fixup()
        and 'fixup' argument from probe_hwif().
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      fd9bb539
    • B
      ide: add hwif_register_devices() helper · 9601a607
      Bartlomiej Zolnierkiewicz 提交于
      Add hwif_register_devices() helper to fix code duplication between
      probe_hwif_init_with_fixup() and ideprobe_init().  Also remove stale
      comment while at it.
      Acked-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      9601a607
  10. 19 10月, 2007 1 次提交
  11. 17 10月, 2007 3 次提交
    • B
      ide: remove CONFIG_IDEDMA_ONLYDISK · 8c0697cc
      Bartlomiej Zolnierkiewicz 提交于
      ATAPI devices with broken DMA support should be handled by DMA blacklist
      and for debugging purposes we have new shiny "hdx=nodma" kernel paremeter.
      Acked-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      8c0697cc
    • B
      ide: remove hwif->autodma and drive->autodma · 9ff6f72f
      Bartlomiej Zolnierkiewicz 提交于
      * hpt34x.c: disable DMA masks for HPT345
        (hwif->autodma is zero so DMA won't be enabled anyway).
      
      * trm290.c: disable IDE_HFLAG_TRUST_BIOS_FOR_DMA flag
        (hwif->autodma is zero so DMA won't be enabled anyway).
      
      * Check noautodma global variable instead of drive->autodma in ide_tune_dma().
      
        This fixes handling of "ide=nodma" kernel parameter for icside, ide-cris,
        au1xxx-ide, pmac, it821x, jmicron, sgiioc4 and siimage host drivers.
      
      * Remove hwif->autodma (it was not checked by IDE core code anyway) and
        drive->autodma (was set by all host drivers - except HPT345/TRM290 special
        cases - unless "ide=nodma" was used).
      
      While at it:
      - remove needless printk() from icside.c
      - remove stale FIXME/comment from ide-probe.c
      - don't force DMA off if PCI bus-mastering had to be enabled in setup-pci.c
        (this setting was always later over-ridden by host drivers anyway)
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      9ff6f72f
    • B
      ide: remove ->ide_dma_check (take 2) · 0ae2e178
      Bartlomiej Zolnierkiewicz 提交于
      * Add IDE_HFLAG_TRUST_BIOS_FOR_DMA host flag for host drivers that depend
        on BIOS for programming device/controller for DMA.  Set it in cy82c693,
        generic, ns87415, opti621 and trm290 host drivers.
      
      * Add IDE_HFLAG_VDMA host flag for host drivers using VDMA.  Set it in cs5520
        host driver.
      
      * Teach ide_tune_dma() about IDE_HFLAG_TRUST_BIOS_FOR_DMA flag.
      
      * Add generic ide_dma_check() helper and remove all open coded ->ide_dma_check
        implementations.  Fix all places checking for presence of ->ide_dma_check
        hook to check for ->ide_dma_on instead.
      
      * Remove no longer needed code from config_drive_for_dma().
      
      * Make ide_tune_dma() static.
      
      v2:
      * Fix config_drive_for_dma() return values.
      
      * Fix ide-dma.c build for CONFIG_BLK_DEV_IDEDMA_PCI=n by adding
        dummy config_drive_for_dma() inline.
      
      * Fix IDE_HFLAG_TRUST_BIOS_FOR_DMA handling in ide_dma_check().
      
      * Fix init_hwif_it8213() comment.
      
      There should be no functionality changes caused by this patch.
      
      Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      0ae2e178
  12. 16 10月, 2007 1 次提交