mmc: core: remove redundant HPI enable routine.
Roger Hsieh [Mon, 18 Mar 2013 04:57:45 +0000 (12:57 +0800)]
It's unnecessary to call HPI enable twice. Remove 1st copy for
code clean-up.

Bug 1251431

Change-Id: I891c9c4f6110e41864edc291d71a9c6a99112641
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/210266
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

drivers/mmc/core/mmc.c

index a064479..db0142c 100644 (file)
@@ -1081,22 +1081,6 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
        }
 
        /*
-        * Enable HPI feature (if supported)
-        */
-       if (card->ext_csd.hpi) {
-               err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
-                       EXT_CSD_HPI_MGMT, 1, 0);
-               if (err && err != -EBADMSG)
-                       goto free_card;
-               if (err) {
-                       pr_warning("%s: Enabling HPI failed\n",
-                                  mmc_hostname(card->host));
-                       err = 0;
-               } else
-                       card->ext_csd.hpi_en = 1;
-       }
-
-       /*
         * Enable Background ops feature (if supported)
         */
        if (card->ext_csd.bk_ops && (card->host->caps2 & MMC_CAP2_BKOPS)) {