diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2012-12-07 13:37:26 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2012-12-07 13:37:26 +0100 |
commit | 775ab07d5e710c4811a66b246f8f8708a09eba28 (patch) | |
tree | df725ba1aea0bccbfb64e29d49fa04bfc671ec11 /apps | |
parent | fb43a137e72d1f428efef00047a416497463edfb (diff) | |
download | rockbox-775ab07d5e710c4811a66b246f8f8708a09eba28.tar.gz rockbox-775ab07d5e710c4811a66b246f8f8708a09eba28.zip |
usb: add support for hardware handled SET ADDR/CONFIG
Some USB controllers like the one of the Rockchip 27xx handle some
requests in pure hardware. This is especially a problem for two
of them:
- SET ADDR which is used by our core to track the DEFAULT/ADDRESS
state and is required for the drivers to work properly
- SET CONFIG which is used by our core to initialise the drivers
by calling init_connection()
In these cases we need a way to notify the core that such requests
happened.
We do this by exporting two functions which directly notify the
core about these requests and perform the necessary init steps
required without doing the actual USB transfers. Special care is
needed because these functions could be called from an interrupt
handler. For this reason we still use the usb_queue and introduce
new IDs so that they are processed in order and safely.
No functional change is intended, both in the usbstack and on
targets without such quirks.
Change-Id: Ie42feffd4584e88bf37cff018b627f333dca1140
Diffstat (limited to 'apps')
0 files changed, 0 insertions, 0 deletions