aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorFinn Thain <[email protected]>2020-06-28 04:23:12 +0000
committerMichael Ellerman <[email protected]>2020-07-26 13:34:25 +0000
commit624cf5b538b507293ec761797bd8ce0702fefe64 (patch)
treec07f0cc27a6863a4c29183e088c5d5b858513d71 /arch/powerpc/lib/code-patching.c
parentmacintosh/via-macii: Remove read_done state (diff)
downloadkernel-624cf5b538b507293ec761797bd8ce0702fefe64.tar.gz
kernel-624cf5b538b507293ec761797bd8ce0702fefe64.zip
macintosh/via-macii: Handle poll replies correctly
Userspace applications may use /dev/adb to send Talk requests. Such requests always have req->reply_expected == 1. The same is true of Talk requests sent by the kernel, except for poll requests queued internally by the via-macii driver. Those requests have req->reply_expected == 0. Consequently, poll reply packets get treated like autopoll reply packets. (It doesn't make sense to try to distinguish them.) Always enter 'reading' state after a poll request, so that the reply gets collected and passed to adb_input(), and none go missing. All Talk replies passed to adb_input() come from polling or autopolling, so call adb_input() with the autopoll parameter set to 1. Fixes: d95fd5fce88f0 ("m68k: Mac II ADB fixes") # v5.0+ Signed-off-by: Finn Thain <[email protected]> Tested-by: Stan Johnson <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/754cddfa045e5bfa53e5da199831de02e7d2f27f.1593318192.git.fthain@telegraphics.com.au
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions