aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/dl_github_archive.py
diff options
context:
space:
mode:
authorJan Hoffmann <jan@3e8.eu>2022-12-17 21:45:42 +0100
committerSander Vanheule <sander@svanheule.net>2022-12-27 16:29:57 +0100
commitae0a3f88ac335801f17035504ba572d14205787a (patch)
treee3f7b087d744f9e79d4c8ac0a8aacad5e3bed055 /scripts/dl_github_archive.py
parent9aa123d778e2631c2698a60ceeec610a14e1343b (diff)
downloadupstream-ae0a3f88ac335801f17035504ba572d14205787a.tar.gz
upstream-ae0a3f88ac335801f17035504ba572d14205787a.tar.bz2
upstream-ae0a3f88ac335801f17035504ba572d14205787a.zip
realtek: restructure rtl_table_read/write
These two functions are identical apart from writing different values to the read/write bit. Create a new function rtl_table_exec to reduce code duplication. Also replace the unbounded busy-waiting loop. The new implementation may sleep, but as the hardware typically responds before the first poll, any callers doing many table accesses still need to make sure not to block other kernel tasks themselves. So far, polling timeout errors are only handled by logging an error, but a return value is added to allow proper handling in the future. Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Diffstat (limited to 'scripts/dl_github_archive.py')
0 files changed, 0 insertions, 0 deletions