Girish wrote:

>Hi all,
>    I am trying to enable usb support on PXA27x board using 
>linux-2.6.20.  Inserted the following modules successfully
>    usbcore.ko
>    ohci_hcd.ko
>    usb-storage.ko
>    and inserted the flash drive(1GB) on USB port.
>    but  "/sys/bus/usb/devices/" directory is empty. I found no 
>information even enabling DEBUG mode.
>    Initially module ohci-hcd.ko was not registering properly bcos of 
>empty platform_data. So fixed the bug with the help of patch found on link
>    "http://lkml.org/lkml/2006/6/8/221";.
>   
>
>  
>
Fixed the problem by passing platform_data in arch/arm/mach-pxa/pxa27x.c i.e 
static struct pxaohci_platform_data olai_ohci_platform_data = {
         .init          = board_ohci_init, // some gpio initialization
        .port_mode      = PMM_NPS_MODE, // Power managment mode = No Power 
Switching between ports
        .power_budget   = 500, // Power = 500mA
};      

But now kernel is unable to detect the insertion and removal event of the USB 
device. Driver detects the device only for the first time and there is no 
activity even if the device is removed and re inserted. When I tested the 
registers in the USB Host sys entry; there is no change in the status b4 and 
after reinserting the device.

Here is the registers out put of usb host 

cat /sys/class/usb_host/usb_host1#
ohci_hcd version 2006 August 04
OHCI 1.0, NO legacy support registers
control 0x4c3 RWE HCFS=suspend CBSR=3
cmdstatus 0x00000 SOC=0
intrstatus 0x00000024 FNO SF
intrenable 0x8000005a MIE RHSC UE RD WDH
ed_controlhead a6516000
hcca frame 0xd911
fmintvl 0x27782edf FSMPS=0x2778 FI=0x2edf
fmremaining 0x000029a0 FR=0x29a0
periodicstart 0x2a2f
lsthresh 0x0628
hub poll timer ON
roothub.a 04001202 POTPGT=4 NOCP NPS NDP=2(2)
roothub.b 00000000 PPCM=0000 DR=0000
roothub.status 00008000 DRWE
roothub.portstatus [0] 0x00000101 PPS CCS
roothub.portstatus [1] 0x00000100 PPS


Any Ideas how to go further.....


Thanks & regards 
     A J
-- 

----------------------------------------------------------------------
Girish A J ([EMAIL PROTECTED]) 
Associate - Systems,                 Ph: (80) 2361 8184-86   Ext 135
PicoPeta Simputers Pvt Ltd.        Fax:(80) 2361 7568
146 5th Cross, RMV Extension,     
Bangalore - 560 080.               
URL  http://www.picopeta.com
-------------------------------------------------------------------------- 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to