echo host > usb_mode gives Invalid argument

Mike (mwester) mwester at
Thu Nov 20 02:46:55 CET 2008

jidanni at wrote:
>>>>>> "TJL" == Timo Juhani Lindfors <timo.lindfors at> writes:
> TJL> jidanni at writes:
>>> Following , doing
>>> for i in host device blabla
>>> do echo $i > /sys/devices/platform/s3c2410-ohci/usb_mode
>>> done
>>> will all produce
>>> bash: echo: write error: Invalid argument
>>> however the first two will do their actions and will be retained, as
>>> can be seen with cat on that file.
> TJL> Yeah, this should be reported to probably?
> I'll send this to openmoko-kernel mailing list instead.

This bug has been fixed for a while, and the patch was applied to the
"stable" branch as well.

Mike (mwester)

More information about the openmoko-kernel mailing list