mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
Merge "scsi: ufs: Don't skip UFS probe in emmc based bootdevice"
This commit is contained in:
commit
6e5219d5bc
2 changed files with 11 additions and 7 deletions
|
|
@ -38,6 +38,9 @@
|
|||
#define UFS_QCOM_DEFAULT_DBG_PRINT_EN \
|
||||
(UFS_QCOM_DBG_PRINT_REGS_EN | UFS_QCOM_DBG_PRINT_TEST_BUS_EN)
|
||||
|
||||
#define ANDROID_BOOT_DEV_MAX 30
|
||||
static char android_boot_dev[ANDROID_BOOT_DEV_MAX];
|
||||
|
||||
enum {
|
||||
TSTBUS_UAWM,
|
||||
TSTBUS_UARM,
|
||||
|
|
@ -975,9 +978,14 @@ static int ufs_qcom_link_startup_notify(struct ufs_hba *hba,
|
|||
int err = 0;
|
||||
struct ufs_qcom_host *host = ufshcd_get_variant(hba);
|
||||
struct phy *phy = host->generic_phy;
|
||||
struct device *dev = hba->dev;
|
||||
|
||||
switch (status) {
|
||||
case PRE_CHANGE:
|
||||
if (strlen(android_boot_dev) && strcmp(android_boot_dev, dev_name(dev))) {
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (ufs_qcom_cfg_timers(hba, UFS_PWM_G1, SLOWAUTO_MODE,
|
||||
0, true)) {
|
||||
dev_err(hba->dev, "%s: ufs_qcom_cfg_timers() failed\n",
|
||||
|
|
@ -2051,9 +2059,6 @@ static const struct reset_control_ops ufs_qcom_reset_ops = {
|
|||
.deassert = ufs_qcom_reset_deassert,
|
||||
};
|
||||
|
||||
#define ANDROID_BOOT_DEV_MAX 30
|
||||
static char android_boot_dev[ANDROID_BOOT_DEV_MAX];
|
||||
|
||||
#ifndef MODULE
|
||||
static int __init get_android_boot_dev(char *str)
|
||||
{
|
||||
|
|
@ -2640,9 +2645,6 @@ static int ufs_qcom_init(struct ufs_hba *hba)
|
|||
struct ufs_qcom_host *host;
|
||||
struct resource *res;
|
||||
|
||||
if (strlen(android_boot_dev) && strcmp(android_boot_dev, dev_name(dev)))
|
||||
return -ENODEV;
|
||||
|
||||
host = devm_kzalloc(dev, sizeof(*host), GFP_KERNEL);
|
||||
if (!host) {
|
||||
err = -ENOMEM;
|
||||
|
|
|
|||
|
|
@ -4687,7 +4687,9 @@ static int ufshcd_link_startup(struct ufs_hba *hba)
|
|||
|
||||
link_startup:
|
||||
do {
|
||||
ufshcd_vops_link_startup_notify(hba, PRE_CHANGE);
|
||||
ret = ufshcd_vops_link_startup_notify(hba, PRE_CHANGE);
|
||||
if (ret == -ENODEV)
|
||||
return ret;
|
||||
|
||||
ret = ufshcd_dme_link_startup(hba);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue