Hi ,

i am testing the ehci-hcd river for ARC HS OTG controller. I have the
following observations
when i try connecting devices.

After the probe, the POTRSCx values are 0x8c001000 for ARC controller
whcih is EHCI complaint.

COMMAND:  0x80b01
MODE:  0x7
STATUS:  0x88
INTERRUPT:  0x37
SET INTR ARE (INTR_MASK): 0x37
PORT 0 STATUS:  0x8c001000
SEGMENT = 0x0
FRAME LIST = 0x63ff4000
ASYNC LIST = 0x63ff2000
TTCTRL = 0x0
CONFIGURE FLAG = 0x1
OTGSC = 0x313120
PORT STATUS CONTROL REGISTERS
PORTSC[0] = 0x8c001000

1) When a OTG hard disk(Self Powered) was connected, there was no
interrupt and my ehci_irq interrupt handler was not invoked.
When i power on the device i get a DISCONNECT event from the device and the
   PORTSCx value changes to 0x8c001002 (CCS = 0,CSC =1) and
   "IRQ IS GENERATED" .
   STATUS register shows Port Change Detect Interrupt (STS = 0x8C).
So when the hub_events() tries to do a GetPortStatus, it does not find
connection(CCS =0) and the hub_port_connect_change() function returns.
Also PORT-ENABLE bit in PORTSCx is not 1. That means that even though
a device was connected, the port is not enabled.

2) When a USB2.0 HS speed device(thumb drive or Camera) was connected
to the board,
there is no interrupt genearated. This is visible from cat /proc/interrupts.

How can interpret the above 2 observations. I am getting PCD
interrupts for disconnect event from a device(OTG) ," after that was
connected and powered on. "
For other devices i am not getting interrupt.

Please help me debug this problem.


The probe function before returning dumps the following register values


DUMP of " /sys/class/usb_host/usb_host/register" after the OTG device
was connected and powered on.

bus platform, device ab301_ehci_usb.0 (driver 10 Dec 2004)
EHCI Host Controller
EHCI 1.00, hcd state 1
structural params 0x00010011
capability params 0x00000006
status 0088 FLR
command 080b01 park=3 ithresh=8 period=1024 RUN
intrenable 37 IAA FATAL PCD ERR INT
uframe 22e0
port 1 status 8c001000 POWER sig=se0
irq normal 0 err 0 reclaim 0 (lost 0)
complete 0 unlink 0


Thanks
Rak


_______________________________________________
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