FROMLIST: scsi: ufs: Export regulator functions
Export below regulator functions to allow vendors to customize regulator configuration in their own platforms. int ufshcd_populate_vreg(struct device *dev, const char *name, struct ufs_vreg **out_vreg); int ufshcd_get_vreg(struct device *dev, struct ufs_vreg *vreg); Bug: 235550312 Link: https://lore.kernel.org/linux-scsi/20220614141655.14409-10-stanley.chu@mediatek.com/ Change-Id: I9990d2e5eb580f160b0c8b4a95b687d754d0767b Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
This commit is contained in:
parent
df17a9b985
commit
cbd20786b6
|
@ -1987,7 +1987,9 @@
|
|||
__tracepoint_android_rvh_iommu_setup_dma_ops
|
||||
__tracepoint_android_rvh_is_cpu_allowed
|
||||
__tracepoint_android_rvh_migrate_queued_task
|
||||
__tracepoint_android_rvh_mmc_cache_card_properties
|
||||
__tracepoint_android_rvh_new_task_stats
|
||||
__tracepoint_android_rvh_partial_init
|
||||
__tracepoint_android_rvh_replace_next_task_fair
|
||||
__tracepoint_android_rvh_rto_next_cpu
|
||||
__tracepoint_android_rvh_sched_cpu_dying
|
||||
|
@ -2039,6 +2041,7 @@
|
|||
__tracepoint_android_vh_kswapd_per_node
|
||||
__tracepoint_android_vh_logbuf
|
||||
__tracepoint_android_vh_logbuf_pr_cont
|
||||
__tracepoint_android_vh_mmc_sdio_pm_flag_set
|
||||
__tracepoint_android_vh_printk_hotplug
|
||||
__tracepoint_android_vh_rproc_recovery
|
||||
__tracepoint_android_vh_rproc_recovery_set
|
||||
|
@ -2052,10 +2055,8 @@
|
|||
__tracepoint_android_vh_ufs_send_command
|
||||
__tracepoint_android_vh_ufs_send_tm_command
|
||||
__tracepoint_android_vh_ufs_send_uic_command
|
||||
__tracepoint_android_vh_ufs_update_sdev
|
||||
__tracepoint_android_vh_update_topology_flags_workfn
|
||||
__tracepoint_android_vh_mmc_sdio_pm_flag_set
|
||||
__tracepoint_android_rvh_partial_init
|
||||
__tracepoint_android_rvh_mmc_cache_card_properties
|
||||
__tracepoint_binder_transaction_received
|
||||
__tracepoint_cpu_frequency_limits
|
||||
__tracepoint_cpu_idle
|
||||
|
|
|
@ -108,8 +108,8 @@ static int ufshcd_parse_clock_info(struct ufs_hba *hba)
|
|||
}
|
||||
|
||||
#define MAX_PROP_SIZE 32
|
||||
static int ufshcd_populate_vreg(struct device *dev, const char *name,
|
||||
struct ufs_vreg **out_vreg)
|
||||
int ufshcd_populate_vreg(struct device *dev, const char *name,
|
||||
struct ufs_vreg **out_vreg)
|
||||
{
|
||||
char prop_name[MAX_PROP_SIZE];
|
||||
struct ufs_vreg *vreg = NULL;
|
||||
|
@ -144,6 +144,7 @@ static int ufshcd_populate_vreg(struct device *dev, const char *name,
|
|||
*out_vreg = vreg;
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(ufshcd_populate_vreg);
|
||||
|
||||
/**
|
||||
* ufshcd_parse_regulator_info - get regulator info from device tree
|
||||
|
|
|
@ -32,5 +32,7 @@ void ufshcd_init_pwr_dev_param(struct ufs_dev_params *dev_param);
|
|||
int ufshcd_pltfrm_init(struct platform_device *pdev,
|
||||
const struct ufs_hba_variant_ops *vops);
|
||||
void ufshcd_pltfrm_shutdown(struct platform_device *pdev);
|
||||
int ufshcd_populate_vreg(struct device *dev, const char *name,
|
||||
struct ufs_vreg **out_vreg);
|
||||
|
||||
#endif /* UFSHCD_PLTFRM_H_ */
|
||||
|
|
|
@ -8366,7 +8366,7 @@ static int ufshcd_setup_hba_vreg(struct ufs_hba *hba, bool on)
|
|||
return ufshcd_toggle_vreg(hba->dev, info->vdd_hba, on);
|
||||
}
|
||||
|
||||
static int ufshcd_get_vreg(struct device *dev, struct ufs_vreg *vreg)
|
||||
int ufshcd_get_vreg(struct device *dev, struct ufs_vreg *vreg)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
|
@ -8382,6 +8382,7 @@ static int ufshcd_get_vreg(struct device *dev, struct ufs_vreg *vreg)
|
|||
out:
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(ufshcd_get_vreg);
|
||||
|
||||
static int ufshcd_init_vreg(struct ufs_hba *hba)
|
||||
{
|
||||
|
|
|
@ -1251,6 +1251,7 @@ void ufshcd_map_desc_id_to_length(struct ufs_hba *hba, enum desc_idn desc_id,
|
|||
int *desc_length);
|
||||
|
||||
u32 ufshcd_get_local_unipro_ver(struct ufs_hba *hba);
|
||||
int ufshcd_get_vreg(struct device *dev, struct ufs_vreg *vreg);
|
||||
|
||||
int ufshcd_send_uic_cmd(struct ufs_hba *hba, struct uic_command *uic_cmd);
|
||||
|
||||
|
|
Loading…
Reference in New Issue