]> git.baikalelectronics.ru Git - kernel.git/commit
thunderbolt: Add trivial .shutdown
authorMaxim Levitsky <mlevitsk@redhat.com>
Wed, 20 May 2020 18:52:21 +0000 (21:52 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 25 May 2020 08:48:03 +0000 (11:48 +0300)
commit87bc8d76ed9f04fb2be9324dacc81696e646c9b4
tree56503bd7a254bf02c7cc9dea5a3643860897827d
parent99aa253182fa11a52f178382977a9c6485ed733f
thunderbolt: Add trivial .shutdown

On my machine, a kexec with this driver loaded in the old kernel causes
a very long delay on boot in the kexec'ed kernel, most likely due to
unclean shutdown prior to that.

Unloading thunderbolt driver prior to kexec allows kexec to work as fast
as regular kernel boot, as well as adding this .shutdown pointer.

Shutting a device prior to the shutdown completely is always a good idea
IMHO to help with kexec, and this one-liner patch implements it.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/nhi.c