Re: Patch to add support for SGI's IOC4 chipset

From: Andrew Morton
Date: Thu Oct 02 2003 - 19:44:17 EST


Aniket Malatpure <aniket@xxxxxxx> wrote:
>
> Hi
>
> This patch adds support for the ATAPI part of SGI's IOC4 chipset.
> A version of this patch for the 2.4 series has been accepted and is present in the tree.
> This patch is a slight modification of the earlier patch for the 2.4 series.
>

Perhaps Bart could take a look over this sometime please?


> +++ b/drivers/ide/pci/sgiioc4.c Thu Oct 2 16:53:34 2003
> +
> +extern int dma_timer_expiry(ide_drive_t * drive);

This is unused. Just as well, as it is static to a different file.

> +static struct pci_device_id sgiioc4_pci_tbl[] __devinitdata = {

This cannot be __devinitdata because the PCI table walking will look at it
even after __init code has been dropped. We've had oopses from this.

> --- /dev/null Wed Dec 31 16:00:00 1969
> +++ b/drivers/ide/pci/sgiioc4.h Thu Oct 2 16:53:34 2003

hrm, why does this file exist? It has only one include site, and should
not be included by other .c files anyway because it defines static storage.

It looks like the whole file should just be pasted into sgiioc4.c?

> +typedef volatile struct {
> + u32 timing_reg0;
> + u32 timing_reg1;
> + u32 low_mem_ptr;
> + u32 high_mem_ptr;
> + u32 low_mem_addr;
> + u32 high_mem_addr;
> + u32 dev_byte_count;
> + u32 mem_byte_count;
> + u32 status;
> +} ioc4_dma_regs_t;

Does this actually need to be volatile?


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/