Messages in this thread | | | Date | Thu, 25 Jun 2015 13:21:43 -0300 | From | Henrique de Moraes Holschuh <> | Subject | Re: Stop SSD from waiting for "Spinning up disk..." |
| |
On Mon, 22 Jun 2015, Jeff Chua wrote: > There's no need to wait for disk spin-up for USB SSD devices. This patch
No, you have to, instead, wait for SSD firmware startup.
And looking at the contents of sd_spinup_disk(), I don't think it is safe to just skip it, either. It would be be better to call it sd_start_device()...
sd_spinup_disk() should be really fast on anything that properly implements TEST_UNIT_READY and returns "ok, I am ready" when it doesn't need further waits or START_STOP, etc...
Anyway, if you get to see the "Spinning up disk..." printk, your unit did not report it was ready, and sd_spinup_disk tried to issue a START_STOP command to signal it to get ready for real work.
There's at least one msleep(1000) in the START_STOP path, though.
-- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh
| |