summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2008-01-18 12:36:30 +0300
committerJeff Garzik <jeff@garzik.org>2008-01-23 13:24:16 +0300
commitc729072459446885c5c200137de1db32da5db4dc (patch)
treefeaa1b07055f397282704a4da0590a9b07b4415f /samples
parent8b09f0da0f873698a7e8b329dfb7b10fd42d5cdf (diff)
downloadlinux-c729072459446885c5c200137de1db32da5db4dc.tar.xz
ata_piix: implement SIDPR SCR access
For ICH8, SCRs can be accessed using index and data register pair located at BAR 5. This patch implements support for it such that PHY status, errors and hardreset are available for those controllers. This is the only case where two devices on a PATA channel have access to SCRs and creates a unique problem of mapping two SCRs to one link. Note that this is different from PMP case in that they aren't quite separate links - e.g. softreset resets both devices. This problem is worked around by merging the SCR values. To upper layer, it looks like there is a single link with one set of SCRs but with two devices. This works well enough for PHY event, error reporting and hardreset. Supporting hardreset is important because in rare cases SATA devices fail to recover without it after PHY errors. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions