eadler
00d151a4dd
Add support for the Buffalo RUF2 flash drive.
...
PR: usb/166848
Submitted by: Andrew Gregory <andrew@scss.com.au>
Reviewed by: hselasky
Approved by: cperciva (implicit)
MFC after: 3 days
2012-10-14 17:26:32 +00:00
mav
37cc4ef7d0
- Remove ancient checks for sim->softc == NULL. It can't be NULL, as it is
...
set not-NULL during SIM registration and set to UMASS_GONE on destruction.
Debug messages there look broken for at least 9 years, as they dereference
softc value that was just checked to be equal to NULL.
- Remove magic pointer value UMASS_GONE and use simple NULL instead.
Found by: Clang Static Analyzer
2012-10-10 22:02:11 +00:00
kevlo
ceb08698f2
Revert previous commit...
...
Pointyhat to: kevlo (myself)
2012-10-10 08:36:38 +00:00
kevlo
8747a46991
Prefer NULL over 0 for pointers
2012-10-09 08:27:40 +00:00
hselasky
14ab314813
Style.
...
MFC after: 1 week
2012-10-02 10:09:23 +00:00
hselasky
b7b0dbcf72
Remove unused field.
...
MFC after: 1 week
2012-10-02 10:05:39 +00:00
hselasky
c081610de9
Inherit USB mode from RootHUB port where the USB device is connected.
...
Only RootHUB ports can be dual mode. Disallow OTG ports on external HUBs.
This simplifies some checks in the USB controller drivers.
MFC after: 1 week
2012-10-01 05:42:43 +00:00
kevlo
4a88b958f4
If devclass_get_devices(9) returns success but a count of 0,
...
free the pointer.
2012-09-29 16:27:13 +00:00
hselasky
1e08816c2c
Make sure we don't leak a mbuf in a fail case.
2012-09-28 16:23:01 +00:00
hselasky
c416994d01
Remove some trailing bytes which are not part of the ethernet packet.
...
Discussed with: bgray @
2012-09-28 15:33:13 +00:00
hselasky
fc2bcd64bf
Correct NYET handling. Remove superfluous transfer complete interrupt mask.
2012-09-28 15:24:14 +00:00
hselasky
52a6b7ce30
Make sure the "wMaxPacketSize" limitations are respected.
2012-09-27 15:45:24 +00:00
hselasky
b3f5fac122
Make sure we record NAK tokens in the TD structure for IN direction.
...
Improve host channel disabling. Wait two times 125us for channel to be
disabled. The DWC OTG doesn't like when channels are re-used too early.
2012-09-27 15:23:38 +00:00
hselasky
95d0e5a41c
Make sure the DWC OTG host mode channels are given enough time to disable.
2012-09-26 18:59:20 +00:00
hselasky
17ea6066ad
DWC OTG host mode improvements:
...
- Make HSIC selection dynamic.
- Make LOW speed USB devices work through HIGH speed USB HUB.
2012-09-24 16:34:13 +00:00
hselasky
736a97fe79
DWC OTG host mode improvements. Add support for the 3-strikes and you are
...
gone rule. Optimise use of channels so that when a channel
is not ready another channel is used. Instead of using the SOF interrupt
use the system timer to drive the host statemachine. This might
give lower throughput and higher latency, but reduces the CPU usage
significantly. The DWC OTG host mode support should not be considered
for serious USB host controller applications. Some problems are still
seen with LOW speed USB devices.
2012-09-23 12:19:19 +00:00
hselasky
4cf4209434
Correct driver name.
...
MFC after: 1 weeks
2012-09-23 09:39:04 +00:00
hselasky
e2942e62d2
Apply some more casting.
2012-09-22 08:02:42 +00:00
hselasky
bcd6a20540
Apply correct casting.
2012-09-22 07:27:24 +00:00
hselasky
4e994ee0cd
Fix typo.
2012-09-20 15:11:59 +00:00
kevlo
1c6026ef19
Fix typo: s/protocl/protocol
2012-09-20 10:07:31 +00:00
gavin
969b25f00f
Add entries for two USB devices I have locally.
...
MFC after: 1 week
2012-09-18 22:25:49 +00:00
hselasky
cde424c336
Add UQ_UMS_IGNORE quirk.
...
Wrap two long lines.
Some minor spelling correction.
PR: usb/171721
2012-09-17 19:06:35 +00:00
kevlo
a9b43f2914
Remove unused variable cd.
...
This variable is initialized but not used.
2012-09-17 09:32:11 +00:00
hselasky
5234d25282
DWC OTG improvements. Implement full support for SPLIT transactions, in other
...
words FULL/LOW speed devices through HIGH speed HUBs. Improve support for
suspend and resume in host mode.
2012-09-14 07:52:57 +00:00
hselasky
c4ec19db93
Fix TX FIFO sizes. Correct FIFO handling in Host mode.
2012-09-12 19:15:29 +00:00
kevlo
34c8ec034c
Restart the USB transfer if the error is not USB_ERR_CANCELLED.
2012-09-12 07:59:28 +00:00
hselasky
3d0dbd12ff
Reduce DWC OTG polling rate by using the SOF interrupt.
2012-09-12 07:34:09 +00:00
hselasky
dec93a046b
Fix missing parts of DWC OTG host mode support. The host mode support
...
of the DWC OTG is very simple in PIO mode, and we need to re-transmit
data when NAK is received among other things. We probably will need
to implement some kind of rate limitation on the NAK-ing.
2012-09-11 22:08:19 +00:00
hselasky
d6420ed47c
Poll VBUS status every second, hence the AT91 GPIO library doesn't support
...
registering interrupt handlers yet for GPIO events.
2012-09-10 13:50:34 +00:00
hselasky
3467c1af7a
Fix for IRQ hang in DWC OTG host mode.
2012-09-10 12:23:56 +00:00
hselasky
620b7df9b9
Cleanup interrupt handling in Host Mode.
2012-09-10 08:23:56 +00:00
hselasky
7ea73aa912
Implement missing USB suspend and resume support for DWC OTG driver.
2012-09-09 17:23:57 +00:00
hselasky
51aace4b7f
Add support for DWC OTG.
2012-09-09 14:53:34 +00:00
hselasky
a7a5fbc7a5
Add support for host mode to the DWC OTG controller driver.
...
The DWC OTG host mode support should still be considered
experimental. Isochronous support for DWC OTG is not
fully implemented. Some code added derives from
Aleksandr Rybalko's dotg.c driver.
2012-09-09 14:41:34 +00:00
gavin
374ac87db9
Support another uchcom(4) device.
...
MFC after: 1 week
2012-09-04 23:13:24 +00:00
hselasky
d00fafff0e
Add more DWC OTG register definitions.
...
Submitted by: Nick Hudson
2012-09-03 15:22:02 +00:00
hselasky
d3cf18fd76
Preparations for adding USB HOST mode to the DWC OTG driver.
...
Merge register file with external one and put all register
definitions in a separate file.
Submitted by: ray @
2012-08-30 16:19:05 +00:00
hselasky
4759d63474
Add tunable for XHCI port routing.
...
MFC after: 1 week
2012-08-23 17:40:20 +00:00
hselasky
96e25681b8
Add new USB device ID.
...
Submitted by: Dmitry Luhtionov
MFC after: 1 week
2012-08-22 18:30:13 +00:00
hselasky
2894c393bd
Style.
2012-08-21 20:18:01 +00:00
hselasky
a0e86fcd0b
Fix USB drivers for KB920X target.
...
Add missing clock settings.
VBUS GPIO IRQ is still missing (TODO).
2012-08-21 20:10:59 +00:00
hselasky
0da4a31458
Add new USB device ID.
...
PR: usb/170688
MFC after: 1 week
2012-08-17 16:27:11 +00:00
hselasky
2e74f8d2a5
Revert r239178 and implement two new functions, namely
...
"device_free_softc()" and "device_claim_softc()",
to allow USB serial drivers refcounting the softc.
These functions are used to grab the softc from
auto-free and to free the softc back to the correct
malloc type, respectivly.
Discussed with: jhb
MFC after: 2 weeks
2012-08-15 15:42:57 +00:00
hselasky
0f8b6a08b6
Add new USB device quirk.
...
Submitted by: Kra OTN
MFC after: 2 weeks
2012-08-15 15:35:20 +00:00
gonzo
c4f4444c7b
Merging of projects/armv6, part 5
...
- Driver for SMSC LAN95XX and LAN8710A ethernet controllers
- Driver for LAN8710A PHY
Submitted by: Ben Gray, Damjan Marion, Tim Kientzle
2012-08-15 04:03:55 +00:00
gavin
760fb1e488
Rename command defines to match names used in the datasheet, in order to
...
make maintaining this driver from the documentation easier in the future.
This is a mostly mechanical change.
In uslcom_param(), move the zeroing of the final two fields of the
flowctrl structure outside of the "if CRTSCTS" section - not only were
they being zeroed in both the clauses, but these two fields have nothing
to do with hardware flow control anyway.
2012-08-14 22:21:46 +00:00
hselasky
8158b0ddf0
Fix for missing locks due to recent change.
...
PR: usb/170606
MFC after: 2 weeks
2012-08-13 18:34:04 +00:00
hselasky
3a1d6fe80a
Rename new IOCTL to singular form of the noun "streams".
...
MFC after: 2 weeks
2012-08-13 18:09:19 +00:00
hselasky
17fe66b571
Improve auto-quirks detection for certain Kingston memory sticks.
...
MFC after: 2 weeks
2012-08-13 18:00:34 +00:00