mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-07 09:55:19 +02:00
Revert "ANDROID: scsi: ufs: Add hook to influence the UFS clock scaling policy"
This reverts commit 6a9ea89c0f
.
The hook is not used by any vendor, so remove it to help with merge
issues with future LTS releases.
If this is needed by any real user, it can easily be reverted to add it
back and then the symbol should be added to the abi list at the same
time to prevent it from being removed again later.
Bug: 203756332
Bug: 340381521
Cc: Nitin Rawat <quic_nitirawa@quicinc.com>
Cc: Sachin Gupta <quic_sachgupt@quicinc.com>
Cc: Ed Tsai <ed.tsai@mediatek.com>
Change-Id: Idb78f8f72053e6a65f8d0716f66c0a652f99c1bd
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
c573b85983
commit
0dcde40390
|
@ -161,7 +161,6 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_send_uic_command);
|
|||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_send_tm_command);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_check_int_errors);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_update_sdev);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ufs_clock_scaling);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_cgroup_attach);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_iommu_setup_dma_ops);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_iommu_alloc_insert_iova);
|
||||
|
|
|
@ -1396,8 +1396,6 @@ static int ufshcd_devfreq_target(struct device *dev,
|
|||
struct list_head *clk_list = &hba->clk_list_head;
|
||||
struct ufs_clk_info *clki;
|
||||
unsigned long irq_flags;
|
||||
bool force_out = false;
|
||||
bool force_scaling = false;
|
||||
|
||||
if (!ufshcd_is_clkscaling_supported(hba))
|
||||
return -EINVAL;
|
||||
|
@ -1430,11 +1428,8 @@ static int ufshcd_devfreq_target(struct device *dev,
|
|||
scale_up = *freq == clki->max_freq;
|
||||
if (!scale_up)
|
||||
*freq = clki->min_freq;
|
||||
|
||||
trace_android_vh_ufs_clock_scaling(hba, &force_out, &force_scaling, &scale_up);
|
||||
|
||||
/* Update the frequency */
|
||||
if (force_out || (!force_scaling && !ufshcd_is_devfreq_scaling_required(hba, scale_up))) {
|
||||
if (!ufshcd_is_devfreq_scaling_required(hba, scale_up)) {
|
||||
spin_unlock_irqrestore(hba->host->host_lock, irq_flags);
|
||||
ret = 0;
|
||||
goto out; /* no state change required */
|
||||
|
|
|
@ -96,9 +96,6 @@ DECLARE_HOOK(android_vh_ufs_err_check_ctrl,
|
|||
bool *err_check),
|
||||
TP_ARGS(hba, err_check));
|
||||
|
||||
DECLARE_HOOK(android_vh_ufs_clock_scaling,
|
||||
TP_PROTO(struct ufs_hba *hba, bool *force_out, bool *force_scaling, bool *scale_up),
|
||||
TP_ARGS(hba, force_out, force_scaling, scale_up));
|
||||
#endif /* _TRACE_HOOK_UFSHCD_H */
|
||||
/* This part must be outside protection */
|
||||
#include <trace/define_trace.h>
|
||||
|
|
Loading…
Reference in New Issue
Block a user