diff options
author | Paul Mundt <lethal@linux-sh.org> | 2011-06-14 17:38:19 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-06-14 17:38:19 +0900 |
commit | 72b294cf76dcd6d37891387049ddbe3c25043cb8 (patch) | |
tree | e19eaab5e23bba04b1f0f9ef244764ae73656764 /mm/ksm.c | |
parent | 61a6976bf19a6cf5dfcf37c3536665b316f22d49 (diff) | |
download | blackbird-op-linux-72b294cf76dcd6d37891387049ddbe3c25043cb8.tar.gz blackbird-op-linux-72b294cf76dcd6d37891387049ddbe3c25043cb8.zip |
serial: sh-sci: FIFO sizing helper consolidation.
This consolidates all of the TX/RX fill/room nonsense in to a single set
of fairly heavyweight definitions. The implementation goes in descending
order of complexity, testing the register map for capabilities until we
run out of options and do it the legacy SCI way. Masks are derived
directly from the per-port FIFO size, meaning that platforms with FIFO
sizes not matching the standard port types will still need to manually
fix them up.
This also fixes up a number of issues such as tx_empty being completely
bogus for SCI and IrDA ports, some ports using masks smaller or greater
than their FIFO size, and so forth.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'mm/ksm.c')
0 files changed, 0 insertions, 0 deletions