Commit Graph

237018 Commits

Author SHA1 Message Date
mrg
1012ea6dfa fix some merge errors in the previous 2015-08-10 04:13:18 +00:00
mrg
d0bfe71006 now that we only support gcc 4.8, make all the gcc tags just "gcc".
this should help with next-gcc, when we can add back gcc=48 and
gcc=5x tags, as necessary.
2015-08-10 03:21:44 +00:00
mrg
70401d7281 obsolete and clean up gcc=3 (3.3), gcc=4 (4.1), and gcc=45 (4.5) sets. 2015-08-10 02:44:36 +00:00
shm
c09e755be0 Removed unnecessary memset(3) call 2015-08-09 20:34:24 +00:00
mlelstv
9866aa05e8 Add small command queue to reduce latency between ld driver and
sdmmc I/O thread.
2015-08-09 13:49:18 +00:00
mlelstv
814eb59767 Ignore data inhibit for commands that do not use the DAT line.
Do a soft reset when the inhibit condition persists for better
error recovery.

Simplify interrupt handling and print errors reported by the controller.

Add more specific debug messages for timeout errors.
2015-08-09 13:46:50 +00:00
mlelstv
0684edc847 Protect the whole tuning operation including the register setup. 2015-08-09 13:39:18 +00:00
mlelstv
d4497d896e Replace the LOWER_FREQ quirk with the SLOW_SDR50 quirk for the
Ricoh 5U823 controller. This stabilizes SD cards at standard speed
and high speed and also UHS-I SDR50.
2015-08-09 13:27:48 +00:00
mlelstv
b33e86824b Add a quirk for Ricoh 5U823 controller. Operation with a 100MHz
bus clock for SDR50 seems to be unstable, reduce frequency one notch
(effectively down to 66MHz with divisor = 3).
2015-08-09 13:24:39 +00:00
mlelstv
0051183d01 Send an explicit CMD12 (stop transmission) when there was an error
in multi-sector I/O.

The SDHC spec has a complex flowchart describing when an explicit
CMD12 is necessary, so we probably use it too often.
2015-08-09 13:18:46 +00:00
mlelstv
4fbe659aa8 protect card detection with mutex. 2015-08-09 13:14:11 +00:00
mlelstv
bd37f49d49 Make the DMA halt procedure follow better the documentation. 2015-08-09 13:07:47 +00:00
mlelstv
acc85cbf5c Invoke callback routine for all DMA interrupts.
Pass status and error bits to callback instead of filtering them early.
Adjust the current only callback routine in the EMMC driver.
2015-08-09 13:06:44 +00:00
mlelstv
edf52cf86f Handle error when setting DMA transfer. 2015-08-09 13:03:10 +00:00
jmcneill
51a3b68a00 wait for command done status before doing pio transfer 2015-08-09 13:01:21 +00:00
shm
0c7f5afe2e Clear utmpx struct before writing it to wtmpx files 2015-08-09 12:17:30 +00:00
aymeric
4fcf45b3fb use ${TOOL_AWK} instead of host dependant awk. From mrg@. 2015-08-09 10:09:07 +00:00
shm
675ae4bd49 Remove unnecessary fclose(3) call 2015-08-09 09:49:25 +00:00
shm
7a0fcb9b1d Do not use pamh after pam_end. It's cosmetic change since pam_strerror
ignores that parameter.
2015-08-09 09:39:21 +00:00
mlelstv
5661eb436a Refactor disk address calculation from physical block numbers in
the journal into a function. Make that function work correctly with
sector sizes != DEV_BSIZE when compiled outside the kernel (i.e.
fsck_ffs).
Fixes PR bin/45933
2015-08-09 07:40:59 +00:00
szptvlfn
7e84c95f09 typo 2015-08-09 05:45:42 +00:00
tnn
7d1a028693 add commented out entries for com ports that are physically routed 2015-08-08 23:32:22 +00:00
tnn
87da04b938 fix attachment of non-console UARTs and ensure the UART clock is running 2015-08-08 23:30:16 +00:00
aymeric
26784e621d Move dashes to the front of bracket expressions. Suggested by dholland@. 2015-08-08 23:06:36 +00:00
aymeric
dea07fe2a9 Fix bracket expressions by moving '-' to the end of them. GNU awk choked. 2015-08-08 22:26:59 +00:00
jmcneill
a0cb6738c4 don't need a full reset to recover from errors, only DMA and FIFO resets 2015-08-08 17:21:19 +00:00
jmcneill
b7e942f101 note UHS-I and MMC HS200 support 2015-08-08 16:11:15 +00:00
shm
13fc423c66 Add missed munmap(2) in extract_config 2015-08-08 15:52:41 +00:00
jmcneill
517b57e9a5 Add support for UHS-I / MMC HS200 tuning process 2015-08-08 15:36:39 +00:00
jmcneill
ce8aaf88f7 hook up card detect gpio 2015-08-08 14:48:41 +00:00
kiyohara
a2bdc95972 Fix calculate to address for window register.
Thanks knakahara@.
2015-08-08 14:35:06 +00:00
jmcneill
567f4a1651 We have two SD controllers with different capabilities. Use the fast "SDHC"
controller for the card that the bootloader marked as the boot device,
and the slower "SDIO" controller for the other card if present.

The controller to slot mappings can be wired down in the kernel config
with the "port" locator if necessary.
2015-08-08 14:01:44 +00:00
jmcneill
826d810d5a Pass boot device to amlogicsdhc and amlogicsdio drivers. 2015-08-08 13:54:05 +00:00
shm
4bd8c591b0 Fixed memory leak on comments 2015-08-08 12:34:33 +00:00
maxv
56b645491f easy kmem_alloc(0)
ok shm@
2015-08-08 12:02:35 +00:00
jmcneill
a7d5b4b793 Enable eMMC on the SDIO controller. 2015-08-08 10:56:55 +00:00
jmcneill
7036518fa1 set max clock to ref freq 2015-08-08 10:55:14 +00:00
jmcneill
ef1502a62c advertise HS200 support 2015-08-08 10:51:50 +00:00
jmcneill
abd2b2447e don't rely on u-boot to setup CARD and BOOT pins 2015-08-08 10:51:40 +00:00
jmcneill
0e0362b230 eMMC fixes 2015-08-08 10:50:55 +00:00
shm
029f8c2148 Fix various minor memory leaks on errors 2015-08-08 10:38:35 +00:00
mlelstv
7454f7165e don't crash when printing error messages when there are no credentials.
don't abuse the printed uid to log the inode number.

The printing/logging of error messages should be simplified.
2015-08-08 08:18:52 +00:00
mlelstv
23ac79bdb2 KASSERT that magic pointers NOCRED and FSCRED are not dereferenced. 2015-08-08 07:53:51 +00:00
mrg
d7c39481bd add an example for rescanning ATA busses. 2015-08-08 07:52:52 +00:00
maxv
b74522aae1 Remove KMEMSTATS. 2015-08-08 06:36:24 +00:00
maxv
6a1d6f071c revert; but still fix the comment 2015-08-08 06:24:40 +00:00
macallan
d6a4bdd595 add jzrng 2015-08-07 17:41:43 +00:00
macallan
569fb3a720 add driver for jz4780 random number generator
From Michael McConville
2015-08-07 17:39:58 +00:00
macallan
7de0cc0eb5 - sprinkle volatile
- add RNG registers
- fix some comments
2015-08-07 17:37:54 +00:00
prlw1
c816fbf8fc Avoid panic in SIOCGNATL dereferencing a NULL softc.
Solution suggestion from Martin Husemann.
2015-08-07 17:31:12 +00:00