提交 792d37af 编写于 作者: I Igor Plyatov 提交者: 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: NIgor Plyatov <plyatov@gmail.com>
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册