Commit 792d37af authored by Igor Plyatov's avatar Igor Plyatov Committed by Jeff Garzik

ata: pata_at91.c bugfix for initial_timing initialisation

The "struct ata_timing" must contain 10 members, but ".dmack_hold" member was
forgotten for "initial_timing" initialisation. This patch fixes such a problem.
Signed-off-by: default avatarIgor Plyatov <plyatov@gmail.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent 9719b8f5
...@@ -50,8 +50,18 @@ struct at91_ide_info { ...@@ -50,8 +50,18 @@ struct at91_ide_info {
void __iomem *alt_addr; void __iomem *alt_addr;
}; };
static const struct ata_timing initial_timing = static const struct ata_timing initial_timing = {
{XFER_PIO_0, 70, 290, 240, 600, 165, 150, 600, 0}; .mode = XFER_PIO_0,
.setup = 70,
.act8b = 290,
.rec8b = 240,
.cyc8b = 600,
.active = 165,
.recover = 150,
.dmack_hold = 0,
.cycle = 600,
.udma = 0
};
static unsigned long calc_mck_cycles(unsigned long ns, unsigned long mck_hz) static unsigned long calc_mck_cycles(unsigned long ns, unsigned long mck_hz)
{ {
......
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