Skip to contentSkip to conversation

mfd: omap: cleanup: use macros to check for TLL mode

PATCH In review Kishon Vijay Abraham I 4 participants 4 messages Sep 14, 2011 – Oct 6, 2011 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: omap: cleanup: use macros to check for TLL mode

In one particular place the old form of checking for TLL mode is used. This patch fixes the same by using macros to check for TLL mode.

---
patch is created on top of runtime patches from keshava hsoted at
git://gitorious.org/~kmg/mirrors/kmg-usbhs-pm.git
branch:kmg-pm-1

 drivers/mfd/omap-usb-host.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mfd/omap-usb-host.c +1 -1
index e6f3b01..d43ca08 100644
@@ -401,7 +401,7 @@ static void usbhs_omap_tll_init(struct device *dev, u8 tll_channel_count)
 			reg |= ohci_omap3_fslsmode(pdata->port_mode[i])
 				<< OMAP_TLL_CHANNEL_CONF_FSLSMODE_SHIFT;
 			reg |= OMAP_TLL_CHANNEL_CONF_CHANMODE_FSLS;
-		} else if (pdata->port_mode[i] == OMAP_EHCI_PORT_MODE_TLL) {
+		} else if (is_ehci_tll_mode(pdata->port_mode[i])) {
 
 			/* Disable AutoIdle, BitStuffing and use SDR Mode */
 			reg &= ~(OMAP_TLL_CHANNEL_CONF_UTMIAUTOIDLE
Signature · 6 lines
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw
Quoted 23 lines · Kishon Vijay Abraham I

In one particular place the old form of checking for TLL mode is used. This patch fixes the same by using macros to check for TLL mode.

---
patch is created on top of runtime patches from keshava hsoted at
git://gitorious.org/~kmg/mirrors/kmg-usbhs-pm.git
branch:kmg-pm-1
 drivers/mfd/omap-usb-host.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mfd/omap-usb-host.c +1 -1
index e6f3b01..d43ca08 100644
@@ -401,7 +401,7 @@ static void usbhs_omap_tll_init(struct device *dev, u8 tll_channel_count)
                        reg |= ohci_omap3_fslsmode(pdata->port_mode[i])
                                << OMAP_TLL_CHANNEL_CONF_FSLSMODE_SHIFT;
                        reg |= OMAP_TLL_CHANNEL_CONF_CHANMODE_FSLS;
-               } else if (pdata->port_mode[i] == OMAP_EHCI_PORT_MODE_TLL) {
+               } else if (is_ehci_tll_mode(pdata->port_mode[i])) {
 
                        /* Disable AutoIdle, BitStuffing and use SDR Mode */
Quoted 5 lines

                       reg &= ~(OMAP_TLL_CHANNEL_CONF_UTMIAUTOIDLE --
1.7.0.4

is this rebased to my pm branch of runtime pm adaptations?

regards
keshava
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

yes. I've mentioned it after the signed-off by section..

Quoted 32 lines · Keshava
Quoted 23 lines · Kishon Vijay Abraham I

In one particular place the old form of checking for TLL mode is used. This patch fixes the same by using macros to check for TLL mode.

---
patch is created on top of runtime patches from keshava hsoted at
git://gitorious.org/~kmg/mirrors/kmg-usbhs-pm.git
branch:kmg-pm-1
 drivers/mfd/omap-usb-host.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mfd/omap-usb-host.c +1 -1
index e6f3b01..d43ca08 100644
@@ -401,7 +401,7 @@ static void usbhs_omap_tll_init(struct device *dev, u8 tll_channel_count)
                        reg |= ohci_omap3_fslsmode(pdata->port_mode[i])
                                << OMAP_TLL_CHANNEL_CONF_FSLSMODE_SHIFT;
                        reg |= OMAP_TLL_CHANNEL_CONF_CHANMODE_FSLS;
-               } else if (pdata->port_mode[i] == OMAP_EHCI_PORT_MODE_TLL) {
+               } else if (is_ehci_tll_mode(pdata->port_mode[i])) {
 
                        /* Disable AutoIdle, BitStuffing and use SDR Mode */
Quoted 5 lines

                       reg &= ~(OMAP_TLL_CHANNEL_CONF_UTMIAUTOIDLE --
1.7.0.4

is this rebased to my pm branch of runtime pm adaptations?

Quoted 3 lines

regards
keshava

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1316010433-6024-1-git-send-email-kishon-l0cyMroinI0@public.gmane.org

#4 lore raw
Quoted 4 lines · Kishon Vijay Abraham I

In one particular place the old form of checking for TLL mode is used. This patch fixes the same by using macros to check for TLL mode.

looks good to me, but this should go via Samuel Ortiz's MFD tree.

Signature · 1 line
balbi