Re: [PATCH v2 1/2] rtl8723bs: Refactor continual_io_error check

From: Greg KH

Date: Tue Jan 20 2026 - 09:34:29 EST


On Tue, Jan 20, 2026 at 10:11:25PM +0800, 2023060904@xxxxxxxxxx wrote:
> From: Changjun Zheng <guagua210311@xxxxxx>
>
> Refactor the error count check logic to follow kernel 'single responsibility' principle:
> 1. Move the increment logic (atomic_inc) from rtw_inc_and_chk_continual_io_error() to its callers in sdio_ops_linux.c (line 226/302)
> 2. Keep only the check logic in rtw_inc_and_chk_continual_io_error() (use atomic_read to get current count)
>
> This change addresses Greg KH's feedback to move increment to callers, while keeping atomic operations to ensure no compilation/run-time errors.

Please wait, relax, and take a few days to think about this code and the
patch series that I hope you read.

Then start over and create a brand new patch series based on what you
think should be done, NOT what AI is telling you should be done (hint,
it is wrong...)

thanks,

greg k-h