mei: me: fix irq number stored in hw struct
authorBenjamin Lee <ben@b1c1l1.com>
Fri, 17 Apr 2020 18:45:38 +0000 (11:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:34:54 +0000 (16:34 +0200)
commit7db83c2abf2a7bd0f4551c523003ce752724c68b
tree56cca0bce597891cdc7bede97739169328340d13
parentfbca60c3db3d2c2b843c4c9797315ab8a8777221
mei: me: fix irq number stored in hw struct

commit fec874a81b3ec280b91034d892a432fc71fd1522 upstream.

Commit 261b3e1f2a01 ("mei: me: store irq number in the hw struct.")
stores the irq number in the hw struct before MSI is enabled.  This
caused a regression for mei_me_synchronize_irq() waiting for the wrong
irq number.  On my laptop this causes a hang on shutdown.  Fix the issue
by storing the irq number after enabling MSI.

Fixes: 261b3e1f2a01 ("mei: me: store irq number in the hw struct.")
Signed-off-by: Benjamin Lee <ben@b1c1l1.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200417184538.349550-1-ben@b1c1l1.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/pci-me.c