mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01:00
macintosh/adb-iop: Implement sending -> idle state transition
On leaving the 'sending' state, proceed to the 'idle' state if no reply is expected. Drop redundant test for adb_iop_state == sending && current_req. 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/6991996dd4aaf0b52cfd650172bf0f6fbe37a452.1590880623.git.fthain@telegraphics.com.au
This commit is contained in:
1 parent
32226e8170
commit
e2954e5f72
1 file changed
+3
-4
@@ -77,15 +77,14 @@ static void adb_iop_done(void)
|
||||
|
||||
static void adb_iop_complete(struct iop_msg *msg)
|
||||
{
|
||||
struct adb_request *req;
|
||||
unsigned long flags;
|
||||
|
||||
local_irq_save(flags);
|
||||
|
||||
req = current_req;
|
||||
if ((adb_iop_state == sending) && req && req->reply_expected) {
|
||||
if (current_req->reply_expected)
|
||||
adb_iop_state = awaiting_reply;
|
||||
}
|
||||
else
|
||||
adb_iop_done();
|
||||
|
||||
local_irq_restore(flags);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user