1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-12 14:29:28 +00:00
freebsd/sys
Marius Strobl 31a2c906d7 - Prepend the device description with "AT91" to reflect its nature. [1]
- Move DMA tag and map creature to at91_spi_activate() where the other
  resource allocation also lives. [1]
- Flesh out at91_spi_deactivate(). [1]
- Work around the "Software Reset must be Written Twice" erratum.
- For now, run the bus at the slowest speed possible in order to work
  around data corruption on transit even seen with 9 MHz on ETHERNUT5
  (15 MHz maximum) and AT45DB321D (20 MHz maximum). This also serves as
  a poor man's work-around for the "NPCSx rises if no data data is to be
  transmitted" erratum of RM9200. Being able to use the appropriate bus
  speed would require:
  1) Adding a proper work-around for the RM9200 bug consisting of taking
     the chip select control away from the SPI peripheral and managing it
     directly as a GPIO line.
  2) Taking the maximum frequencies supported by the actual board and the
     slave devices into account and basing the whole thing on the master
     clock instead of hardcoding a divisor as previously done.
  3) Fixing the above mentioned data corruption.
- KASSERT that TX/RX command and data sizes match on transfers.
- Introduce a mutex ensuring that only one child device is running a SPI
  transfer at a time. [1]
- Add preliminary, #ifdef'ed out support for setting the chip select. [1]
- Use the RX instead of the TX commando size when setting up the RX side
  of a transfer.
- For controllers having SPI_SR_TXEMPTY, i.e. !RM9200, also wait for the
  completion of the TX part of transfers before stopping the whole thing
  again.
- Use DEVMETHOD_END. [1]
- Use NULL instead of 0 for pointers. [1, partially]

Additional testing by:  Ian Lepore

Submitted by:   Ian Lepore [1]
MFC after:      1 week
2012-06-03 00:54:10 +00:00
..
amd64 Isolate the global pv list lock from data and other locks to prevent false 2012-06-02 22:14:10 +00:00
arm - Prepend the device description with "AT91" to reflect its nature. [1] 2012-06-03 00:54:10 +00:00
boot Remove unnecessary initializations. The BSS of boot2 is in fact 2012-06-01 15:48:24 +00:00
bsm
cam Rewrite enabling NCQ for SATA devices in a way more alike to SCSI TCQ. 2012-06-02 08:29:07 +00:00
cddl Tighten up the assertion: because size can't be 0 and even if sm_space is equal 2012-05-29 18:11:45 +00:00
compat Make sure that each va_start has one and only one matching va_end, 2012-05-29 01:48:06 +00:00
conf Clean up and complete the incomplete deferred enable code. 2012-06-01 23:29:48 +00:00
contrib Correct table counter functionality to not panic. 2012-05-31 20:10:05 +00:00
crypto
ddb
dev Add missing prototypes. While at it, sort them alphabetically. 2012-06-02 20:47:00 +00:00
fs Capitalize start of sentence. 2012-05-30 14:00:23 +00:00
gdb
geom Add a partition type for nandfs to the apm, bsd, gpt and vtoc8 schemes. 2012-05-25 20:33:34 +00:00
gnu/fs Fix build: 2012-05-23 06:49:50 +00:00
i386 Isolate the global pv list lock from data and other locks to prevent false 2012-06-02 22:14:10 +00:00
ia64 Improve style(9) in the previous commit. 2012-06-01 17:07:52 +00:00
isa
kern Fix typo [1]. Use commas to separate flag printouts, in style with 2012-06-02 19:39:12 +00:00
kgssapi
libkern Use strcmp that I replaced by accident. 2012-05-21 02:45:47 +00:00
mips MFp4 bz_ipv6_fast: 2012-05-24 22:00:48 +00:00
modules Unbreak make depend. 2012-05-30 13:55:43 +00:00
net Seperate SCTP checksum offloading for IPv4 and IPv6. 2012-05-30 20:56:07 +00:00
net80211 Fix some corner cases in the ieee80211_send_bar() handling. 2012-05-22 19:37:12 +00:00
netatalk
netgraph Revert my local not yet properly tested changes, that leaked in 2012-05-25 07:46:24 +00:00
netinet Honor sysctl for TTL. 2012-06-02 21:22:26 +00:00
netinet6 Seperate SCTP checksum offloading for IPv4 and IPv6. 2012-05-30 20:56:07 +00:00
netipsec
netipx
netnatm
netncp Add characters mapping for codepages used in Germany. 2012-06-01 03:59:08 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
pc98 MFprojects/zfsd: 2012-05-24 11:20:51 +00:00
pci
powerpc Panic openly if we cannot retrieve memory information from the device tree. 2012-05-30 18:05:48 +00:00
rpc
security
sparc64 Replace all uses of the vm page queues lock by a r/w lock that is private 2012-05-29 01:52:38 +00:00
sys Fix typo [1]. Use commas to separate flag printouts, in style with 2012-06-02 19:39:12 +00:00
teken
tools
ufs Enable vn_io_fault() lock avoidance for UFS. 2012-05-30 16:45:41 +00:00
vm Revert r236380 2012-06-01 18:58:50 +00:00
x86 Consitently use "__LP64__". 2012-05-24 21:44:46 +00:00
xdr
xen
Makefile