]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: cdc_ncm: split .bind device initialization
authorBjørn Mork <bjorn@mork.no>
Fri, 16 May 2014 19:48:20 +0000 (21:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 May 2014 02:39:01 +0000 (22:39 -0400)
commit08c74fc901a2e91de762d99ba3d493281862e29a
tree595e6d8ff7c1d561e430c953213b1435184fc752
parentf8afb73da3758a9543f4b7c70caa59a18d864c9b
net: cdc_ncm: split .bind device initialization

Now that we have split out the part of the device setup
which MUST be done with the data interface in altsetting 0,
we can delay the rest of the initialization. This allows us
to move some of post-init buffer size config from bind to
the appropriate setup function.

The purpose of this refactoring is to collect all code
adjusting the rx_max and tx_max buffers in one place, so
that it is easier to call it from multiple call sites.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c