Andracs Estacvez

iMX23 USB HOST

Discussion created by Andracs Estacvez on Jun 1, 2012

Hello,

 

I am trying to configure USB as host but I am not able to do it. It seems that it is not able to setup GPIO 18

 

Kernel configuration is as follows:

 <*>   Support for Host-side USB

   [*]     USB device class-devices (DEPRECATED) 

   <*>     USB Monitor

   <*>     EHCI HCD (USB 2.0) support

      [*]       Support for Freescale controller

          [*]         Support for DR host port on Freescale controller

    [*]   Root Hub Transaction Translators

 

 

Error (from dmesg):

WARNING: at drivers/gpio/gpiolib.c:1064 __gpio_set_value+0x2c/0x54()
Modules linked in:
[<c002f534>] (unwind_backtrace+0x0/0xd4) from [<c004468c>] (warn_slowpath_common+0x4c/0x68)
[<c004468c>] (warn_slowpath_common+0x4c/0x68) from [<c0197454>] (__gpio_set_value+0x2c/0x54)
[<c0197454>] (__gpio_set_value+0x2c/0x54) from [<c00380b0>] (fsl_phy_set_power+0x40/0x54)
[<c00380b0>] (fsl_phy_set_power+0x40/0x54) from [<c0217c28>] (usb_hcd_fsl_probe+0x1ec/0x2e4)
[<c0217c28>] (usb_hcd_fsl_probe+0x1ec/0x2e4) from [<c01c8ff8>] (platform_drv_probe+0x1c/0x24)
[<c01c8ff8>] (platform_drv_probe+0x1c/0x24) from [<c01c815c>] (driver_probe_device+0xc0/0x174)
[<c01c815c>] (driver_probe_device+0xc0/0x174) from [<c01c8270>] (__driver_attach+0x60/0x84)
[<c01c8270>] (__driver_attach+0x60/0x84) from [<c01c7648>] (bus_for_each_dev+0x48/0x80)
[<c01c7648>] (bus_for_each_dev+0x48/0x80) from [<c01c7bd0>] (bus_add_driver+0x9c/0x220)
[<c01c7bd0>] (bus_add_driver+0x9c/0x220) from [<c01c864c>] (driver_register+0xac/0x134)
[<c01c864c>] (driver_register+0xac/0x134) from [<c001baa8>] (ehci_hcd_init+0x68/0xa8)
[<c001baa8>] (ehci_hcd_init+0x68/0xa8) from [<c002a2e0>] (do_one_initcall+0x58/0x1a4)
[<c002a2e0>] (do_one_initcall+0x58/0x1a4) from [<c0008890>] (kernel_init+0x8c/0x104)
[<c0008890>] (kernel_init+0x8c/0x104) from [<c002b7ec>] (kernel_thread_exit+0x0/0x8)
---[ end trace 4eaa2a86a8e2da23 ]---
gpio_unexport: gpio18 status -22

Do you know any idea about this problem?

Thank you!

Outcomes