diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-12-02 04:50:37 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-12-02 04:50:37 +0100 |
commit | 50c9769bbdffc4d9b8d5122d1956f6ee5fd9f043 (patch) | |
tree | 92d1228628c5510e4c7a9433919abc9fd3db16a0 /lib/greg | |
parent | a9206fa5ada872e160e7aab664f6a5166c3f5551 (diff) | |
download | plan9front-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