ide-2.6 update
PATCH 1/1 ide-2.6 update
Please do a
bk pull bk://bart.bkbits.net/ide-2.6
This will update the following files:
drivers/ide/Kconfig | 7 ++++ drivers/ide/arm/Makefile | 1 drivers/ide/arm/bast-ide.c | 71 +++++++++++++++++++++++++++++++++++++++++++++ drivers/ide/ide-probe.c | 9 ----- drivers/ide/ide-proc.c | 25 +++------------ drivers/ide/ide-taskfile.c | 33 -------------------- drivers/ide/pci/aec62xx.c | 47 +---------------------------- drivers/ide/pci/aec62xx.h | 7 ---- drivers/ide/pci/cmd640.c | 6 ++- drivers/ide/pci/piix.c | 43 ++++++++++++--------------- drivers/ide/pci/triflex.c | 62 --------------------------------------- include/linux/ide.h | 7 ---- 12 files changed, 110 insertions(+), 208 deletions(-)
through these ChangeSets:
<bzolnier@trik.(none)> (04/10/01 1.2031)
[ide] Simtec BAST (EB2410ITX) / Thorcom VR1000 driver
Patch to provide support for the following two boards:
- Simtec BAST (EB2410ITX)
- Thorcom VR1000
<bzolnier@trik.(none)> (04/10/01 1.2030)
[ide] piix: fix wrong DMA mode selected
From: Carsten Haustein <[email protected]>
A bug in function piix_config_drive_xfer_rate() allows a call of hwif->ide_dma_on(drive) without prior call of piix_config_drive_for_dma(). This results in harddisk configured for UDMA (default?) whereas the highest DMA mode supported by PIIX3 is MWORD2.
This bug is supposed to be present in any 2.6.x kernel release and any 2.4.x kernel release since 2.4.21.
bart: this should also fix the same bug for PIIXa and PIIXb
Fixes bugzilla bug #3473.
<bzolnier@trik.(none)> (04/10/01 1.2029)
[ide] aec62xx: remove dead DEBUG_AEC_REGS code
<bzolnier@trik.(none)> (04/10/01 1.2028)
[ide] remove stale comment from ide-proc.c
ide-default driver was added long time ago.
<bzolnier@trik.(none)> (04/10/01 1.2027)
[ide] remove dead debugging code from ide-taskfile.c
- CONFIG_IDE_TASK_IOCTL_DEBUG cannot be defined
- function declarations are used instead of calls
<bzolnier@trik.(none)> (04/10/01 1.2026)
[ide] remove dead CMD640 debugging from ide-probe.c
<bzolnier@trik.(none)> (04/10/01 1.2025)
[ide] triflex: kill /proc/ide/triflex
Fixes OOPS on two single channel controllers.
drivers/ide/Kconfig +7 -0
@@ -830,6 +830,13 @@ Say Y here if you want to support the Yellowstone RapIDE controller manufactured for use with Acorn computers. +config BLK_DEV_IDE_BAST + tristate "Simtec BAST / Thorcom VR1000 IDE support" + depends on ARM && (ARCH_BAST || MACH_VR100) + help + Say Y here if you want to support the onboard IDE channels on the + Simtec BAST or the Thorcom VR1000 + config BLK_DEV_GAYLE bool "Amiga Gayle IDE interface support" depends on AMIGA
drivers/ide/arm/Makefile +1 -0
@@ -1,5 +1,6 @@ obj-$(CONFIG_BLK_DEV_IDE_ICSIDE) += icside.o obj-$(CONFIG_BLK_DEV_IDE_RAPIDE) += rapide.o +obj-$(CONFIG_BLK_DEV_IDE_BAST) += bast-ide.o EXTRA_CFLAGS := -Idrivers/ide
drivers/ide/arm/bast-ide.c new file +71 -0
71 lines not on this page · raw message
drivers/ide/ide-probe.c +0 -9
@@ -389,15 +389,6 @@*/ printk ("%s: IRQ probe failed (0x%lx)\n" , drive->name, cookie); -#ifdef CONFIG_BLK_DEV_CMD640 -#ifdef CMD640_DUMP_REGS -if (hwif->chipset == ide_cmd640) { -printk ("%s: Hmmm.. probably a driver " -"problem.\n" , drive->name); -CMD640_DUMP_REGS ; - } -#endif /* CMD640_DUMP_REGS */ -#endif /* CONFIG_BLK_DEV_CMD640 */ } } }
drivers/ide/ide-proc.c +6 -19
@@ -360,27 +360,14 @@int err =0 ; len =sprintf (page,"\n" ); - -if (drive) - { + +if (drive) {unsigned short *val = (unsigned short *) page; - -/* -* The current code can't handle a driverless -* identify query taskfile. Now the right fix is -* to add a 'default' driver but that is a bit -* more work. -* -* FIXME: this has to be fixed for hotswap devices -*/ - -if (DRIVER (drive)) - err =taskfile_lib_get_identify (drive, page); -else /* This relies on the ID changes */ - val = (unsigned short *)drive->id; -if (!err) - { +BUG_ON (!drive->driver); + + err =taskfile_lib_get_identify (drive, page); +if (!err) {char *out = ((char *)page) + (SECTOR_WORDS *4 ); page = out; do {
drivers/ide/ide-taskfile.c +0 -33
@@ -103,30 +103,6 @@EXPORT_SYMBOL (taskfile_lib_get_identify); -#ifdef CONFIG_IDE_TASK_IOCTL_DEBUG -void debug_taskfile (ide_drive_t *drive,ide_task_t *args) -{ -printk (KERN_INFO "%s: " , drive->name); -// printk("TF.0=x%02x ", args->tfRegister[IDE_DATA_OFFSET]); -printk ("TF.1=x%02x " , args->tfRegister[IDE_FEATURE_OFFSET ]); -printk ("TF.2=x%02x " , args->tfRegister[IDE_NSECTOR_OFFSET ]); -printk ("TF.3=x%02x " , args->tfRegister[IDE_SECTOR_OFFSET ]); -printk ("TF.4=x%02x " , args->tfRegister[IDE_LCYL_OFFSET ]); -printk ("TF.5=x%02x " , args->tfRegister[IDE_HCYL_OFFSET ]); -printk ("TF.6=x%02x " , args->tfRegister[IDE_SELECT_OFFSET ]); -printk ("TF.7=x%02x\n" , args->tfRegister[IDE_COMMAND_OFFSET ]); -printk (KERN_INFO "%s: " , drive->name); -// printk("HTF.0=x%02x ", args->hobRegister[IDE_DATA_OFFSET]); -printk ("HTF.1=x%02x " , args->hobRegister[IDE_FEATURE_OFFSET ]); -printk ("HTF.2=x%02x " , args->hobRegister[IDE_NSECTOR_OFFSET ]); -printk ("HTF.3=x%02x " , args->hobRegister[IDE_SECTOR_OFFSET ]); -printk ("HTF.4=x%02x " , args->hobRegister[IDE_LCYL_OFFSET ]); -printk ("HTF.5=x%02x " , args->hobRegister[IDE_HCYL_OFFSET ]); -printk ("HTF.6=x%02x " , args->hobRegister[IDE_SELECT_OFFSET ]); -printk ("HTF.7=x%02x\n" , args->hobRegister[IDE_CONTROL_OFFSET_HOB ]); -} -#endif /* CONFIG_IDE_TASK_IOCTL_DEBUG */ -ide_startstop_t do_rw_taskfile (ide_drive_t *drive,ide_task_t *task) {ide_hwif_t *hwif =HWIF (drive);
@@ -134,10 +110,6 @@hob_struct_t *hobfile = (hob_struct_t *) task->hobRegister;u8 HIHI = (drive->addressing ==1 ) ?0xE0 :0xEF ; -#ifdef CONFIG_IDE_TASK_IOCTL_DEBUG -void debug_taskfile (drive ,task ); -#endif /* CONFIG_IDE_TASK_IOCTL_DEBUG */ -/* ALL Command Block Executions SHALL clear nIEN, unless otherwise */ if (IDE_CONTROL_REG ) {/* clear nIEN */
@@ -852,11 +824,6 @@#if DEBUG_TASKFILE u8 status;#endif - - -#ifdef CONFIG_IDE_TASK_IOCTL_DEBUG -void debug_taskfile (drive ,task ); -#endif /* CONFIG_IDE_TASK_IOCTL_DEBUG */ if (task->data_phase ==TASKFILE_MULTI_IN || task->data_phase ==TASKFILE_MULTI_OUT ) {
drivers/ide/pci/aec62xx.c +2 -45
83 lines not on this page · raw message
drivers/ide/pci/aec62xx.h +0 -7
@@ -53,13 +53,6 @@ { 0, 0x00, 0x00 } }; - -#ifndef HIGH_4 -#define HIGH_4 (H ) ((H)=(H>>4)) -#endif -#ifndef LOW_4 -#define LOW_4 (L ) ((L)=(L-((L>>4)<<4))) -#endif #ifndef SPLIT_BYTE #define SPLIT_BYTE (B ,H ,L ) ((H)=(B>>4), (L)=(B-((B>>4)<<4)))#endif
drivers/ide/pci/cmd640.c +4 -2
@@ -101,6 +101,8 @@#undef REALLY_SLOW_IO/* most systems can safely undef this */ #define CMD640_PREFETCH_MASKS 1 +//#define CMD640_DUMP_REGS +#include <linux/config.h> #include <linux/types.h> #include <linux/kernel.h>
@@ -748,7 +750,7 @@put_cmd640_reg (0x5b ,0 );#ifdef CMD640_DUMP_REGS -CMD640_DUMP_REGS ; +cmd640_dump_regs ();#endif /*
@@ -870,7 +872,7 @@ }#ifdef CMD640_DUMP_REGS -CMD640_DUMP_REGS ; +cmd640_dump_regs ();#endif return 1 ; }
drivers/ide/pci/piix.c +19 -24
55 lines not on this page · raw message
drivers/ide/pci/triflex.c +0 -62
82 lines not on this page · raw message
include/linux/ide.h +0 -7
@@ -52,13 +52,6 @@#define OK_TO_RESET_CONTROLLER 1/* 0 for use with AH2372A/B interface */ #endif -#ifdef CONFIG_BLK_DEV_CMD640 -#if 0 /* change to 1 when debugging cmd640 problems */ -void cmd640_dump_regs (void ); -#define CMD640_DUMP_REGS cmd640_dump_regs()/* for debugging cmd640 chipset */ -#endif -#endif /* CONFIG_BLK_DEV_CMD640 */ -#ifndef DISABLE_IRQ_NOSYNC #define DISABLE_IRQ_NOSYNC 0#endif