]> git.baikalelectronics.ru Git - kernel.git/commit
HID: intel-ish-hid: Fix driver reinit failure
authorEven Xu <even.xu@intel.com>
Fri, 21 Oct 2016 22:48:40 +0000 (15:48 -0700)
committerJiri Kosina <jkosina@suse.cz>
Sat, 5 Nov 2016 14:57:38 +0000 (15:57 +0100)
commit9fe0cc1a5d30151eb8cf0801d4e90349c6490a88
tree8ba12a61d738607ee435587d70a8afa08ee9f4f3
parent9d0eee4bd95bcc0f9b7617e2f7688bf87a9f027e
HID: intel-ish-hid: Fix driver reinit failure

When built as a module, modprobe followed by rmmod can fail because
DMA was still active. So to fix this, DMA needs to be disabled during
module exit.

This change disables DMA during modules exit and change the ISH PCI
device status to D3.

Signed-off-by: Even Xu <even.xu@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/intel-ish-hid/ipc/ipc.c