]> git.baikalelectronics.ru Git - kernel.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)
commit009c3113547c5124c4ea0d308471bf732a334635
tree8024f98dfce8787b752b916babd76a5f43e50de4
parenteaddaca8ffebddd7e967c0daedc45b6d746d014d
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