]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: cdc_ncm: factor out one-time device initialization
authorBjørn Mork <bjorn@mork.no>
Fri, 16 May 2014 19:48:19 +0000 (21:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 May 2014 02:39:01 +0000 (22:39 -0400)
commitf8afb73da3758a9543f4b7c70caa59a18d864c9b
tree8024f98dfce8787b752b916babd76a5f43e50de4
parent5aa73d5d72bddfcac253d06f84e80e38c5bb430c
net: cdc_ncm: factor out one-time device initialization

Split the parts of setup dealing with device initialization from
parts just setting defaults for attributes which might be
changed after initialization.

Some commands of the device initialization are only allowed when
the data interface is in its disabled altsetting, so we must
separate them out of we are to allow rerunning parts of setup.

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