USB devices enumeration

eduardo
Hi,

I'm working on a project with 2 usb cameras. One camera will be connected
on USB1 and another will be connected on USB2 port of micro 2440 SDK.

Using above configuration, I have two devices on /dev/:
/dev/video0
/dev/video1

My problem is that I need to know which is connected on USB1 and which is
connected on USB2.
for example, /dev/video0 is on USB2 port (1-1.2), and /dev/video1 is on
USB1 port (1-1.1).

I tried to write some script calls on /etc/mdev.conf rules (to tell me
which USB is being used). This works well when I plug both USB cameras. But
it doesn't work well when the system is restarted.

Any file on system can tell me that easily (/sys/bus/usb/...)??

Anyway, I'll try to find out why my scripts aren't work properly.

Thanks in advance.