summaryrefslogtreecommitdiff
path: root/lib/greg
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-12-02 04:50:37 +0100
committercinap_lenrek <cinap_lenrek@gmx.de>2012-12-02 04:50:37 +0100
commit50c9769bbdffc4d9b8d5122d1956f6ee5fd9f043 (patch)
tree92d1228628c5510e4c7a9433919abc9fd3db16a0 /lib/greg
parenta9206fa5ada872e160e7aab664f6a5166c3f5551 (diff)
downloadplan9front-50c9769bbdffc4d9b8d5122d1956f6ee5fd9f043.tar.xz
sdiahci: fix staggered spinup wait loop, fix confusion
setting Asud in the cmd register is not needed, because Apwr is (Asud|Apod) already. the problem really was that the drive comes up with sstatus Spresent (001), so we never spun it up because (p->sstatus & Sphylink) == 0 was never met (Sphylink being a mask (011) overlaping Spresent bit). the spinup wait loop has to run only for the staggered spinup case (h->cap & Hss) and it should wait for the drive to be detected by the phy, not just cold presence detect.
Diffstat (limited to 'lib/greg')
0 files changed, 0 insertions, 0 deletions