Files
Linux/include/linux
Bjørn Mork 1e8bbe6cd0 net: cdc_ncm, cdc_mbim: allow user to prefer NCM for backwards compatibility
commit bd329e1 ("net: cdc_ncm: do not bind to NCM compatible MBIM devices")
introduced a new policy, preferring MBIM for dual NCM/MBIM functions if
the cdc_mbim driver was enabled.  This caused a regression for users
wanting to use NCM.

Devices implementing NCM backwards compatibility according to section
3.2 of the MBIM v1.0 specification allow either NCM or MBIM on a single
USB function, using different altsettings.  The cdc_ncm and cdc_mbim
drivers will both probe such functions, and must agree on a common
policy for selecting either MBIM or NCM.  Until now, this policy has
been set at build time based on CONFIG_USB_NET_CDC_MBIM.

Use a module parameter to set the system policy at runtime, allowing the
user to prefer NCM on systems with the cdc_mbim driver.

Cc: Greg Suarez <[email protected]>
Cc: Alexey Orishko <[email protected]>
Reported-by: Geir Haatveit <[email protected]>
Reported-by: Tommi Kyntola <[email protected]>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=54791
Signed-off-by: Bjørn Mork <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2013-03-17 11:59:03 -04:00
..
…
2013-03-01 13:39:00 -08:00
…
2013-02-22 09:22:19 +02:00
2013-01-02 17:36:10 -08:00
…
…
…
…
…
…
…
2013-01-03 14:34:06 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-02-25 09:24:55 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2012-12-24 09:36:38 -07:00
2013-02-21 14:16:27 -03:00
…
…
…
…
2013-02-26 02:46:08 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
2013-01-24 09:04:04 +01:00
…
…
…
…
…
…
…
…
…
2013-02-22 23:31:31 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-01-25 21:03:54 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
2013-02-27 19:10:21 -08:00
…
…
…
…
…
2013-02-06 15:59:47 -05:00
…
…
…
…
…
…
2013-01-29 13:59:57 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
2013-01-10 11:44:38 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-01-29 19:32:58 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-01-21 17:18:20 +10:30
…
…
…
…
…
…
…
…
…
…
2012-12-25 18:45:06 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-01-24 15:37:26 +01:00
…
2013-01-03 15:57:14 -08:00
…
…
…
2013-01-23 13:44:00 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-02-19 08:43:34 +01:00
…
…
…
…
…
…
…
…
2013-02-03 15:09:26 -05:00
…
2012-12-18 15:02:13 -08:00
2012-12-18 15:02:14 -08:00
…
…
…
…
2013-02-10 19:41:08 -05:00
…
…
…
…
…
…
…
…
…
2012-12-24 09:36:38 -07:00
…
…
…
…
…
2013-02-14 09:21:15 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-01-15 22:43:15 -08:00
…
…
…
…
…
…
…
2013-02-08 18:28:04 +01:00
2013-01-25 15:06:01 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…