OSDN Git Service

scsi: ufshcd: Flush exception event before suspend
authorSayali Lokhande <sayalil@codeaurora.org>
Wed, 23 Aug 2017 14:14:14 +0000 (19:44 +0530)
committerSayali Lokhande <sayalil@codeaurora.org>
Mon, 25 Sep 2017 06:30:12 +0000 (12:00 +0530)
commite6b1f120204846d0cf20da5f8c5db9da233bd84c
tree44fa2b619776fdccf2479c6af4da6d2cc8221aec
parentb95d667366cba716dfd69bfdb26e5a31c32f0c4b
scsi: ufshcd: Flush exception event before suspend

Exception event can be raised by the device when system
suspend is in progress. This will result in unclocked
register access in exception event handler as clocks will
be turned off during suspend. This change makes sure to flush
exception event handler work in suspend before disabling
clocks to avoid unclocked register access issue.

Change-Id: I5a089a0387790a12f4cc3213c75e9677467a2a07
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
drivers/scsi/ufs/ufshcd.c