diff options
author | Subhash Jadavani <subhashj@codeaurora.org> | 2016-10-07 07:48:22 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-11-09 01:29:47 +0300 |
commit | 1e879e8fa9f62e18d79bfc339050bf8fed7a81e4 (patch) | |
tree | 4655d5b8aae72d3904c09ded4cfe5ead326ec051 /drivers/scsi/g_NCR5380.c | |
parent | fd37f66eb6801b6188155ce276d346754ac1799e (diff) | |
download | linux-1e879e8fa9f62e18d79bfc339050bf8fed7a81e4.tar.xz |
scsi: ufshcd: Fix possible unclocked register access
Vendor specific setup_clocks callback may require the clocks managed by
ufshcd driver to be ON. So if the vendor specific setup_clocks callback
is called while the required clocks are turned off, it could result into
unclocked register access.
To prevent possible unclock register access, this change adds one more
argument to setup_clocks callback to let it know whether it is called
pre/post the clock changes by core driver.
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Reviewed-by: Kiwoong Kim <kwmad.kim@samsung.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/g_NCR5380.c')
0 files changed, 0 insertions, 0 deletions