Re: [PATCH] pata_ns87415: Initial cut at 87415/87560 IDE support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just some quick review and build test on PARISC.

On Wed, Sep 26, 2007 at 03:27:31PM +0100, Alan Cox wrote:
> +	tristate "Nat Semi NS87410 PATA support (Experimental)"

NS87415 shirley?

> + *    pata_ns87415.c - NS87415 (non PARISC) PATA
> + *	Test PARISC SuperIO

works fine. :)

> +static u8 ns87560_read_buggy(unsigned long port)
> +{
> +	int retries = SUPERIO_IDE_MAX_RETRIES;
> +	do {
> +		tmp = ioread8(port);
> +		if (tmp != 0)
> +			return tmp;
> +		udelay(50);
> +	} while(retries-- > 0);
> +	return tmp;
> +}

u8 tmp is undefined, and port should be void __iomem * if we're going to
use pci-iomap accessors.

Works good otherwise, I was able to mount and copy a cd. Patch attached.
Queued a patch to move SUPERIO_IDE_MAX_RETRIES to <asm/superio.h>.

Cheers,
	Kyle

diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig
index 5a5e677..fb460a6 100644
--- a/drivers/ata/Kconfig
+++ b/drivers/ata/Kconfig
@@ -433,7 +433,7 @@ config PATA_NS87410
 	  If unsure, say N.
 
 config PATA_NS87415
-	tristate "Nat Semi NS87410 PATA support (Experimental)"
+	tristate "Nat Semi NS87415 PATA support (Experimental)"
 	depends on PCI && EXPERIMENTAL
 	help
 	  This option enables support for the National Semiconductor
diff --git a/drivers/ata/pata_ns87415.c b/drivers/ata/pata_ns87415.c
index 239628d..cfe4ef2 100644
--- a/drivers/ata/pata_ns87415.c
+++ b/drivers/ata/pata_ns87415.c
@@ -222,8 +222,9 @@ static int ns87415_check_atapi_dma(struct ata_queued_cmd *qc)
  *	Work around chipset problems in the 87560 SuperIO chip
  */
 
-static u8 ns87560_read_buggy(unsigned long port)
+static u8 ns87560_read_buggy(void __iomem *port)
 {
+	u8 tmp;
 	int retries = SUPERIO_IDE_MAX_RETRIES;
 	do {
 		tmp = ioread8(port);
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux