Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5809949imm; Wed, 12 Sep 2018 11:26:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY/8mh2R3dOKmLurmAxKBJboZimtNGmOr95AibgVk93zCKeDkB8X5qZb4kiW2AAMCR/qIGu X-Received: by 2002:a17:902:6bc5:: with SMTP id m5-v6mr3628451plt.274.1536776806278; Wed, 12 Sep 2018 11:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536776806; cv=none; d=google.com; s=arc-20160816; b=lYtvDsVDP8or0UpHyLW1cV+x/7Nxabr+CZ4mIDci8GY7byY+I5rhhbSUUbaDUYYKLI kWxdTrr/pX9qhCSLhJQha1VzjKO9+3R0Fo9gSUuMnVVr38fsfdRBxyECTFekDPc84ywY NdisAZoftvcWegPS79CiOAhVRG5sFl1XPruMdc9+NI3ZS1PKnC55ISLE2rC4t7nPlzwr I+4zYLs9NhpB0rK/UhyqRXR0iE4Gsa/m5s9W70T68yGJDFuA7iHFKAWEAxcXubNpTXlC g57S/xz6uHU0OLcaXhOCj8nHDfuW8fGFSQX1aRJOMzYBxb0VOx1y+MkQ0EuyvzYXjn/l UpOA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=CthXnu/unP6udl2RM+6fWMsl0VBqFHKM/1p/LS9pG6Q=; b=kWVV+JVW7yqT2SYa+cj5rP49iCIp4UhAogh0KEsc9/55wz8uY5V3ds/BHnXIR5gKDb I8qerxf0KlMclDW/EBu4vdzgqXgcSbnTMZdi9UxzauXQQRvB7e/FI9cpVRnKgm5KKpzy Yf7dMv9qFXl6ts13hagVHSkhaYjcaswwdvtwn8RsCsZt+8Yc8Qr5hGhwhN0UtmxAjT8w ggk7AbR3iAsswfOubWyxbCh/+jFe07yEIsRThRrwpBJ7GdjsyDyrSAPnHECc4Ut986f5 AJfnfmLxzn/FrjSjENEdnsEuSJmZtrHhTpz812x0Dv7U/au+M6Q52qOZ4TJZzdsQsd5s 3c3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="W/BX0t6M"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15-v6si1637054pgh.281.2018.09.12.11.26.30; Wed, 12 Sep 2018 11:26:46 -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=@gmail.com header.s=20161025 header.b="W/BX0t6M"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727985AbeILXbc (ORCPT + 99 others); Wed, 12 Sep 2018 19:31:32 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:42677 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726608AbeILXbc (ORCPT ); Wed, 12 Sep 2018 19:31:32 -0400 Received: by mail-pg1-f194.google.com with SMTP id y4-v6so1471933pgp.9; Wed, 12 Sep 2018 11:25:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=CthXnu/unP6udl2RM+6fWMsl0VBqFHKM/1p/LS9pG6Q=; b=W/BX0t6MSQqTSsdyVf8QMcrSQ+QcjTnI61rdQo10v+wE4KAMvR5CHmyJECTjyQa8n0 v+WF40wb8xo41bvQBH1WiwvhFgbBVmX5daUf2ymQBgUUnhIbDQjzel72hHhtHn5MVyv4 36AE7TZ0WAPM8qd94pU/9zqGGlh6nvXlnPDInF/bU6jaVD9VWiB3Hr0qQrY2rUqwEkYj BNWByAam5eBlva+Prr5GA+kqpF2i6z61ukmqT+yzCgl55sErgNEX1zFg2HNoFil+HUb6 r5VdgIkSmjXDN8Gaq5nKFop0LAFAx6C1FpuM7I8dIJOT+I1Jf7lo4OdmBGamdp783wxH vZrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CthXnu/unP6udl2RM+6fWMsl0VBqFHKM/1p/LS9pG6Q=; b=c2kUIo1UwnX8Xbdqu6ga+lUH7+EDNQ9BCGeV7ZowkQJ636yqcq3lozEyRnfOW3SWib esdp+lPVCNA3Q/Uq/TJXrelXOKWN3EUrhSHV3KIkNyibyX4Y6ln2lrpAQQaVKIwlfVrw r7P3XWrOxTL6g+8IcYZ98S6SZMNU4hH5WzS3pJRb9AQ9xlKY0I7DNbZNFdXbIH23RwYL gMk7YGpS1cClxvzqB82zRAINcHIO/Ck/HOx/XxHctgv2IthrZ5DwMJMZuo0/18/6i1Gl pmslqsH2iFb2B9UgJAv3J7VQsh707XWuNY0/n+PKWMinMALu9vm4bJdhrcDQdNM8cR/y 0aPg== X-Gm-Message-State: APzg51Bds6Yz7yvOQ3OuJIQIaaqdFLxA/G8+cZ2shRxzVotg8C2fPPkZ CrLGAQiFCBhZBsa80XFFrb7zPUXKT3I= X-Received: by 2002:a63:69c3:: with SMTP id e186-v6mr2803772pgc.431.1536776747774; Wed, 12 Sep 2018 11:25:47 -0700 (PDT) Received: from [192.168.1.5] ([119.42.83.160]) by smtp.googlemail.com with ESMTPSA id w13-v6sm2081515pgs.89.2018.09.12.11.25.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Sep 2018 11:25:47 -0700 (PDT) Subject: Re: [PATCH] option: Improve Quectel EP06 detection To: Kristian Evensen Cc: Johan Hovold , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180908125754.1947-1-kristian.evensen@gmail.com> <20180910103022.GR1089@localhost> <8ce10eef-f332-a1c0-e16e-fb1c2055131a@gmail.com> From: Lars Melin Message-ID: Date: Thu, 13 Sep 2018 01:25:43 +0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/12/2018 23:57, Kristian Evensen wrote: > On Wed, Sep 12, 2018 at 6:32 PM Lars Melin wrote: >> You have chosen a platform which has limited usb resources and want to >> solve that problem by adjusting the device driver? > > No, you asked for a good reason for why disabling and not just > ignoring an interface makes sense, and I think that supporting > multiple EP06 on platforms with limited endpoints qualifies as a > reason. My motivation behind this patch and modifying the driver, is > to make the driver work with the different options/combinations > supported by the modem. The platforms I am working on merely triggered > the error and inspired the change. > >> Why don't you just unbind those interfaces which you are not using and >> which are eating up your usb resources? > > As far as I know, unbinding interfaces from the driver does not free > up the memory allocated to the interface by/on the USB controller. I > also tried, just in case, and the output from lsusb is the same > regardless of bind/unbind. > > Btw, the patch for the QMI driver has been accepted, since you > mentioned that driver earlier. So the assumption about interface four > is removed from there. > > BR, > Kristian > That the patch has qmi-wwan patch has been accepted does not change the fact that you are solving your problems in the wrong end. You are using the OEM re-branding AT cmd to change the interface composition without changing the vid and pid at the same time, this is a big donut and the whole reason for why you have submitted patches which shouldn't be needed. rgds /Lars