Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4079
b: refs/heads/master
c: 976ecd1
h: refs/heads/master
i:
  4077: 4944a4e
  4075: 300b019
  4071: 66095bf
  4063: 4a6b452
v: v3
  • Loading branch information
Russell King authored and Russell King committed Jul 3, 2005
1 parent 8c80798 commit 92825fe
Show file tree
Hide file tree
Showing 17 changed files with 48 additions and 36 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 10e047b40aafefef1fdc8ea4ea7837b9557a9400
refs/heads/master: 976ecd12b8144d066a23fe97c6fbfc1ac8470af7
1 change: 1 addition & 0 deletions trunk/drivers/ide/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ide-core-$(CONFIG_BLK_DEV_CMD640) += pci/cmd640.o
# Core IDE code - must come before legacy
ide-core-$(CONFIG_BLK_DEV_IDEPCI) += setup-pci.o
ide-core-$(CONFIG_BLK_DEV_IDEDMA) += ide-dma.o
ide-core-$(CONFIG_BLK_DEV_IDE_TCQ) += ide-tcq.o
ide-core-$(CONFIG_PROC_FS) += ide-proc.o
ide-core-$(CONFIG_BLK_DEV_IDEPNP) += ide-pnp.o

Expand Down
13 changes: 8 additions & 5 deletions trunk/drivers/ide/ide-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,8 @@ static u8 ide_dump_ata_status(ide_drive_t *drive, const char *msg, u8 stat)
u8 err = 0;

local_irq_set(flags);
printk("%s: %s: status=0x%02x { ", drive->name, msg, stat);
printk("%s: %s: status=0x%02x", drive->name, msg, stat);
printk(" { ");
if (stat & BUSY_STAT)
printk("Busy ");
else {
Expand All @@ -499,13 +500,15 @@ static u8 ide_dump_ata_status(ide_drive_t *drive, const char *msg, u8 stat)
if (stat & INDEX_STAT) printk("Index ");
if (stat & ERR_STAT) printk("Error ");
}
printk("}\n");
printk("}");
printk("\n");
if ((stat & (BUSY_STAT|ERR_STAT)) == ERR_STAT) {
err = hwif->INB(IDE_ERROR_REG);
printk("%s: %s: error=0x%02x { ", drive->name, msg, err);
printk("%s: %s: error=0x%02x", drive->name, msg, err);
printk(" { ");
if (err & ABRT_ERR) printk("DriveStatusError ");
if (err & ICRC_ERR)
printk((err & ABRT_ERR) ? "BadCRC " : "BadSector ");
printk("Bad%s ", (err & ABRT_ERR) ? "CRC" : "Sector");
if (err & ECC_ERR) printk("UncorrectableError ");
if (err & ID_ERR) printk("SectorIdNotFound ");
if (err & TRK0_ERR) printk("TrackZeroNotFound ");
Expand Down Expand Up @@ -543,8 +546,8 @@ static u8 ide_dump_ata_status(ide_drive_t *drive, const char *msg, u8 stat)
printk(", sector=%llu",
(unsigned long long)HWGROUP(drive)->rq->sector);
}
printk("\n");
}
printk("\n");
ide_dump_opcode(drive);
local_irq_restore(flags);
return err;
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/ide/pci/alim15x3.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ static int ali15x3_dma_setup(ide_drive_t *drive)
* appropriate also sets up the 1533 southbridge.
*/

static unsigned int __devinit init_chipset_ali15x3 (struct pci_dev *dev, const char *name)
static unsigned int __init init_chipset_ali15x3 (struct pci_dev *dev, const char *name)
{
unsigned long flags;
u8 tmpbyte;
Expand Down Expand Up @@ -677,7 +677,7 @@ static unsigned int __devinit init_chipset_ali15x3 (struct pci_dev *dev, const c
* FIXME: frobs bits that are not defined on newer ALi devicea
*/

static unsigned int __devinit ata66_ali15x3 (ide_hwif_t *hwif)
static unsigned int __init ata66_ali15x3 (ide_hwif_t *hwif)
{
struct pci_dev *dev = hwif->pci_dev;
unsigned int ata66 = 0;
Expand Down Expand Up @@ -748,7 +748,7 @@ static unsigned int __devinit ata66_ali15x3 (ide_hwif_t *hwif)
* Initialize the IDE structure side of the ALi 15x3 driver.
*/

static void __devinit init_hwif_common_ali15x3 (ide_hwif_t *hwif)
static void __init init_hwif_common_ali15x3 (ide_hwif_t *hwif)
{
hwif->autodma = 0;
hwif->tuneproc = &ali15x3_tune_drive;
Expand Down Expand Up @@ -794,7 +794,7 @@ static void __devinit init_hwif_common_ali15x3 (ide_hwif_t *hwif)
* Sparc systems
*/

static void __devinit init_hwif_ali15x3 (ide_hwif_t *hwif)
static void __init init_hwif_ali15x3 (ide_hwif_t *hwif)
{
u8 ideic, inmir;
s8 irq_routing_table[] = { -1, 9, 3, 10, 4, 5, 7, 6,
Expand Down Expand Up @@ -847,7 +847,7 @@ static void __devinit init_hwif_ali15x3 (ide_hwif_t *hwif)
* the actual work.
*/

static void __devinit init_dma_ali15x3 (ide_hwif_t *hwif, unsigned long dmabase)
static void __init init_dma_ali15x3 (ide_hwif_t *hwif, unsigned long dmabase)
{
if (m5229_revision < 0x20)
return;
Expand Down
7 changes: 2 additions & 5 deletions trunk/drivers/ide/pci/amd74xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ static struct amd_ide_chip {
{ PCI_DEVICE_ID_NVIDIA_NFORCE_CK804_IDE, 0x50, AMD_UDMA_133 },
{ PCI_DEVICE_ID_NVIDIA_NFORCE_MCP04_IDE, 0x50, AMD_UDMA_133 },
{ PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_IDE, 0x50, AMD_UDMA_133 },
{ PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_IDE, 0x50, AMD_UDMA_133 },
{ 0 }
};

Expand Down Expand Up @@ -310,7 +309,7 @@ static int amd74xx_ide_dma_check(ide_drive_t *drive)
* and initialize its drive independent registers.
*/

static unsigned int __devinit init_chipset_amd74xx(struct pci_dev *dev, const char *name)
static unsigned int __init init_chipset_amd74xx(struct pci_dev *dev, const char *name)
{
unsigned char t;
unsigned int u;
Expand Down Expand Up @@ -414,7 +413,7 @@ static unsigned int __devinit init_chipset_amd74xx(struct pci_dev *dev, const ch
return dev->irq;
}

static void __devinit init_hwif_amd74xx(ide_hwif_t *hwif)
static void __init init_hwif_amd74xx(ide_hwif_t *hwif)
{
int i;

Expand Down Expand Up @@ -490,7 +489,6 @@ static ide_pci_device_t amd74xx_chipsets[] __devinitdata = {
/* 13 */ DECLARE_NV_DEV("NFORCE-CK804"),
/* 14 */ DECLARE_NV_DEV("NFORCE-MCP04"),
/* 15 */ DECLARE_NV_DEV("NFORCE-MCP51"),
/* 16 */ DECLARE_NV_DEV("NFORCE-MCP55"),
};

static int __devinit amd74xx_probe(struct pci_dev *dev, const struct pci_device_id *id)
Expand Down Expand Up @@ -526,7 +524,6 @@ static struct pci_device_id amd74xx_pci_tbl[] = {
{ PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_CK804_IDE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 13 },
{ PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP04_IDE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 14 },
{ PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_IDE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 15 },
{ PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_IDE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 16 },
{ 0, },
};
MODULE_DEVICE_TABLE(pci, amd74xx_pci_tbl);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/ide/pci/cs5530.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ static int cs5530_config_dma (ide_drive_t *drive)
* Initialize the cs5530 bridge for reliable IDE DMA operation.
*/

static unsigned int __devinit init_chipset_cs5530 (struct pci_dev *dev, const char *name)
static unsigned int __init init_chipset_cs5530 (struct pci_dev *dev, const char *name)
{
struct pci_dev *master_0 = NULL, *cs5530_0 = NULL;
unsigned long flags;
Expand Down Expand Up @@ -308,7 +308,7 @@ static unsigned int __devinit init_chipset_cs5530 (struct pci_dev *dev, const ch
* performs channel-specific pre-initialization before drive probing.
*/

static void __devinit init_hwif_cs5530 (ide_hwif_t *hwif)
static void __init init_hwif_cs5530 (ide_hwif_t *hwif)
{
unsigned long basereg;
u32 d0_timings;
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/ide/pci/cy82c693.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ static void cy82c693_tune_drive (ide_drive_t *drive, u8 pio)
/*
* this function is called during init and is used to setup the cy82c693 chip
*/
static unsigned int __devinit init_chipset_cy82c693(struct pci_dev *dev, const char *name)
static unsigned int __init init_chipset_cy82c693(struct pci_dev *dev, const char *name)
{
if (PCI_FUNC(dev->devfn) != 1)
return 0;
Expand Down Expand Up @@ -443,7 +443,7 @@ static unsigned int __devinit init_chipset_cy82c693(struct pci_dev *dev, const c
/*
* the init function - called for each ide channel once
*/
static void __devinit init_hwif_cy82c693(ide_hwif_t *hwif)
static void __init init_hwif_cy82c693(ide_hwif_t *hwif)
{
hwif->autodma = 0;

Expand All @@ -467,9 +467,9 @@ static void __devinit init_hwif_cy82c693(ide_hwif_t *hwif)
hwif->drives[1].autodma = hwif->autodma;
}

static __devinitdata ide_hwif_t *primary;
static __initdata ide_hwif_t *primary;

void __devinit init_iops_cy82c693(ide_hwif_t *hwif)
void __init init_iops_cy82c693(ide_hwif_t *hwif)
{
if (PCI_FUNC(hwif->pci_dev->devfn) == 1)
primary = hwif;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/ide/pci/it8172.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ static int it8172_config_drive_xfer_rate (ide_drive_t *drive)
return 0;
}

static unsigned int __devinit init_chipset_it8172 (struct pci_dev *dev, const char *name)
static unsigned int __init init_chipset_it8172 (struct pci_dev *dev, const char *name)
{
unsigned char progif;

Expand All @@ -230,7 +230,7 @@ static unsigned int __devinit init_chipset_it8172 (struct pci_dev *dev, const ch
}


static void __devinit init_hwif_it8172 (ide_hwif_t *hwif)
static void __init init_hwif_it8172 (ide_hwif_t *hwif)
{
struct pci_dev* dev = hwif->pci_dev;
unsigned long cmdBase, ctrlBase;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ide/pci/ns87415.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ static int ns87415_ide_dma_check (ide_drive_t *drive)
return __ide_dma_check(drive);
}

static void __devinit init_hwif_ns87415 (ide_hwif_t *hwif)
static void __init init_hwif_ns87415 (ide_hwif_t *hwif)
{
struct pci_dev *dev = hwif->pci_dev;
unsigned int ctrl, using_inta;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ide/pci/opti621.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ static void opti621_tune_drive (ide_drive_t *drive, u8 pio)
/*
* init_hwif_opti621() is called once for each hwif found at boot.
*/
static void __devinit init_hwif_opti621 (ide_hwif_t *hwif)
static void __init init_hwif_opti621 (ide_hwif_t *hwif)
{
hwif->autodma = 0;
hwif->drives[0].drive_data = PIO_DONT_KNOW;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ide/pci/sc1200.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ printk("%s: SC1200: resume\n", hwif->name);
* This gets invoked by the IDE driver once for each channel,
* and performs channel-specific pre-initialization before drive probing.
*/
static void __devinit init_hwif_sc1200 (ide_hwif_t *hwif)
static void __init init_hwif_sc1200 (ide_hwif_t *hwif)
{
if (hwif->mate)
hwif->serialized = hwif->mate->serialized = 1;
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/ide/pci/sl82c105.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ static unsigned int sl82c105_bridge_revision(struct pci_dev *dev)
* channel 0 here at least, but channel 1 has to be enabled by
* firmware or arch code. We still set both to 16 bits mode.
*/
static unsigned int __devinit init_chipset_sl82c105(struct pci_dev *dev, const char *msg)
static unsigned int __init init_chipset_sl82c105(struct pci_dev *dev, const char *msg)
{
u32 val;

Expand All @@ -399,7 +399,7 @@ static unsigned int __devinit init_chipset_sl82c105(struct pci_dev *dev, const c
return dev->irq;
}

static void __devinit init_dma_sl82c105(ide_hwif_t *hwif, unsigned long dma_base)
static void __init init_dma_sl82c105(ide_hwif_t *hwif, unsigned long dma_base)
{
unsigned int rev;
u8 dma_state;
Expand Down Expand Up @@ -431,7 +431,7 @@ static void __devinit init_dma_sl82c105(ide_hwif_t *hwif, unsigned long dma_base
* Initialise the chip
*/

static void __devinit init_hwif_sl82c105(ide_hwif_t *hwif)
static void __init init_hwif_sl82c105(ide_hwif_t *hwif)
{
struct pci_dev *dev = hwif->pci_dev;
u32 val;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ide/pci/slc90e66.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ static int slc90e66_config_drive_xfer_rate (ide_drive_t *drive)
}
#endif /* CONFIG_BLK_DEV_IDEDMA */

static void __devinit init_hwif_slc90e66 (ide_hwif_t *hwif)
static void __init init_hwif_slc90e66 (ide_hwif_t *hwif)
{
u8 reg47 = 0;
u8 mask = hwif->channel ? 0x01 : 0x02; /* bit0:Primary */
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ide/pci/triflex.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static int triflex_config_drive_xfer_rate(ide_drive_t *drive)
return hwif->ide_dma_off_quietly(drive);
}

static void __devinit init_hwif_triflex(ide_hwif_t *hwif)
static void __init init_hwif_triflex(ide_hwif_t *hwif)
{
hwif->tuneproc = &triflex_tune_drive;
hwif->speedproc = &triflex_tune_chipset;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/ide/pci/via82cxxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ static int via82cxxx_ide_dma_check (ide_drive_t *drive)
* and initialize its drive independent registers.
*/

static unsigned int __devinit init_chipset_via82cxxx(struct pci_dev *dev, const char *name)
static unsigned int __init init_chipset_via82cxxx(struct pci_dev *dev, const char *name)
{
struct pci_dev *isa = NULL;
u8 t, v;
Expand Down Expand Up @@ -576,7 +576,7 @@ static unsigned int __devinit init_chipset_via82cxxx(struct pci_dev *dev, const
return 0;
}

static void __devinit init_hwif_via82cxxx(ide_hwif_t *hwif)
static void __init init_hwif_via82cxxx(ide_hwif_t *hwif)
{
int i;

Expand Down
14 changes: 13 additions & 1 deletion trunk/drivers/serial/serial_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1808,6 +1808,12 @@ uart_set_options(struct uart_port *port, struct console *co,
struct termios termios;
int i;

/*
* Ensure that the serial console lock is initialised
* early.
*/
spin_lock_init(&port->lock);

memset(&termios, 0, sizeof(struct termios));

termios.c_cflag = CREAD | HUPCL | CLOCAL;
Expand Down Expand Up @@ -2196,10 +2202,16 @@ int uart_add_one_port(struct uart_driver *drv, struct uart_port *port)

state->port = port;

spin_lock_init(&port->lock);
port->cons = drv->cons;
port->info = state->info;

/*
* If this port is a console, then the spinlock is already
* initialised.
*/
if (!uart_console(port))
spin_lock_init(&port->lock);

uart_configure_port(drv, state, port);

/*
Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/pci_ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,6 @@
#define PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_IDE 0x0265
#define PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA 0x0266
#define PCI_DEVICE_ID_NVIDIA_NFORCE_MCP51_SATA2 0x0267
#define PCI_DEVICE_ID_NVIDIA_NFORCE_MCP55_IDE 0x036E
#define PCI_DEVICE_ID_NVIDIA_NVENET_12 0x0268
#define PCI_DEVICE_ID_NVIDIA_NVENET_13 0x0269
#define PCI_DEVICE_ID_NVIDIA_MCP51_AUDIO 0x026B
Expand Down

0 comments on commit 92825fe

Please sign in to comment.