]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[POWERPC] cell/PS3: Ignore storage devices that are still being probed
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Thu, 6 Sep 2007 16:14:57 +0000 (18:14 +0200)
committerPaul Mackerras <paulus@samba.org>
Mon, 10 Sep 2007 18:30:37 +0000 (04:30 +1000)
commitd51dd3de87026cb0ea1ea5f873f08e930053bfc5
tree768930abcee760f9e68f6cca1f7feaf970b7f7f6
parentef8034d01a080e81488e9cf74052acf1e2a37bd0
[POWERPC] cell/PS3: Ignore storage devices that are still being probed

On PS3, A storage device may show up in the repository before the hypervisor
has finished probing:
  - If its type is not yet known, it shows up as PS3_DEV_TYPE_STOR_DUMMY,
  - If its regions are being probed, it shows up as having zero regions.
If any of these happen, consider the device not yet present.  The storage
probe thread will retry later.

This fixes the timing-dependent problem where a kernel booted from FLASH ROM
sometimes cannot find the hard disk.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Acked-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/ps3/platform.h
arch/powerpc/platforms/ps3/repository.c