mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-09 07:52:07 +08:00
63 lines
1.7 KiB
Diff
63 lines
1.7 KiB
Diff
These two APIs will be used by host driver if they need a different
|
|
HCE process.
|
|
|
|
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
|
|
---
|
|
|
|
Changes in v5: None
|
|
Changes in v4: None
|
|
Changes in v3: None
|
|
Changes in v2: None
|
|
|
|
drivers/ufs/core/ufshcd.c | 6 ++++--
|
|
include/ufs/ufshcd.h | 2 ++
|
|
2 files changed, 6 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/ufs/core/ufshcd.c
|
|
+++ b/drivers/ufs/core/ufshcd.c
|
|
@@ -4039,7 +4039,7 @@ static int ufshcd_dme_link_startup(struc
|
|
*
|
|
* Return: 0 on success, non-zero value on failure.
|
|
*/
|
|
-static int ufshcd_dme_reset(struct ufs_hba *hba)
|
|
+int ufshcd_dme_reset(struct ufs_hba *hba)
|
|
{
|
|
struct uic_command uic_cmd = {
|
|
.command = UIC_CMD_DME_RESET,
|
|
@@ -4053,6 +4053,7 @@ static int ufshcd_dme_reset(struct ufs_h
|
|
|
|
return ret;
|
|
}
|
|
+EXPORT_SYMBOL_GPL(ufshcd_dme_reset);
|
|
|
|
int ufshcd_dme_configure_adapt(struct ufs_hba *hba,
|
|
int agreed_gear,
|
|
@@ -4078,7 +4079,7 @@ EXPORT_SYMBOL_GPL(ufshcd_dme_configure_a
|
|
*
|
|
* Return: 0 on success, non-zero value on failure.
|
|
*/
|
|
-static int ufshcd_dme_enable(struct ufs_hba *hba)
|
|
+int ufshcd_dme_enable(struct ufs_hba *hba)
|
|
{
|
|
struct uic_command uic_cmd = {
|
|
.command = UIC_CMD_DME_ENABLE,
|
|
@@ -4092,6 +4093,7 @@ static int ufshcd_dme_enable(struct ufs_
|
|
|
|
return ret;
|
|
}
|
|
+EXPORT_SYMBOL_GPL(ufshcd_dme_enable);
|
|
|
|
static inline void ufshcd_add_delay_before_dme_cmd(struct ufs_hba *hba)
|
|
{
|
|
--- a/include/ufs/ufshcd.h
|
|
+++ b/include/ufs/ufshcd.h
|
|
@@ -1361,6 +1361,8 @@ extern int ufshcd_system_thaw(struct dev
|
|
extern int ufshcd_system_restore(struct device *dev);
|
|
#endif
|
|
|
|
+extern int ufshcd_dme_reset(struct ufs_hba *hba);
|
|
+extern int ufshcd_dme_enable(struct ufs_hba *hba);
|
|
extern int ufshcd_dme_configure_adapt(struct ufs_hba *hba,
|
|
int agreed_gear,
|
|
int adapt_val);
|