Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5946797imm; Wed, 12 Sep 2018 13:43:04 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbJ9ibwHK7E0CY02AedF9L8nzhg0fvtG/DPwxfp6fq3vCSlkzkHHnuJdMPJIiDGkr2GVGl1 X-Received: by 2002:a62:cdcf:: with SMTP id o198-v6mr4271254pfg.12.1536784984363; Wed, 12 Sep 2018 13:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536784984; cv=none; d=google.com; s=arc-20160816; b=FwBiJ+pt5kCedfYQZumbodMV7z4Ws6kdFOLNielagISnjCy1yJAqNbo8WsmLm8dhII TK7DKkTBIG7unzXf6Pc+AWRrhuiJioAqE2WhRGE0dkl4a4WWo3++InoqN84Po72EkPlk OoL0ZTepuibzv5aUqSxGmPq18kHcZ62pDViSSvztV6e/kwJ62j8OAfUd8Rs1ugybP5Vi F+nP3KSGP3gbtXMln6+NQF4A8POtwr9QvlIcBYg1e7/BDMX05yofbPYzSMf+iDJLwvrU qvRLEt95aV2b1niG6L0oTDaahdja2EbEmquROFriQv61wqo8DJ5nKbUvXlNaYnPoa8FA 8PDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:organization :subject:cc:to:from:dkim-signature; bh=nNj30DunZWcHwZ8GRJGKCRa2Q9pKSDc76xAhMiILzIY=; b=p+zbLh9UOo+9KPZfJc4fnkDQDpwk7tGj0TC9hQPuabiVA102l3CzD2Lv0/eIrthtMJ PrEObAsb8heeaEslU8tgh0wzFj3r3u/VdSc/rweixIsLiNNDxQUZF1FfE4GQOF+r3jk2 3JCOJn/N98M8XmbyFxCpLnGwuLJ4fzELSAyPxVHAfZnVA1471paVeiHeivoteV6gWz2t +0cjytyfIv2j2v90KuPyMU2tx/go0FYO6UI03P8f1g9yJh8qeMbCkKiQEfgMWOhOycBj 5ibYdJeh+YRWktp/usfSd7zlCDsSx45ZxJnsOqye50Pn0UMW7gX3WINl31Z9uTkjcM+V AeKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mork.no header.s=b header.b=i1gL1DRE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f8-v6si2096895plm.117.2018.09.12.13.42.38; Wed, 12 Sep 2018 13:43:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mork.no header.s=b header.b=i1gL1DRE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728274AbeIMBlK (ORCPT + 99 others); Wed, 12 Sep 2018 21:41:10 -0400 Received: from canardo.mork.no ([148.122.252.1]:57401 "EHLO canardo.mork.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728065AbeIMBlJ (ORCPT ); Wed, 12 Sep 2018 21:41:09 -0400 Received: from miraculix.mork.no (miraculix.mork.no [IPv6:2001:4641:0:2:7627:374e:db74:e353]) (authenticated bits=0) by canardo.mork.no (8.15.2/8.15.2) with ESMTPSA id w8CKYh5A013794 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 12 Sep 2018 22:34:43 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mork.no; s=b; t=1536784484; bh=nNj30DunZWcHwZ8GRJGKCRa2Q9pKSDc76xAhMiILzIY=; h=From:To:Cc:Subject:References:Date:Message-ID:From; b=i1gL1DREB4Qg5+M0yoGf8QmlLmZFTqPSSzgZG7PRc2JTpFVTLebYpGpkeYT0XeeYg GD6ZbPTZqzVBMAn0aN/OZL7WWU6zbMARIKBw7YMBvGhXf403ppcrKOdXcvrRS736au ZrnGWt59dRZcRDLIbuuWZttfaZbBcDvbogOQuJUA= Received: from bjorn by miraculix.mork.no with local (Exim 4.89) (envelope-from ) id 1g0BqV-0001Ui-Ct; Wed, 12 Sep 2018 22:34:43 +0200 From: =?utf-8?Q?Bj=C3=B8rn_Mork?= To: Dan Williams Cc: Lars Melin , Kristian Evensen , Johan Hovold , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] option: Improve Quectel EP06 detection Organization: m References: <20180908125754.1947-1-kristian.evensen@gmail.com> <20180910103022.GR1089@localhost> <8ce10eef-f332-a1c0-e16e-fb1c2055131a@gmail.com> Date: Wed, 12 Sep 2018 22:34:43 +0200 In-Reply-To: (Dan Williams's message of "Wed, 12 Sep 2018 14:18:05 -0500") Message-ID: <87y3c6a1zw.fsf@miraculix.mork.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: clamav-milter 0.100.1 at canardo X-Virus-Status: Clean Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dan Williams writes: > The fact that the firmware implementation has the ability to change the > endpoints is unrelated to Kristian's case, and that alone is > justification for this to be quirked in the driver. People other than > Kristian will undoubtedly use the functionality, on platforms less > limited. FWIW, I agree with Dan and Kristian on this. It's a documented feature, and it will be used. The reasons are irrelevant. The firmware implementation is inconvenient, but we should still strive to make it Just Work in Linux. Kristian's solution does that. > Also most Huawei modems have the ability to change their layout and > configuration just like the EP06 via the U2DIAG and SETPORT commands. Yes, but they are nice enough to use unique class/subclass/protocol triplets for their functions so it's easy to support the changing layout. At least as long as they use their own VID and not some laptop vendor's.. The Sierra Wireless strategy, using fixed interface numbers leaving "holes" is another fine solution to the problem. Or they could have allocated unique VIDs per function combination, as long as the number of valid combinations are low. But they didn't. It's not like it's the first bad firmware design we've had to deal with. Let's just work around it, like we always do. No need to make life difficult for end users just because Quectel makes life difficult for us. Bj=C3=B8rn