scsi: ufs: core: Export ufshcd_dme_reset() and ufshcd_dme_enable()
These two APIs will be used by glue driver if they need a different HCE process. Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Link: https://lore.kernel.org/r/1738736156-119203-6-git-send-email-shawn.lin@rock-chips.com Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
d90e920237
commit
6b070711b7
@@ -4005,7 +4005,7 @@ static int ufshcd_dme_link_startup(struct ufs_hba *hba)
|
|||||||
*
|
*
|
||||||
* Return: 0 on success, non-zero value on failure.
|
* 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 = {
|
struct uic_command uic_cmd = {
|
||||||
.command = UIC_CMD_DME_RESET,
|
.command = UIC_CMD_DME_RESET,
|
||||||
@@ -4019,6 +4019,7 @@ static int ufshcd_dme_reset(struct ufs_hba *hba)
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(ufshcd_dme_reset);
|
||||||
|
|
||||||
int ufshcd_dme_configure_adapt(struct ufs_hba *hba,
|
int ufshcd_dme_configure_adapt(struct ufs_hba *hba,
|
||||||
int agreed_gear,
|
int agreed_gear,
|
||||||
@@ -4044,7 +4045,7 @@ EXPORT_SYMBOL_GPL(ufshcd_dme_configure_adapt);
|
|||||||
*
|
*
|
||||||
* Return: 0 on success, non-zero value on failure.
|
* 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 = {
|
struct uic_command uic_cmd = {
|
||||||
.command = UIC_CMD_DME_ENABLE,
|
.command = UIC_CMD_DME_ENABLE,
|
||||||
@@ -4058,6 +4059,7 @@ static int ufshcd_dme_enable(struct ufs_hba *hba)
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(ufshcd_dme_enable);
|
||||||
|
|
||||||
static inline void ufshcd_add_delay_before_dme_cmd(struct ufs_hba *hba)
|
static inline void ufshcd_add_delay_before_dme_cmd(struct ufs_hba *hba)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1368,6 +1368,8 @@ extern int ufshcd_system_thaw(struct device *dev);
|
|||||||
extern int ufshcd_system_restore(struct device *dev);
|
extern int ufshcd_system_restore(struct device *dev);
|
||||||
#endif
|
#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,
|
extern int ufshcd_dme_configure_adapt(struct ufs_hba *hba,
|
||||||
int agreed_gear,
|
int agreed_gear,
|
||||||
int adapt_val);
|
int adapt_val);
|
||||||
|
|||||||
Reference in New Issue
Block a user