@@ -4019,7 +4019,7 @@ static void ufshcd_host_memory_configure(struct ufs_hba *hba)
*
* Return: 0 on success, non-zero value on failure.
*/
-static int ufshcd_dme_link_startup(struct ufs_hba *hba)
+int ufshcd_dme_link_startup(struct ufs_hba *hba)
{
struct uic_command uic_cmd = {
.command = UIC_CMD_DME_LINK_STARTUP,
@@ -4032,6 +4032,8 @@ static int ufshcd_dme_link_startup(struct ufs_hba *hba)
"dme-link-startup: error code %d\n", ret);
return ret;
}
+EXPORT_SYMBOL_GPL(ufshcd_dme_link_startup);
+
/**
* ufshcd_dme_reset - UIC command for DME_RESET
* @hba: per adapter instance
@@ -1432,6 +1432,7 @@ int ufshcd_read_string_desc(struct ufs_hba *hba, u8 desc_index,
void ufshcd_hold(struct ufs_hba *hba);
void ufshcd_release(struct ufs_hba *hba);
+int ufshcd_dme_link_startup(struct ufs_hba *hba);
void ufshcd_clkgate_delay_set(struct device *dev, unsigned long value);
int ufshcd_get_vreg(struct device *dev, struct ufs_vreg *vreg);
Export it for host drivers. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> --- Changes in v2: None drivers/ufs/core/ufshcd.c | 4 +++- include/ufs/ufshcd.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-)