From: Geert Uytterhoeven Date: Fri, 18 Jan 2008 20:30:40 +0000 (+1100) Subject: [POWERPC] PS3: Use the HVs storage device notification mechanism properly X-Git-Tag: v2.6.25-rc1~1131^2~88 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4cb2941f855993410ca456ef998888434e86098;p=pandora-kernel.git [POWERPC] PS3: Use the HVs storage device notification mechanism properly The PS3 hypervisor has a storage device notification mechanism to wait until a storage device is ready. Unfortunately the storage device probing code used this mechanism in an incorrect way, needing a polling loop and handling of devices that are not yet ready. This change corrects this by: - First waiting for the reception of an asynchronous notification that a new storage device became ready, - Then looking up the storage device in the device repository. On shutdown, the storage probe thread is stopped and the storage notification device is closed using a reboot notifier. Signed-off-by: Geert Uytterhoeven Signed-off-by: Geoff Levand Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed