Commit Graph

8 Commits

Author SHA1 Message Date
Patrik Jakobsson
f7cfae8296 Apply SPDX license identifiers and provice a LICENSE file
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2021-08-11 10:52:13 +02:00
Patrik Jakobsson
45bccf0a30 fthd: Update copyrights
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2016-07-03 12:28:11 +02:00
Patrik Jakobsson
b0720a6e09 fthd: Turn get_entry_addr() into a macro
Tossed in a few coding style fixes... my bad

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2016-07-02 19:28:18 +02:00
Sven Schnelle
6242aaa624 facetimehd: make get_entry_addr() public 2015-11-30 14:41:56 +01:00
Sven Schnelle
ca8c5584e0 facetimehd: add channel waitqueue
add a per channel waitqueue to be able to have more than one ringbuffer
entry in flight.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
2015-11-28 22:59:44 +01:00
Sven Schnelle
aebaf60c07 facetimehd: change fthd_channel_ringbuf_send() error handling
In the current implementation it returns -1 on error, an offset value
otherwise. Change it to return a negative error value, and add a pointer
to an u32 for receiving the entry offset as an extra argument.

This makes the ugly (u32)-1 return code comparision obsolete, and we
can return a more detailed error code like EAGAIN if all ringbuffer slots
are busy.
2015-11-28 21:18:22 +01:00
Sven Schnelle
9dd6bc2a02 facetimehd: don't access __iomem directly 2015-11-28 07:29:47 +01:00
Sven Schnelle
f3067f211a rename driver to facetimehd 2015-11-27 20:32:06 +01:00