bcwc_pcie: powerdown cmd doesn't send a response

The old code checked for stop command, which was wrong.
This commit is contained in:
Sven Schnelle
2015-11-03 22:40:32 +01:00
parent 7373fe8cbb
commit c97e4a9172

View File

@@ -291,8 +291,8 @@ int bcwc_isp_cmd(struct bcwc_private *dev_priv, enum bcwc_isp_cmds command, void
entry = bcwc_channel_ringbuf_send(dev_priv, dev_priv->channel_io,
request->offset, request_len + 8, (response_len ? *response_len : 0) + 8);
if (command == CISP_CMD_STOP) {
/* stop doesn't seem to generate a response */
if (command == CISP_CMD_POWER_DOWN) {
/* powerdown doesn't seem to generate a response */
ret = 0;
goto out;
}