Openmoko Bug #2178: usb0 configuration doesn't respect usb events
Openmoko Public Trac
bugs at docs.openmoko.org
Wed Dec 17 13:24:33 CET 2008
#2178: usb0 configuration doesn't respect usb events
-----------------------------+----------------------------------------------
Reporter: vnevoa | Owner: openmoko-kernel
Type: defect | Status: new
Priority: normal | Milestone:
Component: System Software | Version: Om2008.9-dev
Severity: normal | Keywords: usb0 usb udev
Haspatch: 0 | Blockedby:
Estimated: | Patchreview:
Blocking: | Reproducible: always
-----------------------------+----------------------------------------------
The usb0 network interface is never affected by USB plug-in or unplug (to
a PC).
I believe the most correct behavior should be to at least do "ifdown usb0"
upon unplugging, and "ifup usb0" upon plugging in.
This is much desired to allow better networking infrastructure, like
automatic reconfiguration of NAT from several optional external interfaces
(USB / GPRS / WiFi).
Listening to the udev events while unplugging / plugging in does not show
anything related to USB, only to power supply:
{{{
udevmonitor will print the received events for:
UDEV the event which udev sends out after rule processing
UEVENT the kernel uevent
# unplug:
UEVENT[949434728.174830] change
/devices/platform/bq27000-battery.0/power_supply/bat (power_supply)
UDEV [949434728.188090] change
/devices/platform/bq27000-battery.0/power_supply/bat (power_supply)
UEVENT[949434728.724675] change
/devices/platform/bq27000-battery.0/power_supply/bat (power_supply)
UDEV [949434728.741022] change
/devices/platform/bq27000-battery.0/power_supply/bat (power_supply)
#plug:
UEVENT[949434735.734659] change
/devices/platform/bq27000-battery.0/power_supply/bat (power_supply)
UDEV [949434735.747487] change
/devices/platform/bq27000-battery.0/power_supply/bat (power_supply)
UEVENT[949434736.459851] change
/devices/platform/bq27000-battery.0/power_supply/bat (power_supply)
UDEV [949434736.474648] change
/devices/platform/bq27000-battery.0/power_supply/bat (power_supply)
UEVENT[949434736.784914] change
/devices/platform/bq27000-battery.0/power_supply/bat (power_supply)
UDEV [949434736.800844] change
/devices/platform/bq27000-battery.0/power_supply/bat (power_supply)
}}}
I would expect some kind of USB event in udev... if not, then where else
should we get an event?
System data:
# feeds: OM2008 testing.
# uname -a
{{{
Linux om-gta02 2.6.24 #1 PREEMPT Wed Dec 10 09:19:15 CST 2008 armv4tl
unknown
}}}
# opkg list_installed: attached;
# logread: attached.
--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2178>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
More information about the openmoko-kernel
mailing list