1. 04 3月, 2007 3 次提交
    • 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 次提交
  6. 12 2月, 2007 1 次提交
  7. 08 2月, 2007 3 次提交
    • G
      PCI: add the sysfs driver name to all modules · 725522b5
      Greg Kroah-Hartman 提交于
      This adds the module name to all PCI drivers, if they are built into the
      kernel or not.  It will show up in /sys/modules/MODULE_NAME/drivers/
      
      It also fixes up the IDE core, which was calling __pci_register_driver()
      directly.
      
      Cc: Kay Sievers <kay.sievers@suse.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      725522b5
    • A
      ide-acpi support warning fix · 1e8f34f7
      Andrew Morton 提交于
      drivers/ide/ide-acpi.c: In function 'ide_acpi_get_timing':
      drivers/ide/ide-acpi.c:537: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'long unsigned int'
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NHannes Reinecke <hare@suse.de>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      1e8f34f7
    • H
      ACPI support for IDE devices · e3a59b4d
      Hannes Reinecke 提交于
      This patch implements ACPI integration for generic IDE devices.
      The ACPI spec mandates that some methods are called during suspend and
      resume. And consequently there most modern Laptops cannot resume
      properly without it.
      
      According to the spec, we should call '_GTM' (Get Timing) upon suspend
      to store the current IDE adapter settings.
      Upon resume we should call '_STM' (Set Timing) to initialize the
      adapter with the stored settings; afterwards '_GTF' (Get Taskfile)
      should be called which returns a buffer with some IDE initialisation
      commands. Those commands should be passed to the drive.
      
      There are two module params which control the behaviour of this patch:
      
      'ide=noacpi'
      	Do not call any ACPI methods (Disables any ACPI method calls)
      'ide=acpigtf'
      	Enable execution of _GTF methods upon resume.
      	Has no effect if 'ide=noacpi' is set.
      'ide=acpionboot'
      	Enable execution of ACPI methods during boot.
      	This might be required on some machines if 'ide=acpigtf' is
      	selected as some machines modify the _GTF information
      	depending on the drive identification passed down with _STM.
      Signed-off-by: NHannes Reinecke <hare@suse.de>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      e3a59b4d