Re: [v2] wifi: wlcore: sdio: Rate limit wl12xx_sdio_raw_{read,write}() failures warns

From: Kalle Valo
Date: Tue Mar 05 2024 - 13:54:32 EST


Javier Martinez Canillas <javierm@xxxxxxxxxx> wrote:

> When these failures happen, the warning and call trace is printed which is
> excessive. Instead, just print the error but rate limited to prevent warns
> to unnecessarily pollute the kernel log buffer and make the serial console
> practically unusable.
>
> For example, on an AM625 BeaglePlay board where accessing a SDIO WiFi chip
> fails with an -110 (ETIMEDOUT) error:
>
> $ dmesg | grep "sdio write\|read failed (-110)" | wc -l
> 39
>
> Signed-off-by: Javier Martinez Canillas <javierm@xxxxxxxxxx>
> Reviewed-by: Breno Leitao <leitao@xxxxxxxxxx>

Patch applied to wireless-next.git, thanks.

f6e36d9e1c63 wifi: wlcore: sdio: Rate limit wl12xx_sdio_raw_{read,write}() failures warns

--
https://patchwork.kernel.org/project/linux-wireless/patch/20240228101042.728881-1-javierm@xxxxxxxxxx/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches