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. 18 2月, 2007 1 次提交
  3. 17 2月, 2007 30 次提交
  4. 15 2月, 2007 1 次提交
    • T
      [PATCH] remove many unneeded #includes of sched.h · cd354f1a
      Tim Schmielau 提交于
      After Al Viro (finally) succeeded in removing the sched.h #include in module.h
      recently, it makes sense again to remove other superfluous sched.h includes.
      There are quite a lot of files which include it but don't actually need
      anything defined in there.  Presumably these includes were once needed for
      macros that used to live in sched.h, but moved to other header files in the
      course of cleaning it up.
      
      To ease the pain, this time I did not fiddle with any header files and only
      removed #includes from .c-files, which tend to cause less trouble.
      
      Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
      arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
      allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
      configs in arch/arm/configs on arm.  I also checked that no new warnings were
      introduced by the patch (actually, some warnings are removed that were emitted
      by unnecessarily included header files).
      Signed-off-by: NTim Schmielau <tim@physik3.uni-rostock.de>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cd354f1a
  5. 13 2月, 2007 1 次提交