]> 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)
commit3ea8df6a6e5d2f299e948cfd7c60fe15d4d51c98
tree8024f98dfce8787b752b916babd76a5f43e50de4
parent18643126dc10ee1ee99ef61c3a5da423a69caee5
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