Hi Andy, On Tue, Mar 03, 2020 at 08:09:17PM +0200, Andy Shevchenko wrote: > There is no need to allocate buffer each time we switch modes. First of all, > the code is protected by checking the factory_mode state. The size of the > buffer is static and can't be changed after ->probe() anyway. Why do we need to keep memory allocated if it is not going to be used majority of the time? How much is the code savings vs. allocated memory size (without considering having multiple devices connected to the same system). Thanks. -- Dmitry