1. 10 Mar, 2007 10 commits
  2. 09 Mar, 2007 30 commits
    • Kristen Accardi's avatar
      libata-acpi: allow _GTF on SATA, but disable on PATA for now · df33c77e
      Kristen Accardi authored
      The ACPI specification states, and BIOS implementations depend on,
      _STM being called before _GTF.
      
      SATA does this, but PATA does not.  So for now, simply
      prevent execution of _GTF on PATA devices.  Longer term we
      should implement ACPI support for PATA devices in libata.
      Signed-off-by: default avatarKristen Accardi <kristen.c.accardi@intel.com>
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      df33c77e
    • Linus Torvalds's avatar
      Merge branch 'merge' of master.kernel.org:/pub/scm/linux/kernel/git/paulus/powerpc · a967e127
      Linus Torvalds authored
      * 'merge' of master.kernel.org:/pub/scm/linux/kernel/git/paulus/powerpc:
        [POWERPC] 85xx: Enable CONFIG_SERIAL_8250_SHARE_IRQ
        [POWERPC] Select u-image as default image for Linkstation
        [POWERPC] 83xx: Minor fixes for 834x_mds USB setup code
        [POWERPC] Fix warning in powermac pci.c
        [POWERPC] Fix warning in powermac feature.c
        [POWERPC] Fix warning in prom_parse.c of_irq_map_oldworld()
        [POWERPC] Celleb: bug fix caused by not casting pointer types
        [POWERPC] Add missing newline in xmon help output
        [POWERPC] No DEEPNAP on 970MP 1.0
      a967e127
    • Ralf Baechle's avatar
      [MIPS] Sibyte: Fix ZBbus profiler · bb9b813b
      Ralf Baechle authored
       o Fix build error.
       o Handle error returns.
       o Deal with signals received while sleeping.
       o Don't allow to be selected when we're not building the directory with
         the driver anyway.
       o Coding style cleanups.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      bb9b813b
    • Ralf Baechle's avatar
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus · 30fbc9f7
      Linus Torvalds authored
      * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
        [MIPS] DEC: Remove call to register_prom_console.
      30fbc9f7
    • Linus Torvalds's avatar
      Merge git://git.infradead.org/mtd-2.6 · 6e96783f
      Linus Torvalds authored
      * git://git.infradead.org/mtd-2.6:
        [JFFS2] print a message when marking bad block
        [JFFS2] Check for all-zero node headers
        [MTD] [OneNAND] Classify the page data and oob buffer
        [MTD] [OneNAND] Exit the loop when transferring/filling of the oob is finished
        [MTD] [OneNAND] add Nokia Copyright and a credit
        [MTD] [OneNAND] Fix typo & wrong comments
        [MTD] [OneNAND] Use oob buffer instead of main one in oob functions
        [MTD] Correct partition failed erase address
        [JFFS2] Use yield() between GC passes in background thread.
        [MTD] [NAND] Correct misspelled preprocessor variable.
        [MTD] [MAPS] dilnetpc: Fix printk warning
        [MTD] [NOR] Fix oops in cfi_amdstd_sync
        [MTD] ESB2 check for closed ROM window
        [JFFS2] Fix writebuffer recovery in the first page of a block
        [MTD] [NAND] make oobavail public
      6e96783f
    • Linus Torvalds's avatar
      Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6 · 8466c833
      Linus Torvalds authored
      * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6:
        ibmtr: Drain rich supply of modpost warnings.
        3c59x: Fix several modpost warnings
        z85230: Fix FIFO handling
        r8169: fix a race between PCI probe and dev_open
        r8169: revert bogus BMCR reset
        sky2: turn off Rx checksum on bad hardware
        mv643xx: Clear pending interrupts before calling request_irq
        myri10ge: add a wc_enabled flag to myri10ge_priv
        myri10ge: prevent 4k rdma on SGI TIOCE chipset
        myri10ge: use pci_map_page to prepare the dmatest buffer
        myri10ge: fix error checking and return value in myri10ge_allocate_rings
        netxen: fix warnings
        via-rhine: set avoid_D3 for broken BIOSes
        [PATCH] bcm43xx: Fix assertion failures in interrupt handler
        [PATCH] bcm43xx: Fix bug in frequency to channel conversion
        [PATCH] bcm43xx: Fix errors in specs to code translation in B6PHY init
      8466c833
    • Jeff Garzik's avatar
      Merge branch 'upstream-fixes' of... · 0a38f544
      Jeff Garzik authored
      Merge branch 'upstream-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into upstream-fixes
      0a38f544
    • Ralf Baechle's avatar
      ibmtr: Drain rich supply of modpost warnings. · 82c00b62
      Ralf Baechle authored
      Building ibmtr as a module produces a spectacular pile of modpost warnings:
      
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:ibmtr_probe1 from .text between 'ibmtr_probe_card' (at offset 0x450) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:ibmtr_probe1 from .text between 'ibmtr_probe_card' (at offset 0x454) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:ibmtr_probe1 from .text between 'ibmtr_probe_card' (at offset 0x458) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:ibmtr_probe1 from .text between 'ibmtr_probe_card' (at offset 0x45c) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_portlist from .text between 'ibmtr_probe_card' (at offset 0x4e8) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_portlist from .text between 'ibmtr_probe_card' (at offset 0x4ec) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_portlist from .text between 'ibmtr_probe_card' (at offset 0x4f0) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_portlist from .text between 'ibmtr_probe_card' (at offset 0x4f4) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:find_turbo_adapters from .text between 'ibmtr_probe_card' (at offset 0x500) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:find_turbo_adapters from .text between 'ibmtr_probe_card' (at offset 0x504) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:find_turbo_adapters from .text between 'ibmtr_probe_card' (at offset 0x508) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:find_turbo_adapters from .text between 'ibmtr_probe_card' (at offset 0x50c) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_portlist from .text between 'ibmtr_probe_card' (at offset 0x520) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_portlist from .text between 'ibmtr_probe_card' (at offset 0x524) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_portlist from .text between 'ibmtr_probe_card' (at offset 0x528) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data:ibmtr_portlist from .text between 'ibmtr_probe_card' (at offset 0x534) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data: from .text between 'ibmtr_probe_card' (at offset 0x540) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data: from .text between 'ibmtr_probe_card' (at offset 0x544) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data: from .text between 'ibmtr_probe_card' (at offset 0x548) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.data: from .text between 'ibmtr_probe_card' (at offset 0x54c) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:ibmtr_probe1 from .text between 'ibmtr_probe_card' (at offset 0x558) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:ibmtr_probe1 from .text between 'ibmtr_probe_card' (at offset 0x55c) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:ibmtr_probe1 from .text between 'ibmtr_probe_card' (at offset 0x560) and 'ibmtr_reset_timer'
      WARNING: drivers/net/tokenring/ibmtr.o - Section mismatch: reference to .init.text:ibmtr_probe1 from .text between 'ibmtr_probe_card' (at offset 0x564) and 'ibmtr_reset_timer'
      
      Fix by making ibmtr_probe an __init function.
      
      While at it, move move ibmtr_probe_card below ibmtr_probe so the protoype
      for ibmtr_probe can be deleted.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      
       drivers/net/tokenring/ibmtr.c |   25 ++++++++++++-------------
       1 file changed, 12 insertions(+), 13 deletions(-)
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      82c00b62
    • Ralf Baechle's avatar
      3c59x: Fix several modpost warnings · 95c408a9
      Ralf Baechle authored
      WARNING: drivers/net/3c59x.o - Section mismatch: reference to .init.text: from .text between 'vortex_eisa_probe' (at offset 0x4580) and 'vortex_eisa_remove'
      WARNING: drivers/net/3c59x.o - Section mismatch: reference to .init.text: from .text between 'vortex_eisa_probe' (at offset 0x4584) and 'vortex_eisa_remove'
      WARNING: drivers/net/3c59x.o - Section mismatch: reference to .init.text: from .text between 'vortex_eisa_probe' (at offset 0x4588) and 'vortex_eisa_remove'
      WARNING: drivers/net/3c59x.o - Section mismatch: reference to .init.text: from .text between 'vortex_eisa_probe' (at offset 0x458c) and 'vortex_eisa_remove'
      
      Fixed by:
      
       o move definition of vortex_eisa_driver below the functions it references.
       o remove now unnecessary prototypes for vortex_eisa_probe and
         vortex_eisa_remove.
       o Make vortex_eisa_probe an __init function.
       o Make vortex_eisa_remove a __devexit function.
       o Wrap vortex_eisa_driver reference to vortex_eisa_remove with
         __devexit_p().
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      
       drivers/net/3c59x.c |   28 +++++++++++++---------------
       1 file changed, 13 insertions(+), 15 deletions(-)
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      95c408a9
    • Alan Cox's avatar
      z85230: Fix FIFO handling · fe797455
      Alan Cox authored
      We must exit immediately on a FIFO fill not take the end of packet path
      otherwise each underrun in PIO transmit mode causes a runt packet and the
      data is lost.
      Signed-off-by: default avatarAlan Cox <alan@redhat.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      fe797455
    • Francois Romieu's avatar
      r8169: fix a race between PCI probe and dev_open · 2efa53f3
      Francois Romieu authored
      Initialize the timer with the rest of the private-struct.
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      Signed-off-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      2efa53f3
    • Francois Romieu's avatar
      r8169: revert bogus BMCR reset · 9e0db8ef
      Francois Romieu authored
      Added during bf793295
      
      The current code requests a reset but prohibits autoneg, 1000 Mb/s,
      100 Mb/s and full duplex. The 8168 does not like it at all.
      Signed-off-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      9e0db8ef
    • Stephen Hemminger's avatar
      sky2: turn off Rx checksum on bad hardware · 87418307
      Stephen Hemminger authored
      On Yukon FE, occasional hardware receive checksum errors are seen.
      An early indication of the problem is single bit differences in the two
      checksum engines.  Use this as a detection mechanism to turn off Rx
      checksumming.
      Signed-off-by: default avatarStephen Hemminger <shemminger@linux-foundation.org>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      87418307
    • Dale Farnsworth's avatar
    • Brice Goglin's avatar
      myri10ge: add a wc_enabled flag to myri10ge_priv · 276e26c3
      Brice Goglin authored
      Add a wc_enabled flag in the myri10ge_priv instead of relying
      on mtrr >= 0.
      Signed-off-by: default avatarBrice Goglin <brice@myri.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      276e26c3
    • Brice Goglin's avatar
      myri10ge: prevent 4k rdma on SGI TIOCE chipset · 4c882dd8
      Brice Goglin authored
      Do not use 4k rdma request on SGI TIOCE chipset since this
      bridge does not support it.
      Signed-off-by: default avatarBrice Goglin <brice@myri.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      4c882dd8
    • Brice Goglin's avatar
      myri10ge: use pci_map_page to prepare the dmatest buffer · 34fdccea
      Brice Goglin authored
      Allocate a specific page and use pci_map_page for dma test instead
      of relying on another existing buffer.
      Signed-off-by: default avatarBrice Goglin <brice@myri.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      34fdccea
    • Brice Goglin's avatar
      myri10ge: fix error checking and return value in myri10ge_allocate_rings · 355c7265
      Brice Goglin authored
      Fix a missing error check in myri10ge_allocate_rings() and set status
      to -ENOMEM before all actual allocations so that the error path returns
      what it should.
      Signed-off-by: default avatarBrice Goglin <brice@myri.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      355c7265
    • Ralf Baechle's avatar
      netxen: fix warnings · b8d095d7
      Ralf Baechle authored
        CC [M]  drivers/net/netxen/netxen_nic_hw.o
      drivers/net/netxen/netxen_nic_hw.c: In function 'netxen_nic_hw_resources':
      drivers/net/netxen/netxen_nic_hw.c:231: warning: format '%llx' expects type 'long long unsigned int', but argument 2 has type 'dma_addr_t'
      drivers/net/netxen/netxen_nic_hw.c:250: warning: format '%llx' expects type 'long long unsigned int', but argument 2 has type 'dma_addr_t'
      
      u64 is unsigned long so the cast to u64 will result in a warning on the
      printf arguments for 64-bit builds.  So cast to unsigned long long instead.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      b8d095d7
    • Roger Luethi's avatar
      via-rhine: set avoid_D3 for broken BIOSes · e84df485
      Roger Luethi authored
      This patch sets avoid_D3 for BIOSes known to be broken. Said BIOSes fail
      at PXE boot if the chip is in power state D3.
      Signed-off-by: default avatarRoger Luethi <rl@hellgate.ch>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      e84df485
    • Tejun Heo's avatar
      devres: release resources on device_del() · 2f8d16a9
      Tejun Heo authored
      Some platform devices are driven without driver attached, so managed
      resources can be acquired without driver attached.  Make sure such
      resources are released by calling devres_release_all() in
      device_del().
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      2f8d16a9
    • Tejun Heo's avatar
      libata: fix ata_host_release() free order · 1aa506e4
      Tejun Heo authored
      host->ops->host_stop() might access ports.  Free ports after
      host_stop.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      1aa506e4
    • Robert Hancock's avatar
      sata_nv: revert use of notifiers for now · 8ba5e4cb
      Robert Hancock authored
      Commit 721449bf added support for using the
      ADMA notifier bits to determine which commands to check for completion.
      However there have been reports that this causes command timeouts in certain
      cases. This is still being investigated. In addition, apparently the notifiers
      won't work if ADMA is disabled on the other port as a result of an ATAPI device
      being connected, and we don't handle this case properly.
      
      For now, just restore the previous behavior of checking all active commands
      to see if they are complete, without relying on the notifiers.
      Signed-off-by: default avatarRobert Hancock <hancockr@shaw.ca>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      8ba5e4cb
    • Petr Vandrovec's avatar
      Fix simplex adapters with libata · 14d66ab7
      Petr Vandrovec authored
      Recently I got my hands on nVidia's MCP61 PM-AM board, and
      it contains IDE chip configured by BIOS with only primary
      channel enabled.  This confuses code which probes for
      device DMA capabilities - it gets 0x60 (happy duplex
      device) from primary channel BMDMA, but 0xFF (nobody here)
      from secondary channel BMDMA.  Due to this code then believes
      that chip is simplex.  I do not address this problem in
      my patch, as I'm not sure how to handle this.  Probably
      ata_pci_init_one should have bitmap of enabled/possible
      interfaces instead of their count, but it looks like
      quite intrusive change, and maybe we do not care - for device
      with only one channel simplex and regular DMA engines are
      same.
      
      But making device simplex pointed out that support for
      DMA on simplex devices is currently broken - ata_dev_xfermask
      tests whether device is simplex and if it is whether DMA
      engine was assigned to this port.  If not then it strips
      out DMA bits from device.  Problem is that code which assigns
      DMA engine to port in ata_set_mode first detect device
      mode and assigns DMA engine to channel only if some DMA
      capable device was found.
      
      And as xfermask stripped out DMA bits, host->simplex_claimed
      is always NULL with current implementation.
      
      By allowing DMA either if simplex_claimed is NULL or if it
      points to current port DMA can be finally used - it gets
      assigned to first port which contains any DMA capable
      device.
      
      Before:
      pata_amd 0000:00:06.0: version 0.2.8
      PCI: Setting latency timer of device 0000:00:06.0 to 64
      ata5: PATA max UDMA/133 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x0001f000 irq 14
      ata6: PATA max UDMA/133 cmd 0x00010170 ctl 0x00010376 bmdma 0x0001f008 irq 15
      scsi4 : pata_amd
      ata5.00: ATAPI, max UDMA/66
      ata5.00: simplex DMA is claimed by other device, disabling DMA
      ata5.00: configured for PIO4
      scsi5 : pata_amd
      ata6: port disabled. ignoring.
      ata6: reset failed, giving up
      scsi 4:0:0:0: CD-ROM            ATAPI    DVD W  DH16W1P   LG12 PQ: 0 ANSI: 5
      
      After:
      pata_amd 0000:00:06.0: version 0.2.8
      PCI: Setting latency timer of device 0000:00:06.0 to 64
      ata5: PATA max UDMA/133 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x0001f000 irq 14
      ata6: PATA max UDMA/133 cmd 0x00010170 ctl 0x00010376 bmdma 0x0001f008 irq 15
      scsi4 : pata_amd
      ata5.00: ATAPI, max UDMA/66
      ata5.00: configured for UDMA/33
      scsi5 : pata_amd
      ata6: port disabled. ignoring.
      ata6: reset failed, giving up
      scsi 4:0:0:0: CD-ROM            ATAPI    DVD W  DH16W1P   LG12 PQ: 0 ANSI: 5
      Signed-off-by: default avatarPetr Vandrovec <petr@vandrovec.name>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      14d66ab7
    • Alan Cox's avatar
      ata_piix: Remove ugly layering violation · 9a2eb709
      Alan Cox authored
      A while ago I modified the libata code so that drivers can return -ENOENT
      for unknown ports not fiddle with the EH flags and print stuff directly.
      Somewhere along the line ata_piix didn't get fully converted.
      Signed-off-by: default avatarAlan Cox <alan@redhat.com>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      9a2eb709
    • Artem Bityutskiy's avatar
      [JFFS2] print a message when marking bad block · 0feba829
      Artem Bityutskiy authored
      New bad eraseblock is an event which is important enough to be printed
      about.
      Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
      Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
      0feba829
    • Ralf Baechle's avatar
      [MIPS] DEC: Remove call to register_prom_console. · 8960909c
      Ralf Baechle authored
      Register_prom_console was removed when mips was converted to early printk.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      8960909c
    • David Woodhouse's avatar
      [JFFS2] Check for all-zero node headers · c7258a44
      David Woodhouse authored
      Due to a poor choice of CRC32 seed, a node header which is all zeroes
      would pass the CRC32 check. Explicitly check for this case, and treat it
      as we do a CRC failure.
      Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
      c7258a44
    • Kyungmin Park's avatar
      [MTD] [OneNAND] Classify the page data and oob buffer · 470bc844
      Kyungmin Park authored
      Classify the page data and oob buffer
      and it prevents the memory fragementation (writesize + oobsize)
      Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
      Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
      470bc844