staging: vt6655: Fix interrupt race condition on device start up.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 24 Mar 2019 18:53:49 +0000 (18:53 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2019 20:54:17 +0000 (05:54 +0900)
commit3b9c2f2e0e99bb67c96abcb659b3465efe3bee1f
treeb3d1913403e6e78b74a616113846fb0f520b67d9
parent6a8ca24590a2136921439b376c926c11a6effc0e
staging: vt6655: Fix interrupt race condition on device start up.

It appears on some slower systems that the driver can find its way
out of the workqueue while the interrupt is disabled by continuous polling
by it.

Move MACvIntEnable to vnt_interrupt_work so that it is always enabled
on all routes out of vnt_interrupt_process.

Move MACvIntDisable so that the device doesn't keep polling the system
while the workqueue is being processed.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
CC: stable@vger.kernel.org # v4.2+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c