qcacmn: Ratelimit error log for REO CMD send failure

REO CMD send failure floods the console with error logs.

Ratelimit the error log for REO CMD send failure
and increment stats to keep track of the number of
failures.

CRs-Fixed: 2593996
Change-Id: Id415a17b1ba1f4c044bf34eb31e81e2cea825f80
This commit is contained in:
Rakesh Pillai
2020-01-02 11:03:09 +05:30
committed by nshrivas
vanhempi 1d2e65a76c
commit ae0f601eac
2 muutettua tiedostoa jossa 25 lisäystä ja 12 poistoa

Näytä tiedosto

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -91,13 +91,12 @@ QDF_STATUS dp_reo_send_cmd(struct dp_soc *soc, enum hal_reo_cmd_type type,
break;
default:
dp_err_log("Invalid REO command type: %d", type);
return QDF_STATUS_E_FAILURE;
return QDF_STATUS_E_INVAL;
};
dp_reo_cmd_srng_event_record(soc, type, num);
if (num < 0) {
dp_err_log("Error with sending REO command type: %d", type);
return QDF_STATUS_E_FAILURE;
}