1. 02 Feb, 2008 15 commits
    • Bartlomiej Zolnierkiewicz's avatar
    • Bartlomiej Zolnierkiewicz's avatar
      ide: add ->cable_detect method to ide_hwif_t · bfa14b42
      Bartlomiej Zolnierkiewicz authored
      * 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: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      bfa14b42
    • Bartlomiej Zolnierkiewicz's avatar
      ide: add struct ide_port_info instances to legacy host drivers · c413b9b9
      Bartlomiej Zolnierkiewicz authored
      * 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: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      c413b9b9
    • Bartlomiej Zolnierkiewicz's avatar
      ide: separate PCI specific init from generic init in ide_pci_setup_ports() · 1ebf7493
      Bartlomiej Zolnierkiewicz authored
      * Setup ->mate and ->channel in ide_pci_setup_ports() instead of
        in ide_hwif_configure().
      
      * Make 'port' parameter for ide_hwif_configure() 'unsigned int'.
      
      * Separate PCI specific init from generic init in ide_pci_setup_ports().
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      1ebf7493
    • Bartlomiej Zolnierkiewicz's avatar
      ide: always set DMA masks in ide_pci_setup_ports() · bf77c531
      Bartlomiej Zolnierkiewicz authored
      Always set DMA masks in ide_pci_setup_ports() to make sure that the valid
      masks for a host are set.
      Acked-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      bf77c531
    • Bartlomiej Zolnierkiewicz's avatar
      macide: remove drive->capacity64 quirk · d4e6d4eb
      Bartlomiej Zolnierkiewicz authored
      Nowadays IDE core always provides drive ID and ide-disk always setups
      drive->capacity64 so this quirk is no longer needed.
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      d4e6d4eb
    • Bartlomiej Zolnierkiewicz's avatar
      atiixp/cs5535/scc_pata: fix "idex=ata66" parameter handling · b4d1c73d
      Bartlomiej Zolnierkiewicz authored
      Don't override the cable type if the "idex=ata66" parameter was used.
      
      While at it:
      
      * atiixp.c: factor out cable detection to atiixp_cable_detect() from
        init_hwif_atiixp().
      
      * cs5535.c: pass 'ide_hwif_t *hwif' instead of 'struct pci_dev *dev' to
        cs5535_cable_detect().
      
      * scc_pata.c: factor out cable detection to scc_cable_detect() from
        init_hwif_scc() and remove incorrect comment.
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      b4d1c73d
    • Bartlomiej Zolnierkiewicz's avatar
      au1xxx-ide: fix ->io_32bit handling · bd38dd3c
      Bartlomiej Zolnierkiewicz authored
      The host driver must set hwif's ->no_io_32bit setting not drive's one
      (ide_port_tune_devices() overrides drive's setting).
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      bd38dd3c
    • Bartlomiej Zolnierkiewicz's avatar
      dtc2278: fix ->io_32bit handling · 36e9dc46
      Bartlomiej Zolnierkiewicz authored
      On DTC2278 32-bit I/O has to be enabled for both devices on the port
      so always enable it during init time and disallow further changes.
      
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      36e9dc46
    • Linus Torvalds's avatar
      Merge git://git.infradead.org/battery-2.6 · ae9458d6
      Linus Torvalds authored
      * git://git.infradead.org/battery-2.6:
        apm_power: check I.intval for zero value, we use it as the divisor
        MAINTAINERS: remove kernel-discuss@handhelds.org list
        pda_power: implement polling
        pda_power: various cleanups
        apm_power: support using VOLTAGE_* properties for apm calculations
        pda_power: add suspend/resume support
        power_supply: add few more values and props
        pda_power: only register available psu
        power: fix incorrect unregistration in power_supply_create_attrs error path
        power: remove POWER_SUPPLY_PROP_CAPACITY_LEVEL
        [BATTERY] power_supply_leds: use kasprintf
        [BATTERY] Every file should include the headers containing the prototypes for its global functions.
      ae9458d6
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://linux-nfs.org/~bfields/linux · 63e9b66e
      Linus Torvalds authored
      * 'for-linus' of git://linux-nfs.org/~bfields/linux: (100 commits)
        SUNRPC: RPC program information is stored in unsigned integers
        SUNRPC: Move exported symbol definitions after function declaration part 2
        NLM: tear down RPC clients in nlm_shutdown_hosts
        SUNRPC: spin svc_rqst initialization to its own function
        nfsd: more careful input validation in nfsctl write methods
        lockd: minor log message fix
        knfsd: don't bother mapping putrootfh enoent to eperm
        rdma: makefile
        rdma: ONCRPC RDMA protocol marshalling
        rdma: SVCRDMA sendto
        rdma: SVCRDMA recvfrom
        rdma: SVCRDMA Core Transport Services
        rdma: SVCRDMA Transport Module
        rdma: SVCRMDA Header File
        svc: Add svc_xprt_names service to replace svc_sock_names
        knfsd: Support adding transports by writing portlist file
        svc: Add svc API that queries for a transport instance
        svc: Add /proc/sys/sunrpc/transport files
        svc: Add transport hdr size for defer/revisit
        svc: Move the xprt independent code to the svc_xprt.c file
        ...
      63e9b66e
    • Linus Torvalds's avatar
      Merge branch 'suspend' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 · 687fcdf7
      Linus Torvalds authored
      * 'suspend' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (38 commits)
        suspend: cleanup reference to swsusp_pg_dir[]
        PM: Remove obsolete /sys/devices/.../power/state docs
        Hibernation: Invoke suspend notifications after console switch
        Suspend: Invoke suspend notifications after console switch
        Suspend: Clean up suspend_64.c
        Suspend: Add config option to disable the freezer if architecture wants that
        ACPI: Print message before calling _PTS
        ACPI hibernation: Call _PTS before suspending devices
        Hibernation: Introduce begin() and end() callbacks
        ACPI suspend: Call _PTS before suspending devices
        ACPI: Separate disabling of GPEs from _PTS
        ACPI: Separate invocations of _GTS and _BFS from _PTS and _WAK
        Suspend: Introduce begin() and end() callbacks
        suspend: fix ia64 allmodconfig build
        ACPI: clear GPE earily in resume to avoid warning
        Suspend: Clean up Kconfig (V2)
        Hibernation: Clean up Kconfig (V2)
        Hibernation: Update messages
        Suspend: Use common prefix in messages
        Hibernation: Remove unnecessary variable declaration
        ...
      687fcdf7
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/pci-2.6 · 215e871a
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/pci-2.6: (64 commits)
        PCI: make pci_bus a struct device
        PCI: fix codingstyle issues in include/linux/pci.h
        PCI: fix codingstyle issues in drivers/pci/pci.h
        PCI: PCIE ASPM support
        PCI: Fix fakephp deadlock
        PCI: modify SB700 SATA MSI quirk
        PCI: Run ACPI _OSC method on root bridges only
        PCI ACPI: AER driver should only register PCIe devices with _OSC
        PCI ACPI: Added a function to register _OSC with only PCIe devices.
        PCI: constify function pointer tables
        PCI: Convert drivers/pci/proc.c to use unlocked_ioctl
        pciehp: block new requests from the device before power off
        pciehp: workaround against Bad DLLP during power off
        pciehp: wait for 1000ms before LED operation after power off
        PCI: Remove pci_enable_device_bars() from documentation
        PCI: Remove pci_enable_device_bars()
        PCI: Remove users of pci_enable_device_bars()
        PCI: Add pci_enable_device_{io,mem} intefaces
        PCI: avoid save the same type of cap multiple times
        PCI: correctly initialize a structure for pcie_save_pcix_state()
        ...
      215e871a
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 · b6cf160c
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (128 commits)
        USB: fix codingstyle issues in drivers/usb/core/*.c
        USB: fix codingstyle issues in drivers/usb/core/message.c
        USB: fix codingstyle issues in drivers/usb/core/hcd-pci.c
        USB: fix codingstyle issues in drivers/usb/core/devio.c
        USB: fix codingstyle issues in drivers/usb/core/devices.c
        USB: fix codingstyle issues in drivers/usb/core/*.h
        USB: fix codingstyle issues in include/linux/usb/
        USB: fix codingstyle issues in include/linux/usb.h
        USB: mark USB drivers as being GPL only
        USB: use a real vendor and product id for root hubs
        USB: mount options: fix usbfs
        USB: Fix usb_serial_driver structure for Kobil cardreader driver.
        usb: ehci should use u16 for isochronous intervals
        usb: ehci, remove false clear-reset path
        USB: Use menuconfig objects
        usb: ohci-sm501 driver
        usb: dma bounce buffer support
        USB: last abuses of intfdata in close for usb-serial drivers
        USB: kl5kusb105 don't flush to logically disconnected devices
        USB: oti6858: cleanup
        ...
      b6cf160c
    • Peter Zijlstra's avatar
      debug: softlockup looping fix · ed50d6cb
      Peter Zijlstra authored
      Rafael J. Wysocki reported weird, multi-seconds delays during
      suspend/resume and bisected it back to:
      
        commit 82a1fcb9
        Author: Ingo Molnar <mingo@elte.hu>
        Date:   Fri Jan 25 21:08:02 2008 +0100
      
            softlockup: automatically detect hung TASK_UNINTERRUPTIBLE tasks
      
      fix it:
      
       - restore the old wakeup mechanism
       - fix break usage in do_each_thread() { } while_each_thread().
       - fix the hotplug switch stmt, a fall-through case was broken.
      Bisected-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
      Tested-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      Acked-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      ed50d6cb
  2. 01 Feb, 2008 25 commits