]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sunxi: ahci: Add a delay after enabling target power
authorHans de Goede <hdegoede@redhat.com>
Fri, 14 Nov 2014 15:27:07 +0000 (16:27 +0100)
committerHans de Goede <hdegoede@redhat.com>
Tue, 25 Nov 2014 12:38:46 +0000 (13:38 +0100)
commitf222c73afaaa2430f700f56e7f3b6d8889b96e8c
treeb0999fe6d70c2da114e8c36fd9623557bd59f86b
parent86b4909340a272a1a040db61565f639d845b170f
sunxi: ahci: Add a delay after enabling target power

If the target power is connected through a gpio, then give the target some
time to power up before continuing with ahci / sata probing, this avoids
link timeouts, without penalizing other boards where there is no target
power gpio.

Why 500 ms ? I started with 200, that was not enough, then I went to 500 which
worked, lowering it to 350 broke things again, so 500 seems the minimum my
vertex2 needs to be ready to get probed.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
board/sunxi/ahci.c