Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Adding the option to disable disabling ports 2&3 when going into self…
… powered hub mode. This will enable the two ports on the odroid-x with newer kernels.
  • Loading branch information
xenoxaos committed Sep 29, 2012
commit c56987cf06b22bf951a8dea8aa193a04b7a9c432
7 changes: 7 additions & 0 deletions drivers/usb/misc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -249,3 +249,10 @@ config USB_HSIC_USB3503
depends on I2C
help
This option enables support for SMSC USB3503 HSIC to USB 2.0 Driver.
config USB3503_PORTS_SELF_POWER_DISABLED

boolean "Enable Ports 2 & 3 to be diabled"
depends on USB_HSIC_USB3503
help
Say Y here if you want the ports 2 and 3 to be disabled
when the hub goes into self power mode
5 changes: 5 additions & 0 deletions drivers/usb/misc/usb3503.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,13 @@ static int usb3503_set_mode(struct usb3503_hubctl *hc, int mode)
goto exit;
}
#endif

/* PDS : Port2,3 Disable For Self Powered Operation */

err = -1;
#if defined(CONFIG_USB3503_PORTS_SELF_POWER_DISABLED)
err = reg_update(i2c_dev, PDS_REG, (PDS_PORT2 | PDS_PORT3), 1);
#endif
if (err < 0) {
pr_err(HUB_TAG "PDS update fail err = %d\n", err);
goto exit;
Expand Down