Skip to content
Commit 65dacbf0 authored by Rick Farrington's avatar Rick Farrington Committed by Wenlin Kang
Browse files

drivers: octeontx2-pcicons: cleanup console de-initialization



commit 9f1b89c2ef9c755d825f42269d21a72e379dc0c6 from
git@git.assembla.com:cavium/WindRiver.linux.git

Move the de-initialization code from 'remove' to 'shutdown' in
order to accommodate the driver being built-in to the kernel
(i.e., the normal case).  If the driver is 'built-in', then the
'remove' function is never called.  This is technically more
correct and allows for improved inter-operation with U-Boot
console driver.

Add 'flushing' wait to the pci console de-initialization in
order to allow all pending data to be read by an attached host.

Use a more-correct timer deletion API to prevent races.

Signed-off-by: default avatarRick Farrington <rfarrington@marvell.com>
Change-Id: I98ea5d96b49b526dae8e704586e1e50c516ccf82
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/92902


Reviewed-by: default avatarChandrakala Chavva <cchavva@marvell.com>
Reviewed-by: default avatarWojciech Zmuda <wzmuda@marvell.com>
Tested-by: default avatarsa_ip-sw-jenkins <sa_ip-sw-jenkins@marvell.com>
Signed-off-by: default avatarWenlin Kang <wenlin.kang@windriver.com>
parent 9ffcc3c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment