mfd: omap: cleanup: use macros to check for TLL mode
Subsystems (2)
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 atgit://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
@@ -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
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.
Signed-off-by Kishon Vijay Abraham I <[email protected]>---
patch is created on top of runtime patches from keshava hsoted atgit://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@@ -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
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.
Signed-off-by Kishon Vijay Abraham I <[email protected]>---
patch is created on top of runtime patches from keshava hsoted atgit://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@@ -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.4is 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
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.
Signed-off-by Kishon Vijay Abraham I <[email protected]>
looks good to me, but this should go via Samuel Ortiz's MFD tree.
Signature · 1 line
balbi