RE: [PATCH] scsi: ufs: Do not open code read_poll_timeout
From: Avri Altman
Date: Fri Sep 20 2024 - 15:01:09 EST
> Has it been considered to remove the ufshcd_wait_for_register() function and
> to use read_poll_timeout() directly in the
> ufshcd_wait_for_register() callers? The above patch makes
> ufshcd_wait_for_register() so short that it's probably better to remove this
> function entirely.
Yes - I thought about it.
I think that the wait_for_register makes it much clearer what the function actually does,
And for that reason, only, it worth keeping the function name.
However, if it’s a must I can remove it as you suggested.
Thanks,
Avri
>
> Thanks,
>
> Bart.