mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-03 21:49:32 +00:00
pd: for non dual-role device, always send reject to PR_SWAP
For non dual-role devices, always send reject to power swap request, PR_SWAP. BUG=none BRANCH=samus TEST=make buildall Change-Id: I54ce4810cf08a02a1d841308507a0f8de284d987 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/227391 Reviewed-by: Todd Broch <tbroch@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
290f0cfc83
commit
aa4f720363
@@ -904,8 +904,10 @@ static void handle_ctrl_request(int port, uint16_t head,
|
||||
} else {
|
||||
send_control(port, PD_CTRL_REJECT);
|
||||
}
|
||||
break;
|
||||
#else
|
||||
send_control(port, PD_CTRL_REJECT);
|
||||
#endif
|
||||
break;
|
||||
case PD_CTRL_PROTOCOL_ERR:
|
||||
case PD_CTRL_WAIT:
|
||||
#ifdef CONFIG_USB_PD_DUAL_ROLE
|
||||
|
||||
Reference in New Issue
Block a user