Enable connecting devices to the root hub directly#10
Open
boochow wants to merge 8 commits intoChadderz121:masterfrom
Open
Enable connecting devices to the root hub directly#10boochow wants to merge 8 commits intoChadderz121:masterfrom
boochow wants to merge 8 commits intoChadderz121:masterfrom
Conversation
Disable SSPLIT/CSPLIT packets when a low/full speed device is connected directly to the root hub
Detect unplugging a device from the root hub.
|
@Chadderz121 can you please commit this PR, I'm using a fork of your repo and github does not allow 2 forks with the same master name. @IchigoJam BASIC RPi may find this PR comment useful for [issue 1005] mentioned here: https://ichigojam.github.io/RPi/ as may many others (incl. @kelihlodversson pTOS project), specifically:
NOTE: for "other RPi" this also implies that you need to check for "another hub layer" when using a wifi or bluetooth keyboard and mouse combo usb reciever (or one of PINE64 usb keyboard with 2 port hub). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR makes it possible to connect a USB FS/LS device to the root hub directly (without USB HS hub).
It is useful if you want to connect a USB keyboard, for example, directly to the USB port of RPi model A/A+/Zero/Zero W because they have no on-board USB hub (LAN9512) and their USB port is the port of the root hub.
Patches included in this PR stops USB SSPLIT/CSPLIT packets when a USB device connected to the root hub is a FS or LS device. I also added some lines to hub.c for detecting unplugging a device from the root hub.