]> www.infradead.org Git - users/jedix/linux-maple.git/commit
virtio:rng: Virtio RNG devices need to be re-registered after suspend/resume
authorJim Quigley <Jim.Quigley@oracle.com>
Fri, 27 Oct 2017 11:49:00 +0000 (12:49 +0100)
committerJim Quigley <Jim.Quigley@oracle.com>
Wed, 1 Nov 2017 10:57:51 +0000 (06:57 -0400)
commitade05880bb358351c07af3a795b5f8b01db24d38
treef607da53c3be92289f8e254e4afc6c22b7da0e5c
parentb341a8a10cb20964f543c7d37c37e5e543253483
virtio:rng: Virtio RNG devices need to be re-registered after suspend/resume

The patch for

commit: 5c06273401f2eb7b290cadbae18ee00f8f65e893
Author: Amit Shah <amit.shah@redhat.com>
Date:   Sun Jul 27 07:34:01 2014 +0930

    virtio: rng: delay hwrng_register() till driver is ready

moved the call to hwrng_register() out of the probe routine into the scan
routine. We need to call hwrng_register() after a suspend/restore cycle
to re-register the device, but the scan function is not invoked for the
restore. Add the call to hwrng_register() to virtio_restore() instead.

Orabug: 26989940

Reviewed-by: Liam Merwick <Liam.Merwick@oracle.com>
Signed-off-by: Jim Quigley <Jim.Quigley@oracle.com>
drivers/char/hw_random/virtio-rng.c