kernel-ark/drivers/scsi/ufs
Akinobu Mita 97cd6805ac ufs: ensure clk gating work is finished before module unloading
When dynamic clk gating feature is enabled, delayed workqueue machanism
is used in order to detect certain period of inactivity.  But there is no
guarantee that scheduled gating work is completed before module unloading.
So it can cause kernel crash by accessing memory after it was freed.

Fix it by cancelling clk gating and ungating works and ensure that its
execution is finished before module unloading.

Signed-off-by: Akinobu Mita <mita@fixstars.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2014-11-26 11:32:32 +01:00
..
Kconfig ufs: Add support for clock scaling using devfreq framework 2014-10-01 13:11:25 +02:00
Makefile [SCSI] ufs: Add Platform glue driver for ufshcd 2013-05-02 16:16:50 -07:00
ufs.h ufs: add UFS power management support 2014-10-01 13:11:23 +02:00
ufshcd-pci.c ufs: add UFS power management support 2014-10-01 13:11:23 +02:00
ufshcd-pltfrm.c scsi: ufs: fix static checker warning in ufshcd_parse_clock_info 2014-11-20 17:47:41 +01:00
ufshcd.c ufs: ensure clk gating work is finished before module unloading 2014-11-26 11:32:32 +01:00
ufshcd.h ufs: fix reference counting of W-LUs 2014-11-20 17:01:31 +01:00
ufshci.h ufs: add UFS power management support 2014-10-01 13:11:23 +02:00
unipro.h ufs: definitions for phy interface 2014-10-01 13:11:26 +02:00