Skip to content

Commit c970d5a

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6: it821x: do not describe noraid parameter with its value Pb1200/DBAu1200: fix bad IDE resource size Au1200: IDE driver build fix Au1200: kill IDE driver function prototypes avr32 mustn't select HAVE_IDE
2 parents 6af74b0 + da19566 commit c970d5a

7 files changed

Lines changed: 13 additions & 36 deletions

File tree

‎arch/avr32/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ config AVR32
1010
# With EMBEDDED=n, we get lots of stuff automatically selected
1111
# that we usually don't need on AVR32.
1212
select EMBEDDED
13-
select HAVE_IDE
1413
select HAVE_OPROFILE
1514
select HAVE_KPROBES
1615
help

‎arch/mips/au1000/common/platform.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ static struct resource au1200_lcd_resources[] = {
189189
static struct resource au1200_ide0_resources[] = {
190190
[0] = {
191191
.start = AU1XXX_ATA_PHYS_ADDR,
192-
.end = AU1XXX_ATA_PHYS_ADDR + AU1XXX_ATA_PHYS_LEN,
192+
.end = AU1XXX_ATA_PHYS_ADDR + AU1XXX_ATA_PHYS_LEN - 1,
193193
.flags = IORESOURCE_MEM,
194194
},
195195
[1] = {

‎drivers/ide/mips/au1xxx-ide.c‎

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,12 @@
3232
#include <linux/kernel.h>
3333
#include <linux/delay.h>
3434
#include <linux/platform_device.h>
35-
3635
#include <linux/init.h>
3736
#include <linux/ide.h>
38-
#include <linux/sysdev.h>
39-
40-
#include <linux/dma-mapping.h>
41-
42-
#include "ide-timing.h"
37+
#include <linux/scatterlist.h>
4338

44-
#include <asm/io.h>
4539
#include <asm/mach-au1x00/au1xxx.h>
4640
#include <asm/mach-au1x00/au1xxx_dbdma.h>
47-
4841
#include <asm/mach-au1x00/au1xxx_ide.h>
4942

5043
#define DRV_NAME "au1200-ide"
@@ -56,6 +49,8 @@
5649
static _auide_hwif auide_hwif;
5750
static int dbdma_init_done;
5851

52+
static int auide_ddma_init(_auide_hwif *auide);
53+
5954
#if defined(CONFIG_BLK_DEV_IDE_AU1XXX_PIO_DBDMA)
6055

6156
void auide_insw(unsigned long port, void *addr, u32 count)
@@ -591,13 +586,14 @@ static int au_ide_probe(struct device *dev)
591586
goto out;
592587
}
593588

594-
if (!request_mem_region (res->start, res->end-res->start, pdev->name)) {
589+
if (!request_mem_region(res->start, res->end - res->start + 1,
590+
pdev->name)) {
595591
pr_debug("%s: request_mem_region failed\n", DRV_NAME);
596592
ret = -EBUSY;
597593
goto out;
598594
}
599595

600-
ahwif->regbase = (u32)ioremap(res->start, res->end-res->start);
596+
ahwif->regbase = (u32)ioremap(res->start, res->end - res->start + 1);
601597
if (ahwif->regbase == 0) {
602598
ret = -ENOMEM;
603599
goto out;
@@ -682,7 +678,7 @@ static int au_ide_remove(struct device *dev)
682678
iounmap((void *)ahwif->regbase);
683679

684680
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
685-
release_mem_region(res->start, res->end - res->start);
681+
release_mem_region(res->start, res->end - res->start + 1);
686682

687683
return 0;
688684
}

‎drivers/ide/pci/it821x.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ static int __init it821x_ide_init(void)
667667
module_init(it821x_ide_init);
668668

669669
module_param_named(noraid, it8212_noraid, int, S_IRUGO);
670-
MODULE_PARM_DESC(it8212_noraid, "Force card into bypass mode");
670+
MODULE_PARM_DESC(noraid, "Force card into bypass mode");
671671

672672
MODULE_AUTHOR("Alan Cox");
673673
MODULE_DESCRIPTION("PCI driver module for the ITE 821x");

‎include/asm-mips/mach-au1x00/au1xxx_ide.h‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -122,24 +122,6 @@ static const struct drive_list_entry dma_black_list [] = {
122122
};
123123
#endif
124124

125-
/* function prototyping */
126-
u8 auide_inb(unsigned long port);
127-
u16 auide_inw(unsigned long port);
128-
u32 auide_inl(unsigned long port);
129-
void auide_insw(unsigned long port, void *addr, u32 count);
130-
void auide_insl(unsigned long port, void *addr, u32 count);
131-
void auide_outb(u8 addr, unsigned long port);
132-
void auide_outbsync(ide_drive_t *drive, u8 addr, unsigned long port);
133-
void auide_outw(u16 addr, unsigned long port);
134-
void auide_outl(u32 addr, unsigned long port);
135-
void auide_outsw(unsigned long port, void *addr, u32 count);
136-
void auide_outsl(unsigned long port, void *addr, u32 count);
137-
static void auide_tune_drive(ide_drive_t *drive, byte pio);
138-
static int auide_tune_chipset(ide_drive_t *drive, u8 speed);
139-
static int auide_ddma_init( _auide_hwif *auide );
140-
static void auide_setup_ports(hw_regs_t *hw, _auide_hwif *ahwif);
141-
int __init auide_probe(void);
142-
143125
/*******************************************************************************
144126
* PIO Mode timing calculation : *
145127
* *

‎include/asm-mips/mach-db1x00/db1200.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ static BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR;
173173
#define AU1XXX_SMC91111_IRQ DB1200_ETH_INT
174174

175175
#define AU1XXX_ATA_PHYS_ADDR (0x18800000)
176-
#define AU1XXX_ATA_PHYS_LEN (0x100)
177-
#define AU1XXX_ATA_REG_OFFSET (5)
176+
#define AU1XXX_ATA_REG_OFFSET (5)
177+
#define AU1XXX_ATA_PHYS_LEN (16 << AU1XXX_ATA_REG_OFFSET)
178178
#define AU1XXX_ATA_INT DB1200_IDE_INT
179179
#define AU1XXX_ATA_DDMA_REQ DSCR_CMD0_DMA_REQ1;
180180
#define AU1XXX_ATA_RQSIZE 128

‎include/asm-mips/mach-pb1x00/pb1200.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ static BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR;
186186
#define AU1XXX_SMC91111_IRQ PB1200_ETH_INT
187187

188188
#define AU1XXX_ATA_PHYS_ADDR (0x0C800000)
189-
#define AU1XXX_ATA_PHYS_LEN (0x100)
190-
#define AU1XXX_ATA_REG_OFFSET (5)
189+
#define AU1XXX_ATA_REG_OFFSET (5)
190+
#define AU1XXX_ATA_PHYS_LEN (16 << AU1XXX_ATA_REG_OFFSET)
191191
#define AU1XXX_ATA_INT PB1200_IDE_INT
192192
#define AU1XXX_ATA_DDMA_REQ DSCR_CMD0_DMA_REQ1;
193193
#define AU1XXX_ATA_RQSIZE 128

0 commit comments

Comments
 (0)