Comment 3 for bug 709245

Revision history for this message
Mian Yousaf Kaukab (mian-yousaf-kaukab) wrote : Re: panda: USB disk IO slow

Following patch can be used to log the EHCI clock frequencies for Omap3 and Omap4 platforms.

diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c
index f784ceb..a886e82 100644
--- a/drivers/usb/host/ehci-omap.c
+++ b/drivers/usb/host/ehci-omap.c
@@ -325,6 +325,8 @@ static int omap_start_ehc(struct ehci_hcd_omap *omap, struct usb_hcd *hcd)
                goto err_host_ick;
        }
        clk_enable(omap->usbhost_ick);
+ printk(KERN_INFO"ehci clock usbhost_ick rate = %lu Hz\n",
+ clk_get_rate(omap->usbhost_ick));

        omap->usbhost_hs_fck = clk_get(omap->dev, "hs_fck");
        if (IS_ERR(omap->usbhost_hs_fck)) {
@@ -332,6 +334,8 @@ static int omap_start_ehc(struct ehci_hcd_omap *omap, struct usb_hcd *hcd)
                goto err_host_120m_fck;
        }
        clk_enable(omap->usbhost_hs_fck);
+ printk(KERN_INFO"ehci clock hs_fck rate = %lu Hz\n",
+ clk_get_rate(omap->usbhost_hs_fck));

        omap->usbhost_fs_fck = clk_get(omap->dev, "fs_fck");
        if (IS_ERR(omap->usbhost_fs_fck)) {
@@ -339,6 +343,8 @@ static int omap_start_ehc(struct ehci_hcd_omap *omap, struct usb_hcd *hcd)
                goto err_host_48m_fck;
        }
        clk_enable(omap->usbhost_fs_fck);
+ printk(KERN_INFO"ehci clock fs_fck rate = %lu Hz\n",
+ clk_get_rate(omap->usbhost_fs_fck));

        if (omap->phy_reset) {
                /* Refer: ISSUE1 */