Hi,
I was trying to configure udev to catch twl4030_usb event. I added the following rules (below) in udev.rules then reboot the board. When, I plug the usb cable to the usb-hub, I did not get any event.
KERNEL==“twl4030*”,SUBSYSTEM==“platform”,DRIVER==“twl4030*”,ATTR{vbus}==“on”,PROGRAM="/sbin/eventlog.sh link=on"
KERNEL==“twl4030*”,SUBSYSTEM==“platform”,DRIVER==“twl4030*”,ATTR{vbus}==“off”,PROGRAM="/sbin/eventlog.sh link=off"
When, I execute udevadm info --path=/devices/platform/i2c_omap.1/i2c-1/1-0048/twl4030_usb --attribute-walk, it gave a correct informations:
KERNEL==“twl4030_usb”
SUBSYSTEM==“platform”
DRIVER==“twl4030_usb”
ATTR{modalias}==“platform:twl4030_usb”
ATTR{microamps_requested_usb3v1}==“0”
ATTR{microamps_requested_usb1v5}==“0”
ATTR{microamps_requested_usb1v8}==“0”
ATTR{vbus}==“off”
Am I missing something?
Thanks,
John