Commit 9ffd3606 authored by Jeremy Higdon's avatar Jeremy Higdon Committed by Jeff Garzik

[PATCH] sata_vsc initialization fix

parent 990e3971
...@@ -44,6 +44,8 @@ ...@@ -44,6 +44,8 @@
#define VSC_SATA_TF_CTL_OFFSET 0x29 #define VSC_SATA_TF_CTL_OFFSET 0x29
/* DMA base */ /* DMA base */
#define VSC_SATA_UP_DESCRIPTOR_OFFSET 0x64
#define VSC_SATA_UP_DATA_BUFFER_OFFSET 0x6C
#define VSC_SATA_DMA_CMD_OFFSET 0x70 #define VSC_SATA_DMA_CMD_OFFSET 0x70
/* SCRs base */ /* SCRs base */
...@@ -234,6 +236,8 @@ static void __devinit vsc_sata_setup_port(struct ata_ioports *port, unsigned lon ...@@ -234,6 +236,8 @@ static void __devinit vsc_sata_setup_port(struct ata_ioports *port, unsigned lon
port->ctl_addr = base + VSC_SATA_TF_CTL_OFFSET; port->ctl_addr = base + VSC_SATA_TF_CTL_OFFSET;
port->bmdma_addr = base + VSC_SATA_DMA_CMD_OFFSET; port->bmdma_addr = base + VSC_SATA_DMA_CMD_OFFSET;
port->scr_addr = base + VSC_SATA_SCR_STATUS_OFFSET; port->scr_addr = base + VSC_SATA_SCR_STATUS_OFFSET;
writel(0, base + VSC_SATA_UP_DESCRIPTOR_OFFSET);
writel(0, base + VSC_SATA_UP_DATA_BUFFER_OFFSET);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment