Re: [PATCH] net: usb: ax88179_178a: avoid failed operations when device is disconnected

From: Jose Ignacio Tornos Martinez
Date: Fri Dec 01 2023 - 05:46:31 EST


Hi Alan,

Thank you for your help.

> Another possibility would be to have the unbind routine set a flag in
> the private data structure, and then make the ax88179_write_cmd() and
> ax88179_read_cmd() routines avoid printing error messages if the flag is
> set. Or don't bother with the flag, and simply make the routines skip
> printing an error message if a transfer fails with error code -ENODEV.

Yes, I had thought about those possibilities and I think they are the only
ones from the driver. As you are commenting as well, I will try a second
version with that.

Best regards
José Ignacio