Ticket #395 (new enhancement)

Opened 3 years ago

Last modified 3 years ago

Interface to toggle USB host between powered and unpowered modes

Reported by: avanc Owned by: mickey
Priority: minor Milestone: fso2-milestone2
Component: framework/odeviced Version: milestone5
Keywords: Cc:

Description

With the current 2.6.28 kernel the device can switch between device and host mode using the sysfs files:

/sys/devices/platform/s3c2410-ohci/usb_mode
/sys/class/i2c-adapter/i2c-0/0-0073/neo1973-pm-host.0/hostmode

A DBus interface would be very handy. Maybe the interface also unloads unused modules. Furthermore, unpowered and powered host mode should be selectable.

Change History

comment:1 Changed 3 years ago by daniel

Probably more some method that allows us to switch to host mode or one of the different gadget modes (cdc_ether, storage, ..)

comment:2 Changed 3 years ago by daniel

  • Milestone set to milestone7

comment:3 Changed 3 years ago by PaulFertser

Please take into account that from 901d73fe51f33032b34b2ae5612eb863ec90532a (Wed Apr 8) the path was changed to

/sys/devices/platform/s3c-ohci/usb_mode

comment:4 Changed 3 years ago by PaulFertser

  • Priority changed from major to minor
  • Summary changed from Interface to toggle USB between host and device mode to Interface to toggle USB host between powered and unpowered modes

The interface was implemented long time ago, a patch to be compatible with modern kernels committed.

Still it'd be nice to have a switch between powered and unpowered usb host modes.

Note: See TracTickets for help on using tickets.