From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de ([195.135.220.15]:34134 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753273AbcGJMtB (ORCPT ); Sun, 10 Jul 2016 08:49:01 -0400 Message-ID: <1468154879.751.5.camel@suse.com> Subject: Re: [PATCH v2] cdc-wdm: fix "out-of-sync" due to missing notifications From: Oliver Neukum To: =?ISO-8859-1?Q?Bj=F8rn?= Mork Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, stable@vger.kernel.org Date: Sun, 10 Jul 2016 14:47:59 +0200 In-Reply-To: <87wpku3box.fsf@miraculix.mork.no> References: <1467575977-26693-1-git-send-email-bjorn@mork.no> <1467619450.9978.3.camel@suse.com> <87d1mt62kc.fsf@nemi.mork.no> <1467636489.9978.9.camel@suse.com> <871t39eehv.fsf@nemi.mork.no> <87shvpcp7w.fsf@nemi.mork.no> <1467723170.1909.11.camel@suse.com> <87wpku3box.fsf@miraculix.mork.no> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: On Sat, 2016-07-09 at 20:31 +0200, Bjørn Mork wrote: > [removed the stable CC since this discussion isn't relevant to stable > anymore] > > Oliver Neukum writes: [..] > How about splitting the behaviour locally in cdc-wdm, keeping the > current behaviour for CDC WDM devices and changing to "drain on open" > for the netdev drivers? Something like this plus the necessary logic > dealing with the "drain_on_open" ("next_desc" is a label in wdm_probe): Even better solution. [..] > Yes. We could alternatively filter the EPIPE from read(), since it > isn't supposed to happen anyway. But it's not going to look less ugly :( I'd rather not. Dropping errors really is evil. > Execpt for the extreme ugliness, I don't think it will hurt to apply > this unconditionally for all the network drivers using cdc-wdm, as long > as it is limited to open only. It is very hard to see how would can avoid it in the long run in resume. > I certainly want to avoid any blacklist. Device IDs are cheap in this > market. The MBIM modems typically run Android and the device ID is > configured in NVRAM for whatever OEM laptop vendor it is sold to. > Having a catch-all class driver for MBIM is an absolute requirement. > Making it depend on lists of devices is not an option, IMHO. Obviously. I am just not optimistic that we can do without specific exceptions in the long run. Regards Oliver