FROMLIST: scsi: ufs: Export ufshcd_uic_change_pwr_mode()
Export ufshcd_uic_change_pwr_mode() to allow vendors to use it for SoC-specific power mode change design limitation. Bug: 235550312 Link: https://lore.kernel.org/linux-scsi/20220609085751.25305-2-stanley.chu@mediatek.com/ Change-Id: I43a31489ec727199a0e40cfc99202fdfd0a16214 Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
This commit is contained in:
committed by
Carlos Llamas
parent
57388a13ab
commit
97d940cfa3
@@ -4056,7 +4056,7 @@ out_unlock:
|
|||||||
*
|
*
|
||||||
* Returns 0 on success, non-zero value on failure
|
* Returns 0 on success, non-zero value on failure
|
||||||
*/
|
*/
|
||||||
static int ufshcd_uic_change_pwr_mode(struct ufs_hba *hba, u8 mode)
|
int ufshcd_uic_change_pwr_mode(struct ufs_hba *hba, u8 mode)
|
||||||
{
|
{
|
||||||
struct uic_command uic_cmd = {0};
|
struct uic_command uic_cmd = {0};
|
||||||
int ret;
|
int ret;
|
||||||
@@ -4081,6 +4081,7 @@ static int ufshcd_uic_change_pwr_mode(struct ufs_hba *hba, u8 mode)
|
|||||||
out:
|
out:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(ufshcd_uic_change_pwr_mode);
|
||||||
|
|
||||||
int ufshcd_link_recovery(struct ufs_hba *hba)
|
int ufshcd_link_recovery(struct ufs_hba *hba)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1127,6 +1127,7 @@ extern int ufshcd_dme_get_attr(struct ufs_hba *hba, u32 attr_sel,
|
|||||||
u32 *mib_val, u8 peer);
|
u32 *mib_val, u8 peer);
|
||||||
extern int ufshcd_config_pwr_mode(struct ufs_hba *hba,
|
extern int ufshcd_config_pwr_mode(struct ufs_hba *hba,
|
||||||
struct ufs_pa_layer_attr *desired_pwr_mode);
|
struct ufs_pa_layer_attr *desired_pwr_mode);
|
||||||
|
extern int ufshcd_uic_change_pwr_mode(struct ufs_hba *hba, u8 mode);
|
||||||
|
|
||||||
/* UIC command interfaces for DME primitives */
|
/* UIC command interfaces for DME primitives */
|
||||||
#define DME_LOCAL 0
|
#define DME_LOCAL 0
|
||||||
|
|||||||
Reference in New Issue
Block a user