cr50: fix in handling VENDOR_RC_IN_PROGRESS when open ccd.
cr50: fix in handling VENDOR_RC_IN_PROGRESS when open ccd.

Handling an return value in ccd_command_wrapper has a bug.
It doesn't consider return code has VENDOR_RC_ERR value ORed, and
compare it directly to VENDOR_RC_IN_PROGRESS. As a result, it
treats VENDOR_RC_IN_PROGRESS as an unknown error.

BUG=b:112318448
BRANCH=cr50
TEST=manually on cr50 console.

(dut)
gsctool -a -P Password

[Before fix]
(cr50)
ccd open Password
Starting CCD open...
[2216.059745 PP start long]
Unknown error
Usage: ccd [help | ...]
>

Press the physical button now!

[After fix]
(cr50)
> ccd open Password
Starting CCD open...
[17.577850 PP start long]
>

Press the physical button now!

...

[Testing for error cases]
> ccd lock
CCD locked.
[3331.669830 CCD state: UARTAP UARTEC]
[3331.670883 I2C disconnect]

> ccd open
Wrong number of params
Usage: ccd [help | ...]

> ccd open hello
Access Denied
Usage: ccd [help | ...]

> ccd password hello
Access Denied
Usage: ccd [help | ...]

> ccd unlock
Wrong number of params
Usage: ccd [help | ...]

Change-Id: I56123e5fb8048cc8bea1bb7f6be104d4995fd311
Signed-off-by: Namyoon Woo <e8732cefb861f07768f47df788a8e8eb75efc09a@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1166257

coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec