Skip to content

Commit 792d37a

Browse files
plyatovjgarzik
authored andcommitted
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: Igor Plyatov <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
1 parent 9719b8f commit 792d37a

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

drivers/ata/pata_at91.c

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,18 @@ struct at91_ide_info {
5050
void __iomem *alt_addr;
5151
};
5252

53-
static const struct ata_timing initial_timing =
54-
{XFER_PIO_0, 70, 290, 240, 600, 165, 150, 600, 0};
53+
static const struct ata_timing initial_timing = {
54+
.mode = XFER_PIO_0,
55+
.setup = 70,
56+
.act8b = 290,
57+
.rec8b = 240,
58+
.cyc8b = 600,
59+
.active = 165,
60+
.recover = 150,
61+
.dmack_hold = 0,
62+
.cycle = 600,
63+
.udma = 0
64+
};
5565

5666
static unsigned long calc_mck_cycles(unsigned long ns, unsigned long mck_hz)
5767
{

0 commit comments

Comments
 (0)