projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfcf9ee
)
pata_via: fix address setup timings underlocking
author
Bartlomiej Zolnierkiewicz
<
[email protected]
>
Mon, 18 Jan 2010 17:17:03 +0000
(18:17 +0100)
committer
Jeff Garzik
<
[email protected]
>
Mon, 1 Mar 2010 19:58:45 +0000
(14:58 -0500)
Correct via_do_set_mode() documentation while at it.
Signed-off-by: Bartlomiej Zolnierkiewicz <
[email protected]
>
Signed-off-by: Jeff Garzik <
[email protected]
>
drivers/ata/pata_via.c
patch
|
blob
|
history
diff --git
a/drivers/ata/pata_via.c
b/drivers/ata/pata_via.c
index 0d97890af6818ee116c81b2edb474a266ed2ab54..82e75a1f1b95c49c8d76f1410d59ffda23ba68c2 100644
(file)
--- a/
drivers/ata/pata_via.c
+++ b/
drivers/ata/pata_via.c
@@
-229,7
+229,7
@@
static int via_pre_reset(struct ata_link *link, unsigned long deadline)
/**
- * via_do_set_mode - set
initial PIO
mode data
+ * via_do_set_mode - set
transfer
mode data
* @ap: ATA interface
* @adev: ATA device
* @mode: ATA mode being programmed
@@
-273,7
+273,7
@@
static void via_do_set_mode(struct ata_port *ap, struct ata_device *adev, int mo
pci_read_config_byte(pdev, 0x4C, &setup);
setup &= ~(3 << shift);
- setup |=
clamp_val(t.setup, 1, 4) << shift; /* 1,4 or 1,4 - 1 FIXME */
+ setup |=
(clamp_val(t.setup, 1, 4) - 1) << shift;
pci_write_config_byte(pdev, 0x4C, setup);
}