mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-04 22:11:41 +00:00
Since ec doesn't support old-style host command, this CL removes unsupported parts in npcx's lpc driver and lets the hand-shaking mechanism between host and ec as easy as possible. It makes sure only following conditions that ec can clear processing bit of host command. 1. Received LRESET signal. 2. In lpc_init() initialization function caused by sysjump. 3. If command is valid, it will be cleared in lpc_send_response_packet() called by host command task. 4. If command is invalid, it will be cleared in lpc_send_response() after the response package is ready. BRANCH=none BUG=chrome-os-partner:34346 TEST=make BOARD=wheatley; do stress test on wheatley. Change-Id: I53d17fd9e09b7fb080e4bf71437392bf43db6258 Signed-off-by: Mulin Chao <mlchao@nuvoton.com> Reviewed-on: https://chromium-review.googlesource.com/422707 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>