1. 04 3月, 2007 7 次提交
    • A
      ide: fix pmac breakage · 9e5755bc
      Andrew Morton 提交于
      Fix breakage added in the IDE devel tree.
      
      Add header, then fix
      
      drivers/ide/ppc/pmac.c: In function `pmac_ide_setup_dma':
      drivers/ide/ppc/pmac.c:2044: warning: assignment from incompatible pointer type
      drivers/ide/ppc/pmac.c: In function `pmac_ide_dma_host_on':
      drivers/ide/ppc/pmac.c:1989: warning: control reaches end of non-void function
      include/linux/pci.h: In function `pmac_ide_init':
      drivers/ide/ppc/pmac.c:1563: warning: ignoring return value of `pci_register_driver', declared with attribute warn_unused_result
      
      Then add some apparently-long-missing error handling.
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      9e5755bc
    • M
      ide-cs: Update device table · ed896167
      Magnus Damm 提交于
      Add CFA devices from I-O Data, Mitsubishi and Viking. Add SanDisk comment.
      Signed-off-by: NMagnus Damm <damm@opensource.se>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      ed896167
    • S
      ide: ide_get_best_pio_mode() returns incorrect IORDY setting (take 2) · 81d368e0
      Sergei Shtylyov 提交于
      The function ide_get_best_pio_mode() fails to return the correct IORDY setting
      for the explicitly specified modes -- fix this along with the heading comment,
      and also remove the long commented out code.
      
      Also, while at it, correct the misliading comment about the PIO cycle time in
      <linux/ide.h> -- it actually consists of only the active and recovery periods,
      with only some chips also including the address setup time into equation...
      
      [ bart: sl82c105 seems to be currently the only driver affected by this fix ]
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      81d368e0
    • S
      piix/slc90e66: more tuneproc() fixing (take 2) · 07af4276
      Sergei Shtylyov 提交于
      The tuneproc() method in both these drivers failed to set the drive's own speed.
      Fix this by renaming the function and "wrapping around it" the new tuneproc()
      method.  Switch back to calling tuneproc() in the PIO fallback code.
      While at it, also convert the rest of the PIO timing code into proper C. :-)
      
      Has been kind of tested on SLC90E66.  I'm too lazy to reboot my box and test
      on ICH4... :-)
      
      [ bart: I quickly tested it on ICH4. ]
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      07af4276
    • T
      ide: fix drive side 80c cable check, take 2 · fab59375
      Tejun Heo 提交于
      eighty_ninty_three() had word 93 validitity check but not the 80c bit
      test itself (bit 13).  This increases the chance of incorrect wire
      detection especially because host side cable detection is often
      unreliable and we sometimes soley depend on drive side cable
      detection.  Fix it.
      
      [ bart: fix off-by-1 bit name in the patch description ]
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Acked-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      fab59375
    • S
      cmd64x: fix PIO mode setup (take 3) · f92d50e6
      Sergei Shtylyov 提交于
      The driver's tuneproc() method fails to set the drive's own speed -- fix this
      by renaming the function to cmd64x_tune_pio(), making it return the mode set,
      and "wrapping" the new tuneproc() method around it; while at it, also get rid
      of the non-working prefetch control code (filtering out related argument values
      in the "wrapper"), remove redundant PIO5 mode limitation, make cmdprintk() give
      more sensible mode info, and remove mention about the obsolete /proc/ interface.
      Get rid of the broken config_chipset_for_pio() which always tried to set PIO4,
      switch to always auto-tuning PIO instead.
      Oh, and add the missing PIO5 support to the speedproc() method while at it. :-)
      
      Warning: compile tested only -- getting to the real hardware isn't that easy...
      
      On Tuesday 06 February 2007 22:11, Mikael Pettersson <mikpe@it.uu.se> wrote:
      > 
      > Worked fine on my SPARC Ultra5 with a CMD646 IDE controller.
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      f92d50e6
    • S
      alim15x3: fix PIO mode setup · 21b82477
      Sergei Shtylyov 提交于
      The driver's tuneproc() method fails to set the drive's own speed -- fix this
      by renaming the function to ali15x3_tune_pio() and "wrapping" the new tuneproc()
      method around it and making it return the mode set, update the heading comment.
      
      Also, setting PIO mode via the speedproc() method does not work due to passing 
      to the tuneproc() method's a mode number not biased by XFER_PIO_0 -- fix this
      along with a typo in the heading comment...
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      21b82477
  2. 03 3月, 2007 25 次提交
  3. 02 3月, 2007 8 次提交
    • L
      Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev · 562aa1d4
      Linus Torvalds 提交于
      * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev:
        ahci: improve spurious SDB FIS handling
        ahci/pata_jmicron: match class not function number
        jmicron ATA: reimplement jmicron ATA quirk
        pata_jmicron: drop unnecessary device programming in [re]init
        libata: blacklist FUJITSU MHT2060BH for NCQ
        sata_sil24: kill unused local variable idx in sil24_fill_sg()
        libata: clear drvdata in ata_host_release(), take#2
      562aa1d4
    • L
      Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jikos/hid · b4350861
      Linus Torvalds 提交于
      * 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jikos/hid:
        HID: fix Logitech DiNovo Edge touchwheel and Logic3 /SpectraVideo middle button
        HID: add git tree information to MAINTAINERS
        HID: fix broken Logitech S510 keyboard report descriptor; make extra keys work
        HID: fix possible double-free on error path in hid parser
        HID: hid-debug.c should #include <linux/hid-debug.h>
        HID: fix bug in zeroing the last field byte in output reports
        USB HID: use CONFIG_HID_DEBUG for outputting report descriptor
        USB HID: Fix USB vendor and product IDs endianness for USB HID devices
      b4350861
    • L
      Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6 · 132a69c6
      Linus Torvalds 提交于
      * master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
        [SPARC64]: Fix parport_pc build.
        [SPARC64]: Update defconfig.
      132a69c6
    • L
      Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 · fb7d4045
      Linus Torvalds 提交于
      * master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
        [TCP]: Fix minisock tcp_create_openreq_child() typo.
        [TCP]: Document several sysctls.
        [NET]: Fix kfree(skb)
        [NET]: Handle disabled preemption in gfp_any()
        [BRIDGE]: Fix locking of set path cost.
        [IPV6]: /proc/net/anycast6 unbalanced inet6_dev refcnt
        [IPX]: Remove ancient changelog
        [IPX]: Remove outdated information from Kconfig
        [NET]: Revert socket.h/stat.h ifdef hacks.
        [IPV6]: anycast refcnt fix
        [XFRM] xfrm_user: Fix return values of xfrm_add_sa_expire.
      fb7d4045
    • L
      Merge master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb · 100b4254
      Linus Torvalds 提交于
      * master.kernel.org:/pub/scm/linux/kernel/git/mchehab/v4l-dvb:
        V4L/DVB (5305): Mark VIDIOC_DBG_S/G_REGISTER as experimental
        V4L/DVB (5271): Add VIDIOC_TRY_ENCODER_CMD and VIDIOC_ENCODER_CMD ioctls.
        V4L/DVB (5270): Add VIDIOC_G_ENC_INDEX ioctl
        V4L/DVB (5276): Cxusb: fix firmware patch for big endian systems
        V4L/DVB (5258): Cafe_ccic: fix compiler warning
        V4L/DVB (5295): Digitv: open nxt6000 i2c_gate for TDED4 tuner handling
        V4L/DVB (5304): Improve chip matching in v4l2_register
        V4L/DVB (5255): Fix cx25840 firmware loading.
      100b4254
    • R
      [PATCH] Fix sysfs build breakage if !CONFIG_SYSFS · d701d8a3
      Ralf Baechle 提交于
      B0rkage introduced by dfa87c82.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d701d8a3
    • T
      ahci: improve spurious SDB FIS handling · afb2d552
      Tejun Heo 提交于
      Spurious SDB FIS during NCQ might not contain spurious completions.
      It could be spurious TF update or invalid async notification.  Treat
      as HSM violation iff a spurious SDB FIS contains spurious completions;
      otherwise, just whine once about it.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      afb2d552
    • T
      ahci/pata_jmicron: match class not function number · e34bb370
      Tejun Heo 提交于
      Make jmiron_ata quirk update pdev->class after programming the device
      and update ahci and pata_jmicron such that they match class code
      instead of checking function number manually.  For ahci, it matches
      for vendor and class.  For pata_jmicron, it matches vendor, device and
      class as IDE class isn't as well defined as AHCI class.
      
      This makes jmicron device matching more conventional and script
      friendly.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      e34bb370