From: Amit Shah Date: Thu, 10 Jul 2014 10:12:35 +0000 (+0530) Subject: hwrng: virtio - ensure reads happen after successful probe X-Git-Tag: omap-for-v3.17/fixes-against-rc2~275^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e052dbf554610e2104c5a7518c4d8374bed701bb;p=pandora-kernel.git hwrng: virtio - ensure reads happen after successful probe The hwrng core asks for random data in the hwrng_register() call itself from commit d9e7972619. This doesn't play well with virtio -- the DRIVER_OK bit is only set by virtio core on a successful probe, and we're not yet out of our probe routine when this call is made. This causes the host to not acknowledge any requests we put in the virtqueue, and the insmod or kernel boot process just waits for data to arrive from the host, which never happens. CC: Kees Cook CC: Jason Cooper CC: Herbert Xu CC: # For v3.15+ Reviewed-by: Jason Cooper Signed-off-by: Amit Shah Signed-off-by: Herbert Xu --- Reading git-diff-tree failed