A Universal Serial Bus (USB) hub includes a first port that is configured to be switched from a downstream port to an upstream port; a plurality of other ports; and a controller configured to switch a function of the first port from the downstream port to the upstream port responsive to a command from an attached device and further configured to switch at least one of the plurality of other ports from a data and charge port into a port dedicated to charging