]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00286149-5: Revert "ENGR00277805-6"
authorPeter Chen <peter.chen@freescale.com>
Tue, 5 Nov 2013 05:33:18 +0000 (13:33 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:38 +0000 (10:06 +0200)
This reverts commit 4e9bcf000f717cd17faef109eb6874f3d6323cea.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
drivers/usb/chipidea/bits.h
drivers/usb/chipidea/core.c
include/linux/usb/chipidea.h

index ca57e3dcd3d57b10412e4aa1dcafad9a772ad3cc..6e8e33dbe60d59f22309c08ee3b4dc012621e36b 100644 (file)
@@ -53,7 +53,6 @@
 #define PORTSC_HSP            BIT(9)
 #define PORTSC_PP             BIT(12)
 #define PORTSC_PTC            (0x0FUL << 16)
-#define PORTSC_PHCD(d)       ((d) ? BIT(22) : BIT(23))
 /* PTS and PTW for non lpm version only */
 #define PORTSC_PFSC           BIT(24)
 #define PORTSC_PTS(d)                                          \
index 20aa600e0bfeb76edb65dd55f3d97af9085d2dbf..619d13e29995dc9ac5010081068528b0f4932d91 100644 (file)
@@ -539,20 +539,6 @@ void ci_hdrc_remove_device(struct platform_device *pdev)
 }
 EXPORT_SYMBOL_GPL(ci_hdrc_remove_device);
 
-void ci_hdrc_enter_lpm(struct platform_device *pdev, bool enable)
-{
-       struct ci_hdrc *ci = platform_get_drvdata(pdev);
-       enum ci_hw_regs reg = ci->hw_bank.lpm ? OP_DEVLC : OP_PORTSC;
-
-       if (enable)
-               hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm),
-                               PORTSC_PHCD(ci->hw_bank.lpm));
-       else
-               hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm),
-                               0);
-}
-EXPORT_SYMBOL_GPL(ci_hdrc_enter_lpm);
-
 static inline void ci_role_destroy(struct ci_hdrc *ci)
 {
        ci_hdrc_gadget_destroy(ci);
index 1eaa2c3a8101053871c2c01418977b44d889eef1..bbe779f640bed0c91869d527b67d9d797b8441b7 100644 (file)
@@ -43,5 +43,4 @@ struct platform_device *ci_hdrc_add_device(struct device *dev,
 /* Remove ci hdrc device */
 void ci_hdrc_remove_device(struct platform_device *pdev);
 
-void ci_hdrc_enter_lpm(struct platform_device *pdev, bool enable);
 #endif